|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSortedEventQueue
This is a list of Events which should kept sorted by the time at which they are to be invoked.
Constructor Summary | |
SortedEventQueue()
Create a new empty event queue. |
Method Summary | |
void |
addEvent(Event event)
Add an event to the queue in a sorted manner. |
Event |
getNextEvent()
Return the next Event to happen without removing it from the queue. |
boolean |
isEmpty()
Checks if the event queue is empty |
Event |
removeNextEvent()
Remove the next Event to happen and remove it from the queue. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SortedEventQueue()
Method Detail |
public void addEvent(Event event)
event
- The event to add to the queue.public Event getNextEvent()
public Event removeNextEvent()
public boolean isEmpty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |