|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.isti.util.TimeEventQueue
Class TimeEventQueue defines a queue of time-event values.
Field Summary | |
protected java.util.Vector |
queueVectorObj
|
Constructor Summary | |
TimeEventQueue()
Creates a queue of time-event values. |
Method Summary | |
void |
addEvent(long timeVal)
Adds a time-event value to the end of the queue. |
boolean |
checkPullNextEvent()
Determines if the current system time is at or after the next time-event value in the queue (and removes it if so). |
boolean |
checkPullNextEvent(long currentTimeVal)
Determines if the given current-time value is at or after the next time-event value in the queue (and removes it if so). |
int |
getEventQueueSize()
Returns the current size of the time-event queue. |
long |
peekNextEvent()
Returns the next time-event value from the queue. |
long |
pullNextEvent()
Removes and returns the next time-event value from the queue. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final java.util.Vector queueVectorObj
Constructor Detail |
public TimeEventQueue()
Method Detail |
public void addEvent(long timeVal)
timeVal
- time-event value.public boolean checkPullNextEvent(long currentTimeVal)
currentTimeVal
- current-time value to use.
public boolean checkPullNextEvent()
public long peekNextEvent()
public long pullNextEvent()
public int getEventQueueSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |