Package repast.simphony.data2
Class DataSetRegistry
- java.lang.Object
-
- repast.simphony.data2.DataSetRegistry
-
public class DataSetRegistry extends Object
Registry that allows various parts of the data collection system to be shared among controller actions.- Author:
- Nick Collier
-
-
Constructor Summary
Constructors Constructor Description DataSetRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDataSetManager(Object contextId, DataSetManager manager)
Adds a DataSetManager for the specified context.void
addFileDataSink(FileDataSink sink)
Adds a FileDataSink to this DataSetRegistry.Iterable<FileDataSink>
fileSinks()
Gets all the FileDataSinks that have been added to this DataSetRegistry.DataSetManager
getDataSetManager(Object contextId)
Gets the DataSetManager associated with the specified context.
-
-
-
Method Detail
-
addDataSetManager
public void addDataSetManager(Object contextId, DataSetManager manager)
Adds a DataSetManager for the specified context.- Parameters:
contextId
-manager
-
-
getDataSetManager
public DataSetManager getDataSetManager(Object contextId)
Gets the DataSetManager associated with the specified context.- Parameters:
contextId
-- Returns:
- the DataSetManager associated with the specified context.
-
addFileDataSink
public void addFileDataSink(FileDataSink sink)
Adds a FileDataSink to this DataSetRegistry.- Parameters:
sink
-
-
fileSinks
public Iterable<FileDataSink> fileSinks()
Gets all the FileDataSinks that have been added to this DataSetRegistry.- Returns:
- all the FileDataSinks that have been added to this DataSetRegistry.
-
-