|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.spaceroots.mantissa.utilities.MappableScalar
Wrapper class around a scalar in order to have it implement the
ArraySliceMappable interface.
| Constructor Summary | |
MappableScalar()
Simple constructor. |
|
MappableScalar(double value)
Simple constructor. |
|
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MappableScalar()
public MappableScalar(double value)
value - initial value of the scalar| Method Detail |
public double getValue()
public void setValue(double value)
value - value to store in the instancepublic int getStateDimension()
getStateDimension in interface ArraySliceMappable
public void mapStateFromArray(int start,
double[] array)
mapStateFromArray in interface ArraySliceMappablestart - start index in the arrayarray - array holding the data to extract
public void mapStateToArray(int start,
double[] array)
mapStateToArray in interface ArraySliceMappablestart - start index in the arrayarray - array where data should be stored
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||