|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface defines the global event queue used by DE directors to sort and manage events. Events are sorted according to their time stamps, microstep and the depth of the destination actor. One DEEvent is said to be earlier than another, if it has a smaller time stamp, or when the time stamps are identical, it has a smaller microstep, or when both time stamps and microsteps are identical, it has a smaller depth. If all three entries are identical, the events are stored in a FIFO way.
DEReceiver,
CalendarQueue,
DEDirector
| Green (cxh) |
| Green (liuj) |
| Method Summary | |
void |
clear()
Empty this event queue. |
DEEvent |
get()
Return the event associated with the earliest tag in this event queue. |
boolean |
isEmpty()
Return true if this event queue is empty. |
void |
put(DEEvent event)
Enqueue an event into the event queue. |
DEEvent |
take()
Dequeue the earliest event in this event queue. |
| Methods inherited from interface ptolemy.kernel.util.Debuggable |
addDebugListener, removeDebugListener |
| Method Detail |
public void clear()
public DEEvent get()
throws ptolemy.kernel.util.InvalidStateException
ptolemy.kernel.util.InvalidStateException - If the queue is empty.public boolean isEmpty()
public void put(DEEvent event)
throws ptolemy.kernel.util.IllegalActionException
event - The event to be put into the queue.
ptolemy.kernel.util.IllegalActionException - If the event cannot be
enqueued.
public DEEvent take()
throws ptolemy.kernel.util.InvalidStateException
ptolemy.kernel.util.InvalidStateException - If the queue is empty.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||