Package repast.simphony.data2
Class AggregateDataSet
java.lang.Object
repast.simphony.data2.AbstractDataSet
repast.simphony.data2.AggregateDataSet
- All Implemented Interfaces:
DataSet
DataSet implementation that records data from aggregate DataSources.
- Author:
- Nick Collier
-
Field Summary
Fields inherited from class repast.simphony.data2.AbstractDataSet
id, sinks
-
Constructor Summary
ConstructorDescriptionAggregateDataSet
(String id, Collection<AggregateDataSource> sources, Collection<? extends DataSink> sinks) Creates an AggregateDataSet with the specified sources and sinks. -
Method Summary
Modifier and TypeMethodDescriptionGets the type of object that this dataset will collect data from.void
record
(Map<Class<?>, SizedIterable<?>> objMap) Records data from the specified ObjectListMap of objects.
-
Constructor Details
-
AggregateDataSet
public AggregateDataSet(String id, Collection<AggregateDataSource> sources, Collection<? extends DataSink> sinks) Creates an AggregateDataSet with the specified sources and sinks.- Parameters:
sources
-sinks
-
-
-
Method Details
-
getSourceIds
- Specified by:
getSourceIds
in classAbstractDataSet
-
getSourceTypes
Description copied from interface:DataSet
Gets the type of object that this dataset will collect data from.- Returns:
-
record
Description copied from interface:DataSet
Records data from the specified ObjectListMap of objects.- Parameters:
objMap
- the objs to record the data from
-