Package repast.simphony.data2
Class BatchRunDataSetManager
- java.lang.Object
-
- repast.simphony.data2.AbstractDataSetManager
-
- repast.simphony.data2.BatchRunDataSetManager
-
- All Implemented Interfaces:
DataSetManager
,RunListener
public class BatchRunDataSetManager extends AbstractDataSetManager
DataSetManager for batch runs.DataSets will be opened on batch started and closed on batch ended.- Author:
- Nick Collier
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class repast.simphony.data2.AbstractDataSetManager
AbstractDataSetManager.ObjList, AbstractDataSetManager.ScheduledDataSet
-
-
Field Summary
-
Fields inherited from class repast.simphony.data2.AbstractDataSetManager
builders, dataSets
-
-
Constructor Summary
Constructors Constructor Description BatchRunDataSetManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
batchEnded()
Notifies this DataSetManager that the set of batch runs has ended.void
batchStarted()
Notifies this DataSetManager that the set of batch runs has started.boolean
isBatch()
Gets whether or not this is a batch run.void
runEnded(RunState runState, Object contextId)
Notifies this DataSetManager that an individual run has ended.void
runStarted(RunState runState, Object contextId, Parameters parameters)
Notifies this DataSetManager that an individual run has started.-
Methods inherited from class repast.simphony.data2.AbstractDataSetManager
addDataSet, addDataSetBuilder, clearDataSetBuilders, clearDataSets, flush, getBatchRunDataSource, getDataSetBuilder, getRandomSeedDataSource, getTickCountDataSource, paused, removeDataSetbuilder, restarted, started, stopped
-
-
-
-
Method Detail
-
batchStarted
public void batchStarted()
Description copied from interface:DataSetManager
Notifies this DataSetManager that the set of batch runs has started.
-
runStarted
public void runStarted(RunState runState, Object contextId, Parameters parameters)
Description copied from interface:DataSetManager
Notifies this DataSetManager that an individual run has started.- Specified by:
runStarted
in interfaceDataSetManager
- Overrides:
runStarted
in classAbstractDataSetManager
- Parameters:
runState
- the current RunState -- run number etc can be retrieved from thatparameters
- the current model parameters
-
runEnded
public void runEnded(RunState runState, Object contextId)
Description copied from interface:DataSetManager
Notifies this DataSetManager that an individual run has ended.- Specified by:
runEnded
in interfaceDataSetManager
- Overrides:
runEnded
in classAbstractDataSetManager
- Parameters:
runState
- the RunState of the run that just ended.
-
batchEnded
public void batchEnded()
Description copied from interface:DataSetManager
Notifies this DataSetManager that the set of batch runs has ended.
-
isBatch
public boolean isBatch()
Description copied from interface:DataSetManager
Gets whether or not this is a batch run.- Returns:
- true if this is batch run otherwise false.
-
-