Class LocalSimulator
Class LocalSimulator
java.lang.Object
|
+----Simulator
|
+----LocalSimulator
-
class
LocalSimulator
-
extends Simulator
The class LocalSimulatorServer is a test class that simulates the
behavior of the simulator server. It is used for testing the
java client applet and its user interface.
-
See Also:
-
TestSimulatorServer,
ClipsSimulatorServer
-
Version:
-
1.0
-
Author:
-
Henrik Eriksson
-
condenser
-
The condenser
-
generator
-
The generator
-
pump_1
-
Pump object
-
pump_2
-
Pump object
-
pump_3
-
Pump object
-
reactor
-
The reactor and its components
-
turbine
-
The turbine
-
valve_1
-
Valve object
-
valve_2
-
Valve object
-
valve_3
-
Valve object
-
valve_4
-
Valve object
-
LocalSimulator(NuclearPlant)
-
Constructor for LocalSimulator.
-
blow(Component)
-
Blow up a device.
-
start()
-
Starts the local simulator.
-
stop()
-
Stop the simulation
-
timeStep(int)
-
Calculates the next state of the simulation.
reactor
protected Reactor reactor
-
The reactor and its components
valve_1
protected Valve valve_1
-
Valve object
valve_2
protected Valve valve_2
-
Valve object
valve_3
protected Valve valve_3
-
Valve object
valve_4
protected Valve valve_4
-
Valve object
pump_1
protected Pump pump_1
-
Pump object
pump_2
protected Pump pump_2
-
Pump object
pump_3
protected Pump pump_3
-
Pump object
turbine
protected Turbine turbine
-
The turbine
condenser
protected Condenser condenser
-
The condenser
generator
protected Generator generator
-
The generator
LocalSimulator
public LocalSimulator(NuclearPlant p)
-
Constructor for LocalSimulator. Wires objects based on the
NuclearPlant components.
-
Parameters:
-
p
-
The current NuclearPlant object
start
public void start()
-
Starts the local simulator. This method initializes
the simulation variables (i.e., the plant is reset
to steady state).
-
Overrides:
-
start in class Simulator
timeStep
public void timeStep(int n)
-
Calculates the next state of the simulation. This
calculation is perfomed locally in java.
-
Parameters:
-
n
-
The number of steps to calculate before returning
-
Overrides:
-
timeStep in class Simulator
blow
public void blow(Component device)
-
Blow up a device.
-
Parameters:
-
device
-
The device to blow (e.g., a turbine object)
-
Overrides:
-
blow in class Simulator
stop
public void stop()
-
Stop the simulation
-
Overrides:
-
stop in class Simulator