|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.spaceroots.mantissa.utilities.ArrayMapper
This class dispatch data between an array and several domain objects. This class handles all the burden of mapping each domain object it handles to a slice of a single array.
ArraySliceMappable| Constructor Summary | |
ArrayMapper()
Simple constructor. |
|
ArrayMapper(ArraySliceMappable object)
Simple constructor. |
|
| Method Summary | |
double[] |
getDataArray()
Get the data array. |
void |
manageMappable(ArraySliceMappable object)
Take a new domain object into account. |
void |
updateArray()
Map data from the domain objects to the internal array. |
void |
updateArray(double[] data)
Map data from the domain objects to the specified array. |
void |
updateObjects()
Map data from the internal array to the domain objects. |
void |
updateObjects(double[] data)
Map data from the specified array to the domain objects. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ArrayMapper()
public ArrayMapper(ArraySliceMappable object)
manageMappable
method. This call is equivalent to build the mapper with the
default constructor and adding the object.
object - domain object to handle| Method Detail |
public void manageMappable(ArraySliceMappable object)
object - domain object to handlepublic double[] getDataArray()
public void updateObjects()
public void updateObjects(double[] data)
data - flat array holding the data to dispatchpublic void updateArray()
public void updateArray(double[] data)
data - flat array where to put the data
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||