|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.data.DataProcessor
etomica.data.DataProcessorForked
etomica.data.DataAccumulator
etomica.data.AccumulatorHistory
public class AccumulatorHistory
Accumulator that keeps history of data.
| Nested Class Summary | |
|---|---|
protected static class |
AccumulatorHistory.DataSourceCount
Simple DataSource to use as a default time DataSource. |
| Field Summary | |
|---|---|
protected History |
history
|
protected int |
nData
|
protected DataSourceIndependentSimple |
xDataSources
|
| Fields inherited from class etomica.data.DataAccumulator |
|---|
active, putCount |
| Fields inherited from class etomica.data.DataProcessor |
|---|
dataInfo, dataSink, tag, trueDataSink |
| Constructor Summary | |
|---|---|
AccumulatorHistory()
Creates instance using HistorySimple factory and specifying historys having 100 bins. |
|
AccumulatorHistory(History history)
|
|
| Method Summary | |
|---|---|
protected void |
addData(IData newData)
Adds each value in the given array to its own history. |
IData |
getData()
Returns the set of histories. |
DataPipe |
getDataCaster(IEtomicaDataInfo newInputDataInfo)
Returns null. |
IEtomicaDataInfo |
getDataInfo()
|
History |
getHistory()
|
DataSourceScalar |
getTimeDataSource()
Returns the DataSource used for the "time" component of the history. |
protected IEtomicaDataInfo |
processDataInfo(IEtomicaDataInfo newInputDataInfo)
Sets up data and histories, discarding any previous results. |
void |
reset()
Defined by subclass to perform some action that clears accumulated values. |
void |
setHistory(History newHistory)
|
void |
setTimeDataSource(DataSourceScalar newTimeDataSource)
Sets the DataSource used for the "time" component of the history. |
| Methods inherited from class etomica.data.DataAccumulator |
|---|
getPushInterval, isActive, processData, setActive, setPushInterval, toString |
| Methods inherited from class etomica.data.DataProcessorForked |
|---|
addDataSink, getDataSink, getDataSinks, removeDataSink, setDataSink, setDataSinks |
| Methods inherited from class etomica.data.DataProcessor |
|---|
getTag, insertTransformerIfNeeded, putData, putDataInfo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface etomica.data.IEtomicaDataSource |
|---|
getTag |
| Methods inherited from interface etomica.data.DataPipe |
|---|
getTag |
| Methods inherited from interface etomica.data.IDataSink |
|---|
putData, putDataInfo |
| Field Detail |
|---|
protected History history
protected DataSourceIndependentSimple xDataSources
protected int nData
| Constructor Detail |
|---|
public AccumulatorHistory()
public AccumulatorHistory(History history)
| Method Detail |
|---|
public void setTimeDataSource(DataSourceScalar newTimeDataSource)
public DataSourceScalar getTimeDataSource()
public DataPipe getDataCaster(IEtomicaDataInfo newInputDataInfo)
newInputDataInfo - the DataInfo for the Data that will fed to the sink's putData methodprotected IEtomicaDataInfo processDataInfo(IEtomicaDataInfo newInputDataInfo)
processDataInfo in class DataProcessornData -
protected void addData(IData newData)
addData in class DataAccumulatorpublic IData getData()
getData in interface IDataSourcegetData in class DataAccumulatorpublic History getHistory()
public void setHistory(History newHistory)
public void reset()
DataAccumulator
reset in class DataAccumulatorpublic IEtomicaDataInfo getDataInfo()
getDataInfo in interface IEtomicaDataSourcegetDataInfo in class DataProcessor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||