com.cogent
Class SimPIM

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--com.cogent.SimElement
              |
              +--com.cogent.SimProcessingElement
                    |
                    +--com.cogent.SimPIM
All Implemented Interfaces:
java.lang.Runnable

public class SimPIM
extends SimProcessingElement

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

myPacketQueue

private java.util.Vector myPacketQueue
Constructor Detail

SimPIM

public SimPIM()
Constructor, starts the thread running

Method Detail

processEvent

public int processEvent(SimEvent argEvent)
Receives events from the dispatcher. Still needs to be made asynchronous.

Specified by:
processEvent in class SimProcessingElement
Parameters:
argEvent - a SimEvent dequeued from the dispatcher

run

public void run()
While the PIM is alive, sleep until the dispatcher sends an event.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

send

public void send()

receive

public SimPacket receive()

finished

public void finished()