public class MappableScalar extends java.lang.Object implements ArraySliceMappable
ArraySliceMappable interface.| Constructor and Description |
|---|
MappableScalar()
Simple constructor.
|
MappableScalar(double value)
Simple constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getStateDimension()
Get the dimension of the internal array.
|
double |
getValue()
Get the value stored in the instance.
|
void |
mapStateFromArray(int start,
double[] array)
Reinitialize internal state from the specified array slice data.
|
void |
mapStateToArray(int start,
double[] array)
Store internal state data into the specified array slice.
|
void |
setValue(double value)
Set the value stored in the instance.
|
public MappableScalar()
public MappableScalar(double value)
value - initial value of the scalarpublic double getValue()
public void setValue(double value)
value - value to store in the instancepublic int getStateDimension()
getStateDimension in interface ArraySliceMappablepublic void mapStateFromArray(int start,
double[] array)
mapStateFromArray in interface ArraySliceMappablestart - start index in the arrayarray - array holding the data to extractpublic void mapStateToArray(int start,
double[] array)
mapStateToArray in interface ArraySliceMappablestart - start index in the arrayarray - array where data should be storedCopyright © 2001-2007 Luc Maisonobe. All Rights Reserved.