public class EquationsMapper extends Object implements Serializable
Instances of this class are guaranteed to be immutable.
SecondaryEquations
,
Serialized FormConstructor and Description |
---|
EquationsMapper(int firstIndexIn,
int dimensionIn)
simple constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
extractEquationData(double[] complete,
double[] equationData)
Extract equation data from a complete state or derivative array.
|
int |
getDimension()
Get the dimension of the secondary state parameters.
|
int |
getFirstIndex()
Get the index of the first equation element in complete state arrays.
|
void |
insertEquationData(double[] equationData,
double[] complete)
Insert equation data into a complete state or derivative array.
|
public EquationsMapper(int firstIndexIn, int dimensionIn)
firstIndexIn
- index of the first equation element in complete state arraysdimensionIn
- dimension of the secondary state parameterspublic int getFirstIndex()
public int getDimension()
public void extractEquationData(double[] complete, double[] equationData)
complete
- complete state or derivative array from which
equation data should be retrievedequationData
- placeholder where to put equation dataDimensionMismatchException
- if the dimension of the equation data does not
match the mapper dimensionpublic void insertEquationData(double[] equationData, double[] complete)
equationData
- equation data to be inserted into the complete arraycomplete
- placeholder where to put equation data (only the
part corresponding to the equation will be overwritten)DimensionMismatchException
- if the dimension of the equation data does not
match the mapper dimensionCopyright © 2021 CNES. All rights reserved.