Class TestSimulatorServer
Class TestSimulatorServer
java.lang.Object
|
+----net.NetworkServer
|
+----SimulatorServer
|
+----TestSimulatorServer
-
class
TestSimulatorServer
-
extends SimulatorServer
The class TestSimulatorServer is a test class that simulates the
behavior of the Clips-based simulator. It is used for testing the
communication between the java side of the server and the client.
-
See Also:
-
LocalSimulator,
ClipsSimulatorServer
-
Version:
-
1.0
-
Author:
-
Henrik Eriksson
-
condenser_blown
-
Flag for blown reactor.
-
condenser_pressure
-
The pressure in the condenser tank.
-
condenser_waterLevel
-
The water level in the condenser tank.
-
generator_power
-
The output power from the generator.
-
pump_1_blown
-
Flag for blown pump.
-
pump_1_rpm
-
The rotation of pump 1.
-
pump_1_status
-
The status of pump 1.
-
pump_2_blown
-
Flag for blown pump.
-
pump_2_rpm
-
The rotation of pump 2.
-
pump_2_status
-
The status of pump 2.
-
pump_3_blown
-
Flag for blown pump.
-
pump_3_rpm
-
The rotation of pump 3.
-
pump_3_status
-
The status of pump 3.
-
reactor_blown
-
Flag for blown reactor.
-
reactor_moderatorPercent
-
The percentage of the reactor moderator used
-
reactor_overheated
-
Flag for overheated reactor.
-
reactor_pressure
-
The pressure in the reactor tank.
-
reactor_waterLevel
-
The water level in the reactor tank.
-
turbine_blown
-
Flag for blown turbine.
-
valve_1_status
-
The status of valve 1.
-
valve_2_status
-
The status of valve 1.
-
valve_3_status
-
The status of valve 1.
-
valve_4_status
-
The status of valve 1.
-
TestSimulatorServer()
-
-
blow(String)
-
Blow up a device.
-
start()
-
This method processes the start service request.
-
timeStep()
-
Calculates the next state of the simulation.
reactor_pressure
protected float reactor_pressure
-
The pressure in the reactor tank. (Unit: bar)
reactor_moderatorPercent
protected int reactor_moderatorPercent
-
The percentage of the reactor moderator used
reactor_waterLevel
protected float reactor_waterLevel
-
The water level in the reactor tank. (Unit: millimeters)
reactor_blown
protected boolean reactor_blown
-
Flag for blown reactor. TRUE iff the reactor is blown.
reactor_overheated
protected boolean reactor_overheated
-
Flag for overheated reactor. TRUE iff the reactor is overheated.
turbine_blown
protected boolean turbine_blown
-
Flag for blown turbine. TRUE iff the turbine is blown.
condenser_pressure
protected float condenser_pressure
-
The pressure in the condenser tank. (Unit: bar)
condenser_waterLevel
protected float condenser_waterLevel
-
The water level in the condenser tank. (Unit: millimeters)
condenser_blown
protected boolean condenser_blown
-
Flag for blown reactor. TRUE iff the reactor is blown.
generator_power
protected int generator_power
-
The output power from the generator. (Unit: MW)
pump_1_status
protected int pump_1_status
-
The status of pump 1. (0 = broken, 1-6 = image frame number)
pump_1_rpm
protected int pump_1_rpm
-
The rotation of pump 1. (Unit: rpm)
pump_2_status
protected int pump_2_status
-
The status of pump 2. (0 = broken, 1-6 = image frame number)
pump_2_rpm
protected int pump_2_rpm
-
The rotation of pump 2. (Unit: rpm)
pump_3_status
protected int pump_3_status
-
The status of pump 3. (0 = broken, 1-6 = image frame number)
pump_3_rpm
protected int pump_3_rpm
-
The rotation of pump 3. (Unit: rpm)
pump_1_blown
protected boolean pump_1_blown
-
Flag for blown pump. TRUE iff the pump is blown.
pump_2_blown
protected boolean pump_2_blown
-
Flag for blown pump. TRUE iff the pump is blown.
pump_3_blown
protected boolean pump_3_blown
-
Flag for blown pump. TRUE iff the pump is blown.
valve_1_status
protected boolean valve_1_status
-
The status of valve 1. FALSE for closed and TRUE for open
valve_2_status
protected boolean valve_2_status
-
The status of valve 1. FALSE for closed and TRUE for open
valve_3_status
protected boolean valve_3_status
-
The status of valve 1. FALSE for closed and TRUE for open
valve_4_status
protected boolean valve_4_status
-
The status of valve 1. FALSE for closed and TRUE for open
TestSimulatorServer
public TestSimulatorServer()
start
public void start()
-
This method processes the start service request. The
method resets the plant state to the initial (steady)
state, and sends these values to the client.
-
Overrides:
-
start in class SimulatorServer
timeStep
public void timeStep()
-
Calculates the next state of the simulation. This
calculation is perfomed in java.
-
Overrides:
-
timeStep in class SimulatorServer
blow
public void blow(String device)
-
Blow up a device. This method responds to blow requests
from the client, and sets the simulation variables
accordingly.
-
Parameters:
-
device
-
The device to blow (e.g., "turbine")
-
Overrides:
-
blow in class SimulatorServer
-
See Also:
-
blow