|
||||||||||
| 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.SimProcessingElement
|
+--com.cogent.SimPIM
The PIM.
| Field Summary | |
private java.util.Vector |
myPacketQueue
|
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
SimPIM()
Constructor, starts the thread running |
|
| Method Summary | |
void |
finished()
|
int |
processEvent(SimEvent argEvent)
Receives events from the dispatcher. |
SimPacket |
receive()
|
void |
run()
While the PIM is alive, sleep until the dispatcher sends an event. |
void |
send()
|
| 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 java.util.Vector myPacketQueue
| Constructor Detail |
public SimPIM()
| Method Detail |
public int processEvent(SimEvent argEvent)
processEvent in class SimProcessingElementargEvent - a SimEvent dequeued from the dispatcherpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void send()
public SimPacket receive()
public void finished()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||