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
FieldsModifier and TypeFieldDescriptionprotected repast.simphony.batch.OneRunBatchRunner.ORBControllerprotected Objectprotected booleanprotected SweeperProducer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected booleanprotected voidvoidpaused()Invoked when the current run has been paused.voidInvoked when the current run has been restarted after a pause.voidrun(int runNum, Parameters params) voidstarted()Invoked when the current run has been started.voidstopped()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:
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
-