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
FieldsModifier and TypeFieldDescriptionprotected repast.simphony.ws.OneRunRunner.ORBControllerprotected Objectprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionOneRunRunner(Path workingDir, Path scenario, String incomingAddr, String outgoingAddr) -
Method Summary
Modifier and TypeMethodDescriptionvoidinitSim()static voidvoidvoidpause()voidpaused()Invoked when the current run has been paused.voidInvoked when the current run has been restarted after a pause.voidrun()voidshutdown()voidstart()voidstarted()Invoked when the current run has been started.voidstep()voidstop()voidstopped()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:
pausedin interfaceRunListener
-
restarted
public void restarted()Invoked when the current run has been restarted after a pause.- Specified by:
restartedin interfaceRunListener
-
started
public void started()Invoked when the current run has been started.- Specified by:
startedin 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:
stoppedin interfaceRunListener
-
main
-