org.openmodelica.simulation.core.network
Class SimulationTransferServer

java.lang.Object
  extended by java.lang.Thread
      extended by org.openmodelica.simulation.core.network.SimulationTransferServer
All Implemented Interfaces:
java.lang.Runnable

public class SimulationTransferServer
extends java.lang.Thread

Simulation Transfer Server is a TCP/IP based communication unit which receives simulation results from a simulation runtime using message parsing As default the ip of a simulation runtime control server is localhost (127.0.0.1) and the port is 10502. The user can change the port

Author:
EADS Innovation Works, Parham Vasaiely, Parham.Vasaiely@gmx.de

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SimulationTransferServer(SimulationResultManager manager)
          Create TransferServer using the default port number of 10502 for transferring results
SimulationTransferServer(SimulationResultManager manager, int server_port)
          Create TransferServer with an user defined port number for transferring results
 
Method Summary
 void run()
           
 
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
 

Constructor Detail

SimulationTransferServer

public SimulationTransferServer(SimulationResultManager manager)
Create TransferServer using the default port number of 10502 for transferring results

Parameters:
manager -

SimulationTransferServer

public SimulationTransferServer(SimulationResultManager manager,
                                int server_port)
Create TransferServer with an user defined port number for transferring results

Parameters:
manager -
Method Detail

run

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