Package org.orekit.propagation.sampling
Class OrekitStepHandlerMultiplexer
- java.lang.Object
-
- org.orekit.propagation.sampling.OrekitStepHandlerMultiplexer
-
- All Implemented Interfaces:
OrekitStepHandler
public class OrekitStepHandlerMultiplexer extends Object implements OrekitStepHandler
This class gathers severalOrekitStepHandler
instances into one.- Author:
- Luc Maisonobe
-
-
Constructor Summary
Constructors Constructor Description OrekitStepHandlerMultiplexer()
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(OrekitStepHandler handler)
Add a step handler.void
handleStep(OrekitStepInterpolator interpolator, boolean isLast)
Handle the current step.void
init(SpacecraftState s0, AbsoluteDate t)
Initialize step handler at the start of a propagation.
-
-
-
Method Detail
-
add
public void add(OrekitStepHandler handler)
Add a step handler.- Parameters:
handler
- step handler to add
-
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, boolean isLast)
Handle the current step.- Specified by:
handleStep
in interfaceOrekitStepHandler
- Parameters:
interpolator
- interpolator set up for the current stepisLast
- if true, this is the last integration step
-
-