Package org.orekit.propagation.sampling
Class PropagationStepRecorder
- java.lang.Object
-
- org.orekit.propagation.sampling.PropagationStepRecorder
-
- All Implemented Interfaces:
OrekitStepHandler
public class PropagationStepRecorder extends Object implements OrekitStepHandler
Step handler recording states. Automatically clears them at start of propagation.- Since:
- 13.0
- Author:
- Romain Serra
-
-
Constructor Summary
Constructors Constructor Description PropagationStepRecorder()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SpacecraftState>
copyStates()
Copy the current saved steps.void
handleStep(OrekitStepInterpolator interpolator)
Handle the current step.void
init(SpacecraftState s0, AbsoluteDate t)
Initialize step handler at the start of a propagation.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.orekit.propagation.sampling.OrekitStepHandler
finish
-
-
-
-
Method Detail
-
copyStates
public List<SpacecraftState> copyStates()
Copy the current saved steps.- Returns:
- copy of steps
-
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:
init
in interfaceOrekitStepHandler
- Parameters:
s0
- initial statet
- target time for the integration
-
handleStep
public void handleStep(OrekitStepInterpolator interpolator)
Handle the current step.- Specified by:
handleStep
in interfaceOrekitStepHandler
- Parameters:
interpolator
- interpolator set up for the current step
-
-