|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.util.mapper.MappableArray
public class MappableArray
Wrapper class around an array in order to have it implement the ArraySliceMappable interface.
| Constructor Summary | |
|---|---|
MappableArray(double[] array,
boolean doReallocate)
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 array
public MappableArray(double[] array,
boolean doReallocate)
array - array to usedoReallocate - true if a new array should be allocated and
initialized using the other argument, false if the instance
should reference the existing array throughout its lifetime| 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 | ||||||||