public class TimeEventQueue
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Vector |
queueVectorObj |
Constructor and Description |
---|
TimeEventQueue()
Creates a queue of time-event values.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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()