Package repast.simphony.data2
Class SingleRunDataSetManager
java.lang.Object
repast.simphony.data2.AbstractDataSetManager
repast.simphony.data2.SingleRunDataSetManager
- All Implemented Interfaces:
DataSetManager,RunListener
DataSetManager for single (i.e. non-batch) runs.
- 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidNotifies this DataSetManager that the set of batch runs has ended.voidNotifies this DataSetManager that the set of batch runs has started.booleanisBatch()Gets whether or not this is a batch run.voidNotifies this DataSetManager that an individual run has ended.voidrunStarted(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
-
Constructor Details
-
SingleRunDataSetManager
public SingleRunDataSetManager()
-
-
Method Details
-
batchStarted
public void batchStarted()Description copied from interface:DataSetManagerNotifies this DataSetManager that the set of batch runs has started. -
batchEnded
public void batchEnded()Description copied from interface:DataSetManagerNotifies this DataSetManager that the set of batch runs has ended. -
runEnded
Description copied from interface:DataSetManagerNotifies this DataSetManager that an individual run has ended.- Specified by:
runEndedin interfaceDataSetManager- Overrides:
runEndedin classAbstractDataSetManager- Parameters:
runState- the RunState of the run that just ended.
-
runStarted
Description copied from interface:DataSetManagerNotifies this DataSetManager that an individual run has started.- Specified by:
runStartedin interfaceDataSetManager- Overrides:
runStartedin classAbstractDataSetManager- Parameters:
runState- the current RunState -- run number etc can be retrieved from thatparameters- the current model parameters
-
isBatch
public boolean isBatch()Description copied from interface:DataSetManagerGets whether or not this is a batch run.- Returns:
- true if this is batch run otherwise false.
-