public class MultisatStepNormalizer extends Object implements MultiSatStepHandler
MultiSatFixedStepHandler
into a MultiSatStepHandler
.
It mirrors the StepNormalizer
interface from Hipparchus but
provides a space-dynamics interface to the methods.
Constructor and Description |
---|
MultisatStepNormalizer(double h,
MultiSatFixedStepHandler handler)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
finish(List<SpacecraftState> finalStates)
Finalize propagation.
|
MultiSatFixedStepHandler |
getFixedStepHandler()
Get the underlying fixed step handler.
|
double |
getFixedTimeStep()
Get the fixed time step.
|
void |
handleStep(List<OrekitStepInterpolator> interpolators)
Handle the current step.
|
void |
init(List<SpacecraftState> s0,
AbsoluteDate t)
Initialize step handler at the start of a propagation.
|
public MultisatStepNormalizer(double h, MultiSatFixedStepHandler handler)
h
- fixed time step (sign is not used)handler
- fixed time step handler to wrappublic double getFixedTimeStep()
public MultiSatFixedStepHandler getFixedStepHandler()
public void init(List<SpacecraftState> s0, AbsoluteDate t)
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.
The default method does nothing
init
in interface MultiSatStepHandler
s0
- initial states, one for each satellite in the same order
used to build
the multi-sat propagator
.t
- target time for the integrationpublic void handleStep(List<OrekitStepInterpolator> interpolators)
When called by PropagatorsParallelizer
,
all interpolators have the same time range.
handleStep
in interface MultiSatStepHandler
interpolators
- interpolators set up for the current step in the same order
used to build
the multi-sat propagator
public void finish(List<SpacecraftState> finalStates)
finish
in interface MultiSatStepHandler
finalStates
- states at propagation endCopyright © 2002-2023 CS GROUP. All rights reserved.