public class MeterProfileByAtoms extends java.lang.Object implements IEtomicaDataSource, DataSourceIndependent, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected IBox |
box |
protected DataFunction |
data |
protected IEtomicaDataInfo |
dataInfo |
protected DataSourceMolecular |
meter
Meter that defines the property being profiled.
|
protected int[] |
nAtoms |
protected IVectorMutable |
position |
protected int |
profileDim
Vector describing the orientation of the profile.
|
protected ISpecies |
species |
protected DataTag |
tag |
protected DataSourceUniform |
xDataSource |
protected double[] |
y |
Constructor and Description |
---|
MeterProfileByAtoms(ISpace space)
Default constructor sets profile along the y-axis, with 100 histogram points.
|
Modifier and Type | Method and Description |
---|---|
IBox |
getBox() |
IData |
getData()
Returns the profile for the current configuration.
|
IEtomicaDataInfo |
getDataInfo() |
DataSourceMolecular |
getDataSource()
The meter that defines the profiled quantity
|
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.
|
IAtomPositionDefinition |
getPositionDefinition() |
int |
getProfileDim()
Accessor method for vector describing the direction along which the profile is measured.
|
ISpecies |
getSpecies() |
DataTag |
getTag() |
void |
reset() |
void |
setBox(IBox box) |
void |
setDataSource(DataSourceMolecular m)
Accessor method for the meter that defines the profiled quantity.
|
void |
setPositionDefinition(IAtomPositionDefinition positionDefinition) |
void |
setProfileDim(int dim)
Accessor method for vector describing the direction along which the profile is measured.
|
void |
setSpecies(ISpecies newSpecies) |
protected IBox box
protected DataSourceUniform xDataSource
protected DataFunction data
protected double[] y
protected int[] nAtoms
protected IEtomicaDataInfo dataInfo
protected int profileDim
protected final IVectorMutable position
protected DataSourceMolecular meter
protected final DataTag tag
protected ISpecies species
public MeterProfileByAtoms(ISpace space)
public IEtomicaDataInfo getDataInfo()
getDataInfo
in interface IEtomicaDataSource
public DataTag getTag()
getTag
in interface IEtomicaDataSource
public DataSourceMolecular getDataSource()
public void setDataSource(DataSourceMolecular m)
public int getProfileDim()
public void setProfileDim(int dim)
public IData getData()
getData
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 IBox getBox()
public void setBox(IBox box)
box
- The box to set.public ISpecies getSpecies()
public void setSpecies(ISpecies newSpecies)
public void reset()
public void setPositionDefinition(IAtomPositionDefinition positionDefinition)
public IAtomPositionDefinition getPositionDefinition()