Package org.orekit.propagation.sampling
Class OrekitStepNormalizer
- java.lang.Object
-
- org.orekit.propagation.sampling.OrekitStepNormalizer
-
- All Implemented Interfaces:
OrekitStepHandler
public class OrekitStepNormalizer extends Object implements OrekitStepHandler
This class wraps an object implementingOrekitFixedStepHandlerinto aOrekitStepHandler.It mirrors the
StepNormalizerinterface from Hipparchus but provides a space-dynamics interface to the methods.- Author:
- Luc Maisonobe
-
-
Constructor Summary
Constructors Constructor Description OrekitStepNormalizer(double h, OrekitFixedStepHandler handler)Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinish(SpacecraftState finalState)Finalize propagation.OrekitFixedStepHandlergetFixedStepHandler()Get the underlying fixed step handler.doublegetFixedTimeStep()Get the fixed time step.voidhandleStep(OrekitStepInterpolator interpolator)Handle the last accepted step.voidinit(SpacecraftState s0, AbsoluteDate t)Initialize step handler at the start of a propagation.
-
-
-
Constructor Detail
-
OrekitStepNormalizer
public OrekitStepNormalizer(double h, OrekitFixedStepHandler 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
- Since:
- 11.0
-
getFixedStepHandler
public OrekitFixedStepHandler getFixedStepHandler()
Get the underlying fixed step handler.- Returns:
- underlying fixed step handler
- Since:
- 11.0
-
init
public void init(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 interfaceOrekitStepHandler- Parameters:
s0- initial statet- target time for the integration
-
handleStep
public void handleStep(OrekitStepInterpolator interpolator)
Handle the last accepted step.- Specified by:
handleStepin interfaceOrekitStepHandler- Parameters:
interpolator- interpolator for the last accepted step. For efficiency purposes, the various propagators reuse the same object on each call, so if the instance wants to keep it across all calls (for example to provide at the end of the propagation a continuous model valid throughout the propagation range), it should build a local copy using the clone method and store this copy.
-
finish
public void finish(SpacecraftState finalState)
Finalize propagation.- Specified by:
finishin interfaceOrekitStepHandler- Parameters:
finalState- state at propagation end
-
-