|
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 | |
private int |
anchor
Value of anchor |
private Granularity |
anchorGranularity
anchor Granularity |
private int |
groupSize
Group size of from Granularity in to Granularity. |
private int |
periodSize
Period size of from Granularity in to Granularity. |
| Fields inherited from class tauzaman.calendar.mapping.Mapping |
COARSER_TO_FINER, CONGRUENT, FINER_TO_COARSER, from, relationship, to |
| 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 | |
private void |
formRegularMapping(org.w3c.dom.Element root)
Forms an RegularMapping object by parsing a xml specification file. |
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 |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private int groupSize
Granularity in to Granularity.
private int periodSize
Granularity in to Granularity.
private Granularity anchorGranularity
Granularity
private int anchor
| 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 |
private void formRegularMapping(org.w3c.dom.Element root)
RegularMapping object by parsing a xml specification file.
root - DOM Element, which points to RegularMapping information of
corresponding xml specification file.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 | |||||||||