fr.cnes.sirius.patrius.propagation.sampling.multi
Class MultiOrekitStepNormalizer

java.lang.Object
  extended by fr.cnes.sirius.patrius.propagation.sampling.multi.MultiOrekitStepNormalizer
All Implemented Interfaces:
MultiOrekitStepHandler

public class MultiOrekitStepNormalizer
extends Object
implements MultiOrekitStepHandler

This class is copied from OrekitStepNormalizer and adapted to multi propagation.

This class wraps an object implementing MultiOrekitFixedStepHandler into a MultiOrekitStepHandler.

It mirrors the StepNormalizer interface from commons-math but provides a space-dynamics interface to the methods.

Modified to take into account propagation direction (in time). Lines 111 to 115 Cf A-1031.

Since:
3.0
Version:
$Id: MultiOrekitStepNormalizer.java 13047 2015-04-27 15:41:59Z maggiorani $
Author:
maggioranic
Concurrency :
not thread-safe

Constructor Summary
MultiOrekitStepNormalizer(double hIn, MultiOrekitFixedStepHandler handlerIn)
          Simple constructor.
 
Method Summary
 void handleStep(MultiOrekitStepInterpolator interpolator, boolean isLast)
          Handle the last accepted step.
 void init(Map<String,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

MultiOrekitStepNormalizer

public MultiOrekitStepNormalizer(double hIn,
                                 MultiOrekitFixedStepHandler handlerIn)
Simple constructor.

Parameters:
hIn - fixed time step (sign is not used)
handlerIn - fixed time step handler to wrap
Method Detail

init

public void init(Map<String,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 MultiOrekitStepHandler
Parameters:
s0 - map of initial states
t - target time for the integration

handleStep

public void handleStep(MultiOrekitStepInterpolator interpolator,
                       boolean isLast)
                throws PropagationException
Handle the last accepted step.

Specified by:
handleStep in interface MultiOrekitStepHandler
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.
isLast - true if the step is the last one
Throws:
PropagationException - this exception is propagated to the caller if the underlying user function triggers one


Copyright © 2016 CNES. All Rights Reserved.