|
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
|
+--tauzaman.calendar.RegularMapping
RegularMapping class represents the granularity and granularity
mapping information of a Calendar.
For example;
< granularity name = "dayHundreth" >
< regularMapping from = "second" groupSize = "864" anchor = "0"
anchorGranularity = "second" />
< /granularity >
Calendar| Field Summary |
| Fields inherited from class tauzaman.calendar.mapping.Mapping |
COARSER_TO_FINER, CONGRUENT, FINER_TO_COARSER |
| Constructor Summary | |
RegularMapping(Granularity to,
Granularity from,
int relationship,
org.w3c.dom.Element root)
Constructs a RegularMapping object, which stores a Regular Mapping information
for a Calendar. |
|
RegularMapping(Granularity to,
Granularity from,
int relationship,
int groupSize,
int periodSize,
int anchor)
|
|
| Method Summary | |
int |
getAnchor()
Returns the value anchor |
Granularity |
getAnchorGranularity()
Returns anchor Granularity |
int |
getGroupSize()
Returns the group size of from Granularity with respect to
to Granularity. |
int |
getPeriodSize()
Returns the period size of from Granularity with respect to
to Granularity. |
long |
performAnchoredCast(long point)
Casts a given anchored point. |
long[] |
performAnchoredScale(long point)
Scales a given anchored point. |
long |
performUnanchoredCast(long point)
Casts a given unanchored point. |
long[] |
performUnanchoredScale(long point)
Scales a given unanchored point. |
java.lang.String |
toString()
toString method |
| Methods inherited from class tauzaman.calendar.mapping.Mapping |
equals, fetchRelationship, getFrom, getRelationship, getTo |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public RegularMapping(Granularity to,
Granularity from,
int relationship,
int groupSize,
int periodSize,
int anchor)
public RegularMapping(Granularity to,
Granularity from,
int relationship,
org.w3c.dom.Element root)
RegularMapping object, which stores a Regular Mapping information
for a Calendar.
to - Granularity, which mapping is declared tofrom - Granularity, which mapping is declated fromroot - DOM Element, which points to RegularMapping information of
corresponding xml specification file.IrregularMapping| Method Detail |
public long performAnchoredCast(long point)
performAnchoredCast in class Mappingpoint - point in time to be casted
public long[] performAnchoredScale(long point)
performAnchoredScale in class Mappingpoint - point in time to be scaled
public long performUnanchoredCast(long point)
performUnanchoredCast in class Mappingpoint - point in time to be casted
public long[] performUnanchoredScale(long point)
performUnanchoredScale in class Mappingpoint - point in time to be scaled
public int getPeriodSize()
Granularity with respect to
to Granularity.
public int getGroupSize()
Granularity with respect to
to Granularity.
public int getAnchor()
public Granularity getAnchorGranularity()
Granularity
public java.lang.String toString()
toString in class Mapping
|
tauZaman v0.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||