|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.spaceroots.mantissa.utilities.MappableArray
Wrapper class around an array in order to have it implement the
ArraySliceMappable interface.
| Constructor Summary | |
MappableArray(double[] array)
Simple constructor. |
|
MappableArray(int dimension)
Simple constructor. |
|
| Method Summary | |
double[] |
getArray()
Get the array stored in the instance. |
int |
getStateDimension()
Get the dimension of the internal array. |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MappableArray(int dimension)
dimension - dimension of the arraypublic MappableArray(double[] array)
array - array to use| Method Detail |
public double[] getArray()
public 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 | |||||||||