|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfi.hut.tml.xsmiles.mlfc.smil.basic.TimeListImpl
The TimeList interface provides the abstraction of an ordered
collection of times, without defining or constraining how this collection
is implemented.
The items in the TimeList are accessible via an integral
index, starting from 0.
| Constructor Summary | |
TimeListImpl()
Initializes this object. |
|
TimeListImpl(java.lang.String timeListString,
SMILDocumentImpl doc,
ElementBasicTimeImpl e,
boolean beginList)
Parses a time list string into Time objects. |
|
| Method Summary | |
void |
add(Time time)
Add a time to TimeList. |
int |
getLength()
The number of times in the list. |
Time |
getTimeGreaterThan(Time time)
Get the next time greater than time. |
TimeListImpl |
getTimeInstanceList()
Create a Time Instance List from this list. |
boolean |
isDefined()
If this list has time instances - then the parameter was defined. |
Time |
item(int index)
Returns the index the item in the collection. |
void |
print()
|
void |
reset()
Reset this instance time list - all event condition times are cleared from the list. |
void |
timeChanged(Time time)
Time in this instance time list has changed (dependency time's base time was changed). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TimeListImpl()
public TimeListImpl(java.lang.String timeListString,
SMILDocumentImpl doc,
ElementBasicTimeImpl e,
boolean beginList)
timeListString - List of times '2s;3s'doc - SMILDocumentImpl, required for syncbase clock values.e - Element, which will receive time changes from syncbase elementbeginList - true for beginlists, false for endlists| Method Detail |
public void add(Time time)
time - Time value to be addedpublic Time item(int index)
index the item in the collection. If
index is greater than or equal to the number of times in
the list, this returns null .
item in interface TimeListindex - Index into the collection.
index th position in the
TimeList , or null if that is not a valid
index.public int getLength()
length-1 inclusive.
getLength in interface TimeListpublic Time getTimeGreaterThan(Time time)
getTimeGreaterThan in interface TimeListtime - Time to compare against
public boolean isDefined()
isDefined in interface TimeListpublic void reset()
public void print()
public TimeListImpl getTimeInstanceList()
public void timeChanged(Time time)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||