|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--com.cogent.SimElement
|
+--com.cogent.SimDispatchElement
The dispatcher.
| Field Summary | |
private java.util.Vector |
myActiveElements
|
private long |
myCurrentTime
|
private SimEventQueue |
myEventQueue
|
private static SimDispatchElement |
myInstance
|
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
private |
SimDispatchElement()
Create a SimDispatchElement and start its thread. |
| Method Summary | |
private void |
dispatchMessage(SimPacketEvent argEvent)
Find the destination of a SimPacketEvent and send the event to the appropriate processing element. |
static SimDispatchElement |
getInstance()
|
void |
postEvent(SimEvent argEvent,
long argTime)
Callback from Processing elements to add events to the event queue. |
void |
run()
While there are no events to process, wait. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private long myCurrentTime
private static SimDispatchElement myInstance
private SimEventQueue myEventQueue
private java.util.Vector myActiveElements
| Constructor Detail |
private SimDispatchElement()
| Method Detail |
public void postEvent(SimEvent argEvent,
long argTime)
argEvent - A SimEvent to add to the queueargTime - A priority for the event (time)public static SimDispatchElement getInstance()
private void dispatchMessage(SimPacketEvent argEvent)
argEvent - A SimPacketEvent to dispatchpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||