org.orekit.propagation.sampling
Class OrekitStepHandlerMultiplexer

java.lang.Object
  extended by org.orekit.propagation.sampling.OrekitStepHandlerMultiplexer
All Implemented Interfaces:
Serializable, OrekitStepHandler

public class OrekitStepHandlerMultiplexer
extends Object
implements OrekitStepHandler

This class gathers several OrekitStepHandler instances into one.

Author:
Luc Maisonobe
See Also:
Serialized Form

Constructor Summary
OrekitStepHandlerMultiplexer()
          Simple constructor.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrekitStepHandlerMultiplexer

public OrekitStepHandlerMultiplexer()
Simple constructor.

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.

Specified by:
init in interface OrekitStepHandler
Parameters:
s0 - initial state
t - target time for the integration

handleStep

public void handleStep(OrekitStepInterpolator interpolator,
                       boolean isLast)
                throws PropagationException
Handle the current step.

Specified by:
handleStep in interface OrekitStepHandler
Parameters:
interpolator - interpolator set up for the current step
isLast - if true, this is the last integration step
Throws:
PropagationException - if step cannot be handled


Copyright © 2016 CNES. All Rights Reserved.