public class MappableArray extends java.lang.Object implements ArraySliceMappable
ArraySliceMappable interface.| Constructor and Description |
|---|
MappableArray(double[] array)
Simple constructor.
|
MappableArray(int dimension)
Simple constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public MappableArray(int dimension)
dimension - dimension of the arraypublic MappableArray(double[] array)
array - array to usepublic double[] getArray()
public 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.