DataSourceIndependent
, IDataSource
, java.io.Serializable
public class MeterProfile extends java.lang.Object implements IDataSource, DataSourceIndependent, java.io.Serializable
Modifier and Type | Field | Description |
---|---|---|
protected DataSourcePositioned |
meter |
Meter that defines the property being profiled.
|
protected RandomPositionSource |
positionSource |
|
protected int |
profileDim |
Vector describing the orientation of the profile.
|
protected DataTag |
tag |
Constructor | Description |
---|---|
MeterProfile(Space space,
IRandom random) |
Default constructor sets profile along the x-axis, with 100 points in
the profile.
|
Modifier and Type | Method | Description |
---|---|---|
Box |
getBox() |
|
IData |
getData() |
Returns the profile for the current configuration.
|
IDataInfo |
getDataInfo() |
|
DataSourcePositioned |
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.
|
RandomPositionSource |
getPositionSource() |
Returns the RandomPositionSource used by this meter.
|
int |
getProfileDim() |
Accessor method for vector describing the direction along which the profile is measured.
|
DataTag |
getTag() |
|
void |
reset() |
|
void |
setBox(Box box) |
|
void |
setDataSource(DataSourcePositioned m) |
Accessor method for the meter that defines the profiled quantity.
|
void |
setPositionSource(RandomPositionSource newPositionSource) |
Sets a new RandomPositionSource for this meter to use.
|
void |
setProfileDim(int dim) |
Accessor method for vector describing the direction along which the profile is measured.
|
protected RandomPositionSource positionSource
protected int profileDim
protected DataSourcePositioned meter
protected final DataTag tag
public IDataInfo getDataInfo()
getDataInfo
in interface IDataSource
public DataTag getTag()
getTag
in interface IDataSource
public DataSourcePositioned getDataSource()
public void setDataSource(DataSourcePositioned 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 Box getBox()
public void setBox(Box box)
box
- The box to set.public void reset()
public void setPositionSource(RandomPositionSource newPositionSource)
public RandomPositionSource getPositionSource()