|
SimJava 2.0.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectFutureEvqueue
class FutureEvqueue
This class implements the event queue used by Sim_system
.
The event queue is separated into two subqueues, the future queue and the deferred queue. Newly arrived events are added to the future queue while events that the receiving entity is unable to process are placed in the deferred queue. The current implementation uses a TreeSet to store the events received.
This class is used internally by Sim_system
and should not be
directly accessed.
Sim_system
Constructor Summary | |
---|---|
FutureEvqueue()
Allocates a new Evqueue object. |
Method Summary | |
---|---|
void |
add_event(Sim_event new_event)
Add a new event to the queue. |
void |
clear()
Clears the queue. |
Iterator<Sim_event> |
iterator()
Returns an interator to the queue. |
int |
size()
Returns the size of this event queue |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FutureEvqueue()
Method Detail |
---|
public void add_event(Sim_event new_event)
new_event
- The event to be put in the queue.public Iterator<Sim_event> iterator()
public int size()
public void clear()
|
SimJava 2.0.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |