Package repast.simphony.ws
Class OneRunRunner
java.lang.Object
repast.simphony.ws.OneRunRunner
- All Implemented Interfaces:
RunListener
Runs a single run of a simulation.
- Author:
- Nick Collier
-
Field Summary
Modifier and TypeFieldDescriptionprotected repast.simphony.ws.OneRunRunner.ORBController
protected Object
protected boolean
-
Constructor Summary
ConstructorDescriptionOneRunRunner
(Path workingDir, Path scenario, String incomingAddr, String outgoingAddr) -
Method Summary
Modifier and TypeMethodDescriptionvoid
initSim()
static void
void
void
pause()
void
paused()
Invoked when the current run has been paused.void
Invoked when the current run has been restarted after a pause.void
run()
void
shutdown()
void
start()
void
started()
Invoked when the current run has been started.void
step()
void
stop()
void
stopped()
Invoked when the current run has been stopped.
-
Field Details
-
controller
protected repast.simphony.ws.OneRunRunner.ORBController controller -
pause
protected boolean pause -
monitor
-
-
Constructor Details
-
OneRunRunner
public OneRunRunner(Path workingDir, Path scenario, String incomingAddr, String outgoingAddr) throws ScenarioLoadException - Throws:
ScenarioLoadException
-
-
Method Details
-
run
public void run() -
onPicked
-
initSim
public void initSim() -
step
public void step() -
start
public void start() -
pause
public void pause() -
stop
public void stop() -
shutdown
public void shutdown() -
paused
public void paused()Invoked when the current run has been paused.- Specified by:
paused
in interfaceRunListener
-
restarted
public void restarted()Invoked when the current run has been restarted after a pause.- Specified by:
restarted
in interfaceRunListener
-
started
public void started()Invoked when the current run has been started.- Specified by:
started
in interfaceRunListener
-
stopped
public void stopped()Invoked when the current run has been stopped. This will stop this thread from waiting for the current run to finish.- Specified by:
stopped
in interfaceRunListener
-
main
-