MicroTAPAS
Class ComCenter

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--MicroTAPAS.ComCenter
All Implemented Interfaces:
java.lang.Runnable

public class ComCenter
extends java.lang.Thread

This class implements a communication center for all the communicaiton that takes place between TAPAS nodes.


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ComCenter(DebugServer pParent, int pComPort)
          Constructor
ComCenter(MicroPNES pParent)
          Constructor
 
Method Summary
 void destroy()
          Method to shut down the server
 void run()
          Implement the run() method of the Thread interface.
 RequestResult send(RequestPars rp)
          Main method for outgoing requests
 Item status()
          Status report of ComCenter in Item hierarchy of information elements.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComCenter

public ComCenter(MicroPNES pParent)
Constructor

Parameters:
pParent - Reference to the local MicroPNES instance

ComCenter

public ComCenter(DebugServer pParent,
                 int pComPort)
Constructor

Parameters:
pParent - Reference to the DebugServer instance
pComPort - The port number to listen for incomming requests
Method Detail

run

public void run()
Implement the run() method of the Thread interface.

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

destroy

public void destroy()
Method to shut down the server

Overrides:
destroy in class java.lang.Thread

send

public RequestResult send(RequestPars rp)
Main method for outgoing requests

Parameters:
rp - The request to be sent to the receiver indicated in the object
Returns:
TAPAS style result

status

public Item status()
Status report of ComCenter in Item hierarchy of information elements.

Returns:
Hierarchy of Item information elements