public class SecondOrderMapper extends Object implements SecondOrderStateMapper
Constructor and Description |
---|
SecondOrderMapper()
Empty constructor used for
Externalizable implementation. |
SecondOrderMapper(List<AdditionalEquationsAndTolerances> addEquationsAndTolerances)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double[] |
buildFullState(double[] y,
double[] yDot)
Build full first order state from second order y and yDot.
|
double[] |
extractY(double[] fullState)
Retrieve second order state y from full first order state.
|
double[] |
extractYDot(double[] fullState)
Retrieve second order state derivative yDot from full first order state.
|
void |
readExternal(ObjectInput oi) |
void |
writeExternal(ObjectOutput oo) |
public SecondOrderMapper()
Externalizable
implementation.public SecondOrderMapper(List<AdditionalEquationsAndTolerances> addEquationsAndTolerances)
addEquationsAndTolerances
- additional equations and tolerancespublic double[] buildFullState(double[] y, double[] yDot)
buildFullState
in interface SecondOrderStateMapper
y
- second order state yyDot
- second order state derivative yDotpublic double[] extractY(double[] fullState)
extractY
in interface SecondOrderStateMapper
fullState
- full first order statepublic double[] extractYDot(double[] fullState)
extractYDot
in interface SecondOrderStateMapper
fullState
- full first order statepublic void writeExternal(ObjectOutput oo) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput oi) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Copyright © 2021 CNES. All rights reserved.