Package repast.simphony.data2
Class AggregateDataSet
- java.lang.Object
-
- repast.simphony.data2.AbstractDataSet
-
- repast.simphony.data2.AggregateDataSet
-
- All Implemented Interfaces:
DataSet
public class AggregateDataSet extends AbstractDataSet
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
Constructors Constructor Description AggregateDataSet(String id, Collection<AggregateDataSource> sources, Collection<? extends DataSink> sinks)
Creates an AggregateDataSet with the specified sources and sinks.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<String>
getSourceIds()
Iterable<Class<?>>
getSourceTypes()
Gets 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 Detail
-
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 Detail
-
getSourceIds
protected List<String> getSourceIds()
- Specified by:
getSourceIds
in classAbstractDataSet
-
getSourceTypes
public Iterable<Class<?>> getSourceTypes()
Description copied from interface:DataSet
Gets the type of object that this dataset will collect data from.- Returns:
-
record
public void record(Map<Class<?>,SizedIterable<?>> objMap)
Description copied from interface:DataSet
Records data from the specified ObjectListMap of objects.- Parameters:
objMap
- the objs to record the data from
-
-