Class Server

java.lang.Object
  extended byjava.lang.Thread
      extended bycz.zcu.fav.kiv.jsim.JSimProcess
          extended byServer
All Implemented Interfaces:
java.lang.Comparable, cz.zcu.fav.kiv.jsim.gui.JSimDisplayable, java.lang.Runnable

public class Server
extends cz.zcu.fav.kiv.jsim.JSimProcess


Field Summary
 DistributedSimulation simulation
           
 
Fields inherited from class cz.zcu.fav.kiv.jsim.JSimProcess
INT_REQUESTS_TO_IGNORE, myParent, STATE_ACTIVE, STATE_NEW, STATE_PASSIVE, STATE_SCHEDULED, STATE_TERMINATED
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Server(java.lang.String name, DistributedSimulation sim, double parMu, double parP, QueueWithServer parQueueIn, QueueWithServer parQueueOut, ClientData parData)
          Use this Constructor for distributed simulation but not for output point
Server(java.lang.String name, DistributedSimulation sim, double parMu, double parP, QueueWithServer parQueueIn, QueueWithServer parQueueOut, ClientData parData, java.lang.String parReceiverName, int parGateNumber)
          Constructor for distributed simulation for point where you can store events to output queue
 
Method Summary
 int getCounter()
           
 double getTransTq()
           
protected  void life()
           
 void restore(cz.zcu.fav.kiv.jsim.JSimProcess ParProcess)
          This method is call vhen undo operation is comin
and restore all values from time when simulation was
in stable state
please don't call it direct
 
Methods inherited from class cz.zcu.fav.kiv.jsim.JSimProcess
activate, cancel, compareTo, createDetailedInfoWindow, equals, error, getDetailedInformationArray, getNumber, getObjectListItemDescription, getPrivateLock, getScheduleTime, getState, getStateAsString, getStateAsString, hasBeenStarted, hashCode, hold, isIdle, message, messageNoNL, passivate, reactivate, run, start, toString
 
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, stop, stop, suspend, yield
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

simulation

public DistributedSimulation simulation
Constructor Detail

Server

public Server(java.lang.String name,
              DistributedSimulation sim,
              double parMu,
              double parP,
              QueueWithServer parQueueIn,
              QueueWithServer parQueueOut,
              ClientData parData)
       throws cz.zcu.fav.kiv.jsim.JSimSimulationAlreadyTerminatedException,
              cz.zcu.fav.kiv.jsim.JSimInvalidParametersException,
              cz.zcu.fav.kiv.jsim.JSimTooManyProcessesException
Use this Constructor for distributed simulation but not for output point


Server

public Server(java.lang.String name,
              DistributedSimulation sim,
              double parMu,
              double parP,
              QueueWithServer parQueueIn,
              QueueWithServer parQueueOut,
              ClientData parData,
              java.lang.String parReceiverName,
              int parGateNumber)
       throws cz.zcu.fav.kiv.jsim.JSimSimulationAlreadyTerminatedException,
              cz.zcu.fav.kiv.jsim.JSimInvalidParametersException,
              cz.zcu.fav.kiv.jsim.JSimTooManyProcessesException
Constructor for distributed simulation for point where you can store events to output queue

Method Detail

life

protected void life()

getCounter

public int getCounter()

restore

public void restore(cz.zcu.fav.kiv.jsim.JSimProcess ParProcess)
This method is call vhen undo operation is comin
and restore all values from time when simulation was
in stable state
please don't call it direct


getTransTq

public double getTransTq()