Package repast.simphony.data2
Class NonAggregateDataSet
- java.lang.Object
-
- repast.simphony.data2.AbstractDataSet
-
- repast.simphony.data2.NonAggregateDataSet
-
- All Implemented Interfaces:
DataSet
public class NonAggregateDataSet extends AbstractDataSet
DataSet for ordinary non-aggregate data sources. One row of data will be recorded for each element in the recorded dataset.- Author:
- Nick Collier
-
-
Field Summary
-
Fields inherited from class repast.simphony.data2.AbstractDataSet
id, sinks
-
-
Constructor Summary
Constructors Constructor Description NonAggregateDataSet(String id, Collection<NonAggregateDataSource> sources, Collection<? extends DataSink> sinks)
Creates a NonAggregateDataSet 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
-
NonAggregateDataSet
public NonAggregateDataSet(String id, Collection<NonAggregateDataSource> sources, Collection<? extends DataSink> sinks)
Creates a NonAggregateDataSet with the specified sources and sinks.- Parameters:
sources
-sinks
-
-
-
Method Detail
-
getSourceIds
protected List<String> getSourceIds()
- Specified by:
getSourceIds
in classAbstractDataSet
-
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
-
-