cz.zcu.fav.kiv.cs
Class CSServerThread

java.lang.Object
  extended byjava.lang.Thread
      extended bycz.zcu.fav.kiv.cs.CSServerThread
All Implemented Interfaces:
java.lang.Runnable

public class CSServerThread
extends java.lang.Thread

Takes care of communication between one submodel and server.

Version:
2.0
Author:
Antonin Kunes

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CSServerThread(int ID, java.net.Socket client, CSServer server)
          Creates the new thread, taking care of a communication between the submodel and the server.
 
Method Summary
 void run()
          Reads messages from the submodel.
 
Methods inherited from class java.lang.Thread
activeCount, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, checkAccess, 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

CSServerThread

public CSServerThread(int ID,
                      java.net.Socket client,
                      CSServer server)
Creates the new thread, taking care of a communication between the submodel and the server. Sends to the submodel number of processes, number of submodels and time window.

Parameters:
client - Socket Socket for this connection
server - CSServer The main server, offering common methods.
Method Detail

run

public void run()
Reads messages from the submodel.