DataPipe
, DataPipeForked
, DataSourceIndependent
, IDataSink
, IDataSource
public class AccumulatorAutocorrelationShearStress extends DataAccumulator implements DataSourceIndependent
Modifier and Type | Field | Description |
---|---|---|
protected DataFunction |
data |
|
protected int |
dim |
|
protected double |
dt |
|
protected IDataInfo |
inputDataInfo |
|
protected int |
nBlocks |
|
protected int |
nMax |
|
protected IData |
product |
|
protected java.util.List<double[]> |
savedData |
|
protected IData |
sum |
|
protected DataDoubleArray |
tData |
|
protected DataDoubleArray.DataInfoDoubleArray |
tDataInfo |
|
protected DataTag |
tTag |
active, hasUnpushedData, pushInterval, putCount
dataInfo, dataSink, tag
Constructor | Description |
---|---|
AccumulatorAutocorrelationShearStress(int nMax,
double dt) |
Modifier and Type | Method | Description |
---|---|---|
protected boolean |
addData(IData data) |
Defined by subclass to specify what this accumulator does when data is added to it.
|
IData |
getData() |
|
int |
getIndependentArrayDimension() |
Returns the number of independent data dimensions
|
DataDoubleArray |
getIndependentData(int i) |
Returns the X data for the given dimension
|
DataDoubleArray.DataInfoDoubleArray |
getIndependentDataInfo(int i) |
Returns the DataInfo for the given dimension
|
DataTag |
getIndependentTag() |
Returns the tag associated with this DataSource.
|
int |
getNMax() |
|
protected IDataInfo |
processDataInfo(IDataInfo inputDataInfo) |
Informs this DataProcessor of the DataInfo for the Data it will be
processing.
|
void |
reset() |
Clear accumulated values.
|
void |
setNMax(int newNMax) |
getPushInterval, isActive, processData, setActive, setPushInterval, toString
getDataInfo, getTag, putData, putDataInfo
addDataSink, getDataSink, getDataSinks, removeDataSink, setDataSink, setDataSinks
putData, putDataInfo
getDataInfo, getTag
protected DataFunction data
protected DataDoubleArray tData
protected DataDoubleArray.DataInfoDoubleArray tDataInfo
protected final DataTag tTag
protected int nMax
protected IDataInfo inputDataInfo
protected final java.util.List<double[]> savedData
protected IData sum
protected IData product
protected int dim
protected final double dt
protected int nBlocks
public AccumulatorAutocorrelationShearStress(int nMax, double dt)
public void setNMax(int newNMax)
public int getNMax()
protected boolean addData(IData data)
DataAccumulator
addData
in class DataAccumulator
data
- the data to be processedpublic void reset()
DataAccumulator
reset
in class DataAccumulator
public IData getData()
getData
in interface IDataSource
getData
in class DataAccumulator
protected IDataInfo processDataInfo(IDataInfo inputDataInfo)
DataProcessor
processDataInfo
in class DataProcessor
inputDataInfo
- the DataInfo of the Data that will be input to this
DataProcessorpublic DataDoubleArray getIndependentData(int i)
DataSourceIndependent
getIndependentData
in interface DataSourceIndependent
public DataDoubleArray.DataInfoDoubleArray getIndependentDataInfo(int i)
DataSourceIndependent
getIndependentDataInfo
in interface DataSourceIndependent
public int getIndependentArrayDimension()
DataSourceIndependent
getIndependentArrayDimension
in interface DataSourceIndependent
public DataTag getIndependentTag()
DataSourceIndependent
getIndependentTag
in interface DataSourceIndependent