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