Modifier and Type | Class and Description |
---|---|
static interface |
DataSplitter.IDataSinkFactory |
Modifier and Type | Field and Description |
---|---|
protected DataInfo |
dataInfo |
protected DataSplitter.IDataSinkFactory |
dataSinkFactory |
protected IDataSink[] |
dataSinks |
protected DataDouble[] |
outData |
protected DataTag |
tag |
Constructor and Description |
---|
DataSplitter() |
Modifier and Type | Method and Description |
---|---|
DataPipe |
getDataCaster(IEtomicaDataInfo incomingDataInfo)
Returns a DataProcessor that casts the data that will be given
to this DataSink to a form that it can accept.
|
IDataSink |
getDataSink(int i)
Returns the DataSink for the ith output stream (corresponding to the ith
numerical value coming in).
|
int |
getNumDataSinks() |
DataTag |
getTag()
Returns the DataTag associated with this DataSplitter
|
void |
putData(IData data)
Gives data to DataSink for processing, display, or whatever it does.
|
void |
putDataInfo(IEtomicaDataInfo incomingDataInfo)
Informs the DataSink of the type of Data it should expect to receive.
|
void |
setDataSink(int i,
IDataSink newDataSink)
Sets the DataSink for the ith output stream (corresponding to the ith
numerical value coming in).
|
void |
setDataSinkFactory(DataSplitter.IDataSinkFactory factory) |
protected IDataSink[] dataSinks
protected DataDouble[] outData
protected DataInfo dataInfo
protected final DataTag tag
protected DataSplitter.IDataSinkFactory dataSinkFactory
public DataTag getTag()
public IDataSink getDataSink(int i)
public int getNumDataSinks()
public void setDataSink(int i, IDataSink newDataSink)
public DataPipe getDataCaster(IEtomicaDataInfo incomingDataInfo)
IDataSink
getDataCaster
in interface IDataSink
incomingDataInfo
- the DataInfo for the Data that will fed to the sink's putData methodpublic void putData(IData data)
IDataSink
public void putDataInfo(IEtomicaDataInfo incomingDataInfo)
IDataSink
putDataInfo
in interface IDataSink
public void setDataSinkFactory(DataSplitter.IDataSinkFactory factory)