DataPipe
, DataPipeForked
, IDataSink
, IDataSource
public class AccumulatorHistory extends DataAccumulator
Modifier and Type | Class | Description |
---|---|---|
protected static class |
AccumulatorHistory.DataSourceCount |
Simple DataSource to use as a default time DataSource.
|
Modifier and Type | Field | Description |
---|---|---|
protected History |
history |
|
protected int |
nData |
|
protected DataSourceIndependentSimple |
xDataSources |
active, hasUnpushedData, pushInterval, putCount
dataInfo, dataSink, tag
Constructor | Description |
---|---|
AccumulatorHistory() |
Creates instance using HistorySimple factory and specifying historys
having 100 bins.
|
AccumulatorHistory(History history) |
Modifier and Type | Method | Description |
---|---|---|
protected boolean |
addData(IData newData) |
Adds each value in the given array to its own history.
|
IData |
getData() |
Returns the set of histories.
|
IDataInfo |
getDataInfo() |
|
History |
getHistory() |
|
DataSourceScalar |
getTimeDataSource() |
Returns the DataSource used for the "time" component of the history.
|
protected IDataInfo |
processDataInfo(IDataInfo newInputDataInfo) |
Sets up data and histories, discarding any previous results.
|
void |
reset() |
Clear accumulated values.
|
void |
setHistory(History newHistory) |
|
void |
setTimeDataSource(DataSourceScalar newTimeDataSource) |
Sets the DataSource used for the "time" component of the history.
|
getPushInterval, isActive, processData, setActive, setPushInterval, toString
getTag, putData, putDataInfo
addDataSink, getDataSink, getDataSinks, removeDataSink, setDataSink, setDataSinks
putData, putDataInfo
getTag
protected History history
protected DataSourceIndependentSimple xDataSources
protected int nData
public AccumulatorHistory()
public AccumulatorHistory(History history)
public DataSourceScalar getTimeDataSource()
public void setTimeDataSource(DataSourceScalar newTimeDataSource)
protected IDataInfo processDataInfo(IDataInfo newInputDataInfo)
processDataInfo
in class DataProcessor
newInputDataInfo
- protected boolean addData(IData newData)
addData
in class DataAccumulator
newData
- the data to be processedpublic IData getData()
getData
in interface IDataSource
getData
in class DataAccumulator
public History getHistory()
public void setHistory(History newHistory)
public void reset()
DataAccumulator
reset
in class DataAccumulator
public IDataInfo getDataInfo()
getDataInfo
in interface IDataSource
getDataInfo
in class DataProcessor