Package repast.simphony.batch
Class OneRunBatchRunner
java.lang.Object
repast.simphony.batch.OneRunBatchRunner
- All Implemented Interfaces:
RunListener
Runs a simulation in batch mode.
- Author:
- Nick Collier
-
Field Summary
Modifier and TypeFieldDescriptionprotected repast.simphony.batch.OneRunBatchRunner.ORBController
protected Object
protected boolean
protected SweeperProducer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
protected boolean
protected void
void
paused()
Invoked when the current run has been paused.void
Invoked when the current run has been restarted after a pause.void
run
(int runNum, Parameters params) void
started()
Invoked when the current run has been started.void
stopped()
Invoked when the current run has been stopped.protected void
-
Field Details
-
controller
protected repast.simphony.batch.OneRunBatchRunner.ORBController controller -
pause
protected boolean pause -
monitor
-
producer
-
-
Constructor Details
-
OneRunBatchRunner
- Throws:
ScenarioLoadException
-
-
Method Details
-
batchInit
public void batchInit() -
batchCleanup
public void batchCleanup() -
run
-
keepRunning
protected boolean keepRunning() -
waitForRun
protected void waitForRun() -
notifyMonitor
protected void notifyMonitor() -
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
-