|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPeriodSet
The PeriodSet class actually represents temporal elements. It stores a list of non-consecutive and non-overlapping periods ordered ascendingly by time.
| Constructor Summary | |
PeriodSet()
Creates an empty PeriodSet. |
|
| Method Summary | |
void |
addPeriod(Period p)
Add a period to the set. |
int |
getLength()
Get the number of non-overlapping periods in the set. |
Period |
getPeriod(int index)
Get the indexth period in the set. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PeriodSet()
| Method Detail |
public int getLength()
public Period getPeriod(int index)
throws TDOMException
index - of the wanted period.
TDOMException - Throw TDOMException with exception code INVALID_INDEX
if the index is out of range.public void addPeriod(Period p)
p - The period to be added.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||