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 implementingMultiSatFixedStepHandlerinto aMultiSatStepHandler.It mirrors the
StepNormalizerinterface 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 voidfinish(List<SpacecraftState> finalStates)Finalize propagation.MultiSatFixedStepHandlergetFixedStepHandler()Get the underlying fixed step handler.doublegetFixedTimeStep()Get the fixed time step.voidhandleStep(List<OrekitStepInterpolator> interpolators)Handle the current step.voidinit(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:
initin interfaceMultiSatStepHandler- Parameters:
s0- initial states, one for each satellite in the same order used tobuildthemulti-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:
handleStepin interfaceMultiSatStepHandler- Parameters:
interpolators- interpolators set up for the current step in the same order used tobuildthemulti-sat propagator
-
finish
public void finish(List<SpacecraftState> finalStates)
Finalize propagation.- Specified by:
finishin interfaceMultiSatStepHandler- Parameters:
finalStates- states at propagation end
-
-