public class FutureQueue
extends java.lang.Object
Simulation. The event queue uses a
TreeSet in order to store the events.Simulation,
TreeSet| Constructor and Description |
|---|
FutureQueue() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEvent(SimEvent newEvent)
Add a new event to the queue.
|
void |
addEventFirst(SimEvent newEvent)
Add a new event to the head of the queue.
|
void |
clear()
Clears the queue.
|
java.util.Iterator<SimEvent> |
iterator()
Returns an iterator to the queue.
|
boolean |
remove(SimEvent event)
Removes the event from the queue.
|
boolean |
removeAll(java.util.Collection<SimEvent> events)
Removes all the events from the queue.
|
int |
size()
Returns the size of this event queue.
|
public void addEvent(SimEvent newEvent)
newEvent - The event to be put in the queue.public void addEventFirst(SimEvent newEvent)
newEvent - The event to be put in the queue.public java.util.Iterator<SimEvent> iterator()
public int size()
public boolean remove(SimEvent event)
event - the eventpublic boolean removeAll(java.util.Collection<SimEvent> events)
events - the eventspublic void clear()