|
tauZaman v0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--tauzaman.calendar.mapping.Mapping
Mapping
abstract class represents the granularity
mapping information of a Calendar
.
Calendar
,
IrregularMapping
,
RegularMapping
,
Granularity
Field Summary | |
static int |
COARSER_TO_FINER
|
static int |
CONGRUENT
|
static int |
FINER_TO_COARSER
|
protected Granularity |
from
from Granularity |
protected int |
relationship
Relationship between the Granularities of this Mapping |
protected Granularity |
to
to Granularity |
Constructor Summary | |
Mapping(Granularity to,
Granularity from,
int relationship)
Constructs a Mapping from "from" Granularity
to "to" Granularity . |
Method Summary | |
boolean |
equals(java.lang.Object other)
Returns true if this Mapping is equal to the
given Mapping . |
private static java.lang.String |
fetchRelationship(int relationship)
Given a string corresponding of a relationship, used as in xml spec. files, returns int code of that relationship. |
static int |
fetchRelationship(java.lang.String relationship)
Given a string corresponding of a relationship, used as in xml spec. files, returns int code of that relationship. |
Granularity |
getFrom()
Returns from Granularity |
int |
getRelationship()
Returns relationship of this Mapping |
Granularity |
getTo()
Returns to Granularity |
abstract long |
performAnchoredCast(long point)
Casts a given anchored point. |
abstract long[] |
performAnchoredScale(long point)
Scales a given anchored point. |
abstract long |
performUnanchoredCast(long point)
Casts a given unanchored point. |
abstract long[] |
performUnanchoredScale(long point)
Scales a given unanchored point. |
java.lang.String |
toString()
toString method as abstract |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int FINER_TO_COARSER
public static final int COARSER_TO_FINER
public static final int CONGRUENT
protected int relationship
Granularities
of this Mapping
protected Granularity to
Granularity
protected Granularity from
Granularity
Constructor Detail |
public Mapping(Granularity to, Granularity from, int relationship)
Mapping
from "from" Granularity
to "to" Granularity
.
to
- Granularity
that this Mapping
startsfrom
- Granularity
that this Mapping
endsrelationship
- (finer/coarser/congruent) relationship between
Mapping
Granularities
Method Detail |
public int getRelationship()
Mapping
Mapping
public static int fetchRelationship(java.lang.String relationship)
relationship
- String corresponding of a relationship
private static java.lang.String fetchRelationship(int relationship)
relationship
- integer corresponding of a relationship
public Granularity getTo()
Granularity
Granularity
of this Mapping
public Granularity getFrom()
Granularity
public boolean equals(java.lang.Object other)
Mapping
is equal to the
given Mapping
. False otherwise.
equals
in class java.lang.Object
other
- Mapping
to be compared with this
Mapping
Granularities
of
two Mapping
matches. False otherwise.public abstract long performAnchoredCast(long point)
point
- point in time to be casted
public abstract long[] performAnchoredScale(long point)
point
- point in time to be scaled
public abstract long performUnanchoredCast(long point)
point
- point in time to be casted
public abstract long[] performUnanchoredScale(long point)
point
- point in time to be scaled
public java.lang.String toString()
toString
in class java.lang.Object
|
tauZaman v0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |