Class SimulatorServer
Class SimulatorServer
java.lang.Object
|
+----net.NetworkServer
|
+----SimulatorServer
-
class
SimulatorServer
-
extends NetworkServer
The class SimulatorServer controls a simulator server for the
nuclear power plant
-
See Also:
-
RemoteSimulatorClient,
TestSimulatorServer,
LocalSimulator
-
Version:
-
1.0
-
Author:
-
Henrik Eriksson
-
co
-
The output stream for the server.
-
SimulatorServer()
-
-
main(String[])
-
The main method for the server.
-
sendBlow(String)
-
Send a blow message to the client
-
sendReturn()
-
Send a return message to the client
-
serviceRequest()
-
Perform a service request.
-
setValue(String, int)
-
Set an integer value remotely.
-
setValue(String, float)
-
Set a float value remotely.
-
setValue(String, String)
-
Set a String value remotely.
-
setValue(String, boolean)
-
Set a boolean value remotely.
co
protected DataOutputStream co
-
The output stream for the server. Server responses are
written to this stream.
SimulatorServer
public SimulatorServer()
setValue
protected synchronized void setValue(String var,
int val)
-
Set an integer value remotely. Sends the value to the client.
setValue
protected synchronized void setValue(String var,
float val)
-
Set a float value remotely. Sends the value to the client.
setValue
protected synchronized void setValue(String var,
String val)
-
Set a String value remotely. Sends the value to the client.
setValue
protected synchronized void setValue(String var,
boolean val)
-
Set a boolean value remotely. Sends the value to the client.
sendReturn
protected synchronized void sendReturn()
-
Send a return message to the client
sendBlow
protected synchronized void sendBlow(String device)
-
Send a blow message to the client
serviceRequest
public synchronized void serviceRequest()
-
Perform a service request.
-
Overrides:
-
serviceRequest in class NetworkServer
main
public static void main(String args[])
-
The main method for the server. It is called automatically
when the server is invoked. This method simply invokes a test
simulator implemented in java.