Package repast.simphony.data2
Interface DataSet
-
- All Known Implementing Classes:
AbstractDataSet
,AggregateDataSet
,NonAggregateDataSet
public interface DataSet
Records data from DataSources and passes that data to DataSinks.- Author:
- Nick Collier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Closes this DataSet.void
flush()
Notifies the sinks associated with this DataSet to flush their buffered data (if any).String
getId()
Gets the id of this DataSet.Iterable<Class<?>>
getSourceTypes()
Gets the type of object that this dataset will collect data from.void
init()
Initializes this DataSet.void
record(Map<Class<?>,SizedIterable<?>> objs)
Records data from the specified ObjectListMap of objects.Iterable<DataSink>
sinks()
Gets the sinks associated with this DataSet.
-
-
-
Method Detail
-
getId
String getId()
Gets the id of this DataSet.- Returns:
- the id of this DataSet.
-
getSourceTypes
Iterable<Class<?>> getSourceTypes()
Gets the type of object that this dataset will collect data from.- Returns:
-
sinks
Iterable<DataSink> sinks()
Gets the sinks associated with this DataSet.- Returns:
- the sinks associated with this DataSet.
-
init
void init()
Initializes this DataSet.
-
record
void record(Map<Class<?>,SizedIterable<?>> objs)
Records data from the specified ObjectListMap of objects.- Parameters:
objs
- the objs to record the data from
-
flush
void flush()
Notifies the sinks associated with this DataSet to flush their buffered data (if any).
-
close
void close()
Closes this DataSet.
-
-