|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TimeIntervalIterator
Utility to allow stateful interation across a timeline, testing, for each time visited, which objects are in context at that time.
Method Summary | |
---|---|
java.util.Set |
getMatchingObjects()
Get the set of Objects (as supplied to the underlying TimeIntervalMapper ) which match the currently set time. |
double |
getTime()
Get the time to which the iterator has been set using setTime(double) . |
boolean |
hasObjectSetChanged()
Tests whether the last call to setTime(double) caused
the set of matching objects to change. |
void |
setTime(double time)
Set the iterator to a specified time. |
void |
setTimes(double stime,
double etime)
Set the iterator to a specified span. |
Method Detail |
---|
void setTime(double time)
getMatchingObjects()
being changed; this can be tested with hasObjectSetChanged()
.
time
- The time to which the iterator should seek.void setTimes(double stime, double etime)
getMatchingObjects()
being changed; this can be tested with hasObjectSetChanged()
??
time
- The time to which the iterator should seek.double getTime()
setTime(double)
.
java.util.Set getMatchingObjects()
TimeIntervalMapper
) which match the currently set time.
Set
of matching objects.
java.lang.IllegalStateException
- if no time has been set.boolean hasObjectSetChanged()
setTime(double)
caused
the set of matching objects to change.
true
iff the set has changed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |