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
Modifier and TypeMethodDescriptionvoid
close()
Closes this DataSet.void
flush()
Notifies the sinks associated with this DataSet to flush their buffered data (if any).getId()
Gets the id of this DataSet.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.sinks()
Gets the sinks associated with this DataSet.
-
Method Details
-
getId
String getId()Gets the id of this DataSet.- Returns:
- the id of this DataSet.
-
getSourceTypes
Gets the type of object that this dataset will collect data from.- Returns:
-
sinks
Gets the sinks associated with this DataSet.- Returns:
- the sinks associated with this DataSet.
-
init
void init()Initializes this DataSet. -
record
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.
-