DataSourceIndependent, IDataSink, IDataSourcepublic 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 IDataSourcepublic void putData(IData inputData)
IDataSinkpublic IData getData()
getData in interface IDataSourcepublic void putDataInfo(IDataInfo inputDataInfo)
IDataSinkputDataInfo in interface IDataSinkpublic IDataInfo getDataInfo()
getDataInfo in interface IDataSourcepublic DataDoubleArray getIndependentData(int i)
DataSourceIndependentgetIndependentData in interface DataSourceIndependentpublic DataDoubleArray.DataInfoDoubleArray getIndependentDataInfo(int i)
DataSourceIndependentgetIndependentDataInfo in interface DataSourceIndependentpublic int getIndependentArrayDimension()
DataSourceIndependentgetIndependentArrayDimension in interface DataSourceIndependentpublic DataTag getIndependentTag()
DataSourceIndependentgetIndependentTag in interface DataSourceIndependentpublic AccumulatorPTensor.TemperatureSink makeTemperatureSink()