fr.cnes.sirius.patrius.stela.propagation
Class ForcesStepHandler

java.lang.Object
  extended by fr.cnes.sirius.patrius.stela.propagation.ForcesStepHandler
All Implemented Interfaces:
Serializable, OrekitStepHandler

public class ForcesStepHandler
extends Object
implements OrekitStepHandler

Step handler handling forces requiring to be updated every step and not every substep.

Since:
3.0
Version:
$Id: ForcesStepHandler.java 17584 2017-05-10 13:26:39Z bignon $
Author:
Emmanuel Bignon
See Also:
Serialized Form
Concurrency :
not thread-safe

Constructor Summary
ForcesStepHandler(OrbitNatureConverter converterIn, NonInertialContribution nonInertialContributionIn)
          Constructor.
 
Method Summary
 double[] getDnonInertial()
          Getter for non-inertial contribution.
 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

ForcesStepHandler

public ForcesStepHandler(OrbitNatureConverter converterIn,
                         NonInertialContribution nonInertialContributionIn)
Constructor.

Parameters:
converterIn - orbit nature converter
nonInertialContributionIn - nonInertialContribution force (null if not used)
Method Detail

init

public void init(SpacecraftState s0,
                 AbsoluteDate t)
Description copied from interface: OrekitStepHandler
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
Description copied from interface: OrekitStepHandler
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

getDnonInertial

public double[] getDnonInertial()
Getter for non-inertial contribution.

Returns:
non-inertial contribution


Copyright © 2017 CNES. All Rights Reserved.