Package org.orekit.propagation.sampling
Class MultisatStepNormalizer
- java.lang.Object
-
- org.orekit.propagation.sampling.MultisatStepNormalizer
-
- All Implemented Interfaces:
MultiSatStepHandler
public class MultisatStepNormalizer extends Object implements MultiSatStepHandler
This class wraps an object implementingMultiSatFixedStepHandler
into aMultiSatStepHandler
.It mirrors the
StepNormalizer
interface from Hipparchus but provides a space-dynamics interface to the methods.- Since:
- 12.0
- Author:
- Luc Maisonobe
-
-
Constructor Summary
Constructors Constructor Description MultisatStepNormalizer(double h, MultiSatFixedStepHandler handler)
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
MultisatStepNormalizer
public MultisatStepNormalizer(double h, MultiSatFixedStepHandler handler)
Simple constructor.- Parameters:
h
- fixed time step (sign is not used)handler
- fixed time step handler to wrap
-
-
Method Detail
-
getFixedTimeStep
public double getFixedTimeStep()
Get the fixed time step.- Returns:
- fixed time step
-
getFixedStepHandler
public MultiSatFixedStepHandler getFixedStepHandler()
Get the underlying fixed step handler.- Returns:
- underlying fixed step handler
-
init
public void init(List<SpacecraftState> s0, AbsoluteDate t)
Initialize step handler at the start of a propagation.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
- Specified by:
init
in interfaceMultiSatStepHandler
- Parameters:
s0
- initial states, one for each satellite in the same order used tobuild
themulti-sat propagator
.t
- target time for the integration
-
handleStep
public void handleStep(List<OrekitStepInterpolator> interpolators)
Handle the current step.When called by
PropagatorsParallelizer
, all interpolators have the same time range.- Specified by:
handleStep
in interfaceMultiSatStepHandler
- Parameters:
interpolators
- interpolators set up for the current step in the same order used tobuild
themulti-sat propagator
-
finish
public void finish(List<SpacecraftState> finalStates)
Finalize propagation.- Specified by:
finish
in interfaceMultiSatStepHandler
- Parameters:
finalStates
- states at propagation end
-
-