MicroTAPAS.debug
Class CommunicationCenter

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--MicroTAPAS.debug.CommunicationCenter
All Implemented Interfaces:
java.lang.Runnable, java.io.Serializable

public class CommunicationCenter
extends java.lang.Thread
implements java.io.Serializable

This class takes care of socket communication

See Also:
Serialized Form

Field Summary
private  java.net.Socket clientSocket
           
private  int connectionID
           
private  java.lang.Object owner
           
private  int PORT
           
private  int RESPONSE_PORT
           
private  java.net.ServerSocket server
          Sockets used in communication
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CommunicationCenter()
          Empty constructor
 
Method Summary
 void destroy()
           
 void init(java.lang.Object pOwner, int port, int responsePort)
          Initialization method
 void run()
           
 void socketListen()
           
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

server

private java.net.ServerSocket server
Sockets used in communication


clientSocket

private java.net.Socket clientSocket

PORT

private int PORT

RESPONSE_PORT

private int RESPONSE_PORT

owner

private java.lang.Object owner

connectionID

private int connectionID
Constructor Detail

CommunicationCenter

public CommunicationCenter()
                    throws java.lang.Exception
Empty constructor

Method Detail

init

public void init(java.lang.Object pOwner,
                 int port,
                 int responsePort)
Initialization method


run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

destroy

public void destroy()
Overrides:
destroy in class java.lang.Thread

socketListen

public void socketListen()
                  throws java.lang.Exception
java.lang.Exception


The Telematics Architecture for Plug-and-Play Systems (TAPAS) is a research project undertaken by the Norwegian University of Science and Technology's Telematics department which aims at developing an architecture for network-based service systems with a) flexibility and adaptability, b) robustness and survivability, and c) QoS awareness and resource control.

More information can be found at the project's homepage at http://tapas.item.ntnu.no and the project manager, Professor Finn Arve Aagesen, can be reached at finn.arve.aagesen@item.ntnu.no.