AdditionalEquations is removed@Deprecated public class AdditionalEquationsAdapter extends Object implements AdditionalDerivativesProvider
AdditionalEquations to AdditionalDerivativesProvider.| Constructor and Description |
|---|
AdditionalEquationsAdapter(AdditionalEquations equations,
Supplier<SpacecraftState> stateSupplier)
Deprecated.
Simple constructor.
|
| Modifier and Type | Method and Description |
|---|---|
CombinedDerivatives |
combinedDerivatives(SpacecraftState state)
Deprecated.
Compute the derivatives related to the additional state (and optionally main state increments).
|
double[] |
derivatives(SpacecraftState state)
Deprecated.
|
int |
getDimension()
Deprecated.
Get the dimension of the generated derivative.
|
String |
getName()
Deprecated.
Get the name of the additional derivatives (which will become state once integrated).
|
void |
init(SpacecraftState initialState,
AbsoluteDate target)
Deprecated.
Initialize the generator at the start of propagation.
|
boolean |
yield(SpacecraftState state)
Deprecated.
Check if this provider should yield so another provider has an opportunity to add missing parts.
|
public AdditionalEquationsAdapter(AdditionalEquations equations, Supplier<SpacecraftState> stateSupplier)
equations - wrapped equationsstateSupplier - supplier for reference statepublic String getName()
getName in interface AdditionalDerivativesProviderpublic int getDimension()
getDimension in interface AdditionalDerivativesProviderpublic boolean yield(SpacecraftState state)
Decision to yield is often based on an additional state being already available in the provided state (but it could theoretically also depend on
an additional state derivative being already available, or any other criterion). If for example a provider needs the state transition
matrix, it could implement this method as:
public boolean yield(final SpacecraftState state) {
return !state.getAdditionalStates().containsKey("STM");
}
The default implementation returns false, meaning that derivative data can be
computed immediately.
yield in interface AdditionalDerivativesProviderstate - state to handlepublic void init(SpacecraftState initialState, AbsoluteDate target)
init in interface AdditionalDerivativesProviderinitialState - initial state information at the start of propagationtarget - date of propagation@Deprecated public double[] derivatives(SpacecraftState state)
derivatives in interface AdditionalDerivativesProviderstate - current state information: date, kinematics, attitude, and
additional states this equations depend on (according to the
yield method)public CombinedDerivatives combinedDerivatives(SpacecraftState state)
As of 11.2, there is a default implementation that calls the deprecated
AdditionalDerivativesProvider.derivatives(SpacecraftState) method. This has been done for
backward compatibility only and will be removed in 12.0.
combinedDerivatives in interface AdditionalDerivativesProviderstate - current state information: date, kinematics, attitude, and
additional states this equations depend on (according to the
yield method)Copyright © 2002-2022 CS GROUP. All rights reserved.