|
||||||||||
| 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 |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
SimPIM(int argId)
Constructor, starts the thread running |
|
| Method Summary | |
int |
processEvent(SimEvent argEvent)
Receives events from the dispatcher. |
void |
run()
While the PIM is alive, sleep until the dispatcher sends an event. |
void |
Sim_Exit(long argTime)
Indicates the PIM is done processing |
SimPacket |
Sim_receive()
This method returns the next event from the queue. |
void |
Sim_send(SimEvent argEvent)
This method sends an event to the dispatcher. |
| 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 |
| Constructor Detail |
public SimPIM(int argId)
| 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 Sim_send(SimEvent argEvent)
argEvent - The event to postpublic SimPacket Sim_receive()
public void Sim_Exit(long argTime)
argTime - The time to post the finished event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||