DataPipe, DataPipeForked, IDataSink, IDataSourcepublic 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, putCountdataInfo, 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, toStringgetTag, putData, putDataInfoaddDataSink, getDataSink, getDataSinks, removeDataSink, setDataSink, setDataSinksputData, putDataInfogetTagprotected 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 DataProcessornewInputDataInfo - protected boolean addData(IData newData)
addData in class DataAccumulatornewData - the data to be processedpublic IData getData()
getData in interface IDataSourcegetData in class DataAccumulatorpublic History getHistory()
public void setHistory(History newHistory)
public void reset()
DataAccumulatorreset in class DataAccumulatorpublic IDataInfo getDataInfo()
getDataInfo in interface IDataSourcegetDataInfo in class DataProcessor