public class FieldOrekitFixedStepHandlerMultiplexer<T extends RealFieldElement<T>> extends Object implements FieldOrekitFixedStepHandler<T>
FieldOrekitFixedStepHandler
instances into one.Constructor and Description |
---|
FieldOrekitFixedStepHandlerMultiplexer()
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(FieldOrekitFixedStepHandler<T> handler)
Add a step handler.
|
void |
handleStep(FieldSpacecraftState<T> currentState,
boolean isLast)
Handle the current step.
|
void |
init(FieldSpacecraftState<T> s0,
FieldAbsoluteDate<T> t,
T step)
Initialize step handler at the start of a propagation.
|
public FieldOrekitFixedStepHandlerMultiplexer()
public void add(FieldOrekitFixedStepHandler<T> handler)
handler
- step handler to addpublic void init(FieldSpacecraftState<T> s0, FieldAbsoluteDate<T> t, T step)
This method is called once at the start of the propagation. It may be used by the step handler to initialize some internal data if needed.
init
in interface FieldOrekitFixedStepHandler<T extends RealFieldElement<T>>
s0
- initial statet
- target time for the integrationstep
- the duration in seconds of the fixed step. This value is
positive even if propagation is backwards.public void handleStep(FieldSpacecraftState<T> currentState, boolean isLast)
handleStep
in interface FieldOrekitFixedStepHandler<T extends RealFieldElement<T>>
currentState
- current state at step timeisLast
- if true, this is the last integration stepCopyright © 2002-2020 CS GROUP. All rights reserved.