Package repast.simphony.ws
Class OneRunRunner
- java.lang.Object
-
- repast.simphony.ws.OneRunRunner
-
- All Implemented Interfaces:
RunListener
public class OneRunRunner extends Object implements RunListener
Runs a single run of a simulation.- Author:
- Nick Collier
-
-
Field Summary
Fields Modifier and Type Field Description protected repast.simphony.ws.OneRunRunner.ORBController
controller
protected Object
monitor
protected boolean
pause
-
Constructor Summary
Constructors Constructor Description OneRunRunner(Path workingDir, Path scenario, String incomingAddr, String outgoingAddr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initSim()
static void
main(String[] args)
void
onPicked(String json)
void
pause()
void
paused()
Invoked when the current run has been paused.void
restarted()
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 Detail
-
controller
protected repast.simphony.ws.OneRunRunner.ORBController controller
-
pause
protected boolean pause
-
monitor
protected Object monitor
-
-
Constructor Detail
-
OneRunRunner
public OneRunRunner(Path workingDir, Path scenario, String incomingAddr, String outgoingAddr) throws ScenarioLoadException
- Throws:
ScenarioLoadException
-
-
Method Detail
-
run
public void run()
-
onPicked
public void onPicked(String json)
-
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
public static void main(String[] args)
-
-