DataSourceIndependent
, IDataSink
, IDataSource
public class AccumulatorPTensor extends java.lang.Object implements IDataSink, IDataSource, DataSourceIndependent
Modifier and Type | Class | Description |
---|---|---|
class |
AccumulatorPTensor.TemperatureSink |
Modifier and Type | Field | Description |
---|---|---|
protected double[][] |
blockSumX |
|
protected DataFunction |
data |
|
protected DataFunction.DataInfoFunction |
dataInfo |
|
protected int |
dim |
|
protected double |
dt |
|
protected boolean |
enabled |
|
protected DataFunction |
errData |
|
protected DataFunction.DataInfoFunction |
errDataInfo |
|
protected DataTag |
errTag |
|
protected IntegratorMD |
integrator |
|
protected int |
interval |
|
protected long[] |
nBlockSamplesX |
|
protected int |
nP |
|
protected long |
nSample |
|
protected double[] |
sumP2 |
|
protected double[] |
sumP4 |
|
protected DataTag |
tag |
|
protected double |
temperature |
|
protected double |
volume |
|
protected DataDoubleArray |
xData |
|
protected DataDoubleArray.DataInfoDoubleArray |
xDataInfo |
|
protected DataTag |
xTag |
Constructor | Description |
---|---|
AccumulatorPTensor(IntegratorMD integrator,
double dt) |
Modifier and Type | Method | Description |
---|---|---|
IData |
getData() |
|
IDataInfo |
getDataInfo() |
|
boolean |
getEnabled() |
|
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.
|
DataTag |
getTag() |
|
AccumulatorPTensor.TemperatureSink |
makeTemperatureSink() |
|
void |
putData(IData inputData) |
Gives data to DataSink for processing, display, or whatever it does.
|
void |
putDataInfo(IDataInfo inputDataInfo) |
Informs the DataSink of the type of Data it should expect to receive.
|
void |
reset() |
|
void |
setEnabled(boolean isEnabled) |
protected DataDoubleArray xData
protected DataDoubleArray.DataInfoDoubleArray xDataInfo
protected DataFunction data
protected DataFunction errData
protected DataFunction.DataInfoFunction dataInfo
protected DataFunction.DataInfoFunction errDataInfo
protected final DataTag xTag
protected final DataTag tag
protected final DataTag errTag
protected double[][] blockSumX
protected long[] nBlockSamplesX
protected final IntegratorMD integrator
protected long nSample
protected boolean enabled
protected int interval
protected double[] sumP2
protected double[] sumP4
protected int nP
protected int dim
protected double volume
protected double temperature
protected double dt
public AccumulatorPTensor(IntegratorMD integrator, double dt)
public void reset()
public void setEnabled(boolean isEnabled)
public boolean getEnabled()
public DataTag getTag()
getTag
in interface IDataSource
public void putData(IData inputData)
IDataSink
public IData getData()
getData
in interface IDataSource
public void putDataInfo(IDataInfo inputDataInfo)
IDataSink
putDataInfo
in interface IDataSink
public IDataInfo getDataInfo()
getDataInfo
in interface IDataSource
public 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
public AccumulatorPTensor.TemperatureSink makeTemperatureSink()