dk.itu.smds.torusman
Class ClientListener

java.lang.Object
  extended by java.lang.Thread
      extended by dk.itu.smds.torusman.ClientListener
All Implemented Interfaces:
java.lang.Runnable

public class ClientListener
extends java.lang.Thread

The listener interface for receiving client events. The class that is interested in processing a client event implements this interface, and the object created with that class is registered with a component using the component's addClientListener method. When the client event occurs, that object's appropriate method is invoked.

See Also:
ClientEvent

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 byte conId
          The con id.
 ClientTimeSender cts
          The cts.
 java.io.DataInputStream ins
          The ins.
 DistTorus t
          The t.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ClientListener(java.io.DataInputStream in, ClientTimeSender c, DistTorus d)
          Instantiates a new client listener.
 
Method Summary
 void run()
          Listens for packages and handles them accordingly.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ins

public java.io.DataInputStream ins
The ins.


conId

public byte conId
The con id.


t

public DistTorus t
The t.


cts

public ClientTimeSender cts
The cts.

Constructor Detail

ClientListener

public ClientListener(java.io.DataInputStream in,
                      ClientTimeSender c,
                      DistTorus d)
Instantiates a new client listener.

Parameters:
in - the in
c - the c
d - the d
Method Detail

run

public void run()
Listens for packages and handles them accordingly.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread
See Also:
Thread.run()