Package repast.simphony.data2
Class AbstractDataSet
- java.lang.Object
-
- repast.simphony.data2.AbstractDataSet
-
- Type Parameters:
T
-
- All Implemented Interfaces:
DataSet
- Direct Known Subclasses:
AggregateDataSet
,NonAggregateDataSet
public abstract class AbstractDataSet extends Object implements DataSet
Abstract DataSet implementation.- Author:
- Nick Collier
-
-
Constructor Summary
Constructors Constructor Description AbstractDataSet(String id)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete 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.protected abstract List<String>
getSourceIds()
void
init()
Initializes this DataSet.Iterable<DataSink>
sinks()
Gets the sinks associated with this DataSet.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface repast.simphony.data2.DataSet
getSourceTypes, record
-
-
-
-
Constructor Detail
-
AbstractDataSet
public AbstractDataSet(String id)
-
-
Method Detail
-
sinks
public Iterable<DataSink> sinks()
Description copied from interface:DataSet
Gets the sinks associated with this DataSet.
-
init
public void init()
Description copied from interface:DataSet
Initializes this DataSet.
-
flush
public void flush()
Description copied from interface:DataSet
Notifies the sinks associated with this DataSet to flush their buffered data (if any).
-
-