cz.zcu.fav.kiv.cs
Class CSServer

java.lang.Object
  extended bycz.zcu.fav.kiv.cs.CSServer

public class CSServer
extends java.lang.Object

This class represents the main server. Every submodel connects to him.

Version:
2.0
Author:
Antonin Kunes

Field Summary
static int numberOfProc
          The number of all CSProcesses in the distributed simulation.
static int numberOfSimul
          The number of all simulation submodels in the distributed simulation.
static double timeWindow
          No submodel can advance its local simulation time more than this value ahead of another process.
 
Constructor Summary
CSServer(int port)
          Creates the server and connects him to the specified port.
 
Method Summary
static void main(java.lang.String[] args)
          The main method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numberOfProc

public static int numberOfProc
The number of all CSProcesses in the distributed simulation.


numberOfSimul

public static int numberOfSimul
The number of all simulation submodels in the distributed simulation.


timeWindow

public static double timeWindow
No submodel can advance its local simulation time more than this value ahead of another process.

Constructor Detail

CSServer

public CSServer(int port)
         throws java.io.IOException
Creates the server and connects him to the specified port.

Parameters:
port - int Requested port.
Method Detail

main

public static void main(java.lang.String[] args)
The main method. Starts the server.

Parameters:
args - String[] Should be: port, number of processes, number of submodels and time window.