org.orekit.propagation.analytical
Class AnalyticalEphemerisModeHandler

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

public class AnalyticalEphemerisModeHandler
extends Object
implements OrekitStepHandler

This class stores sequentially generated orbital parameters for later retrieval.

Instances of this class are built and then must be fed with the results provided by Propagator objects configured in ephemeris generation mode. Once propagation is over, a BoundedPropagator can be built from the stored steps.

Author:
Luc Maisonobe
See Also:
NumericalPropagator, Serialized Form

Constructor Summary
AnalyticalEphemerisModeHandler(AbstractPropagator propagator, AttitudeProvider attForcesProvider, AttitudeProvider attEventsProvider)
          Constructor.
 
Method Summary
 BoundedPropagator getEphemeris()
          Get the generated ephemeris.
 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.
 void setAttitudeProviderEvents(AttitudeProvider attProvEvents)
          Set attitude provider for events computation.
 void setAttitudeProviderForces(AttitudeProvider attProvForces)
          Set attitude provider for forces computation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnalyticalEphemerisModeHandler

public AnalyticalEphemerisModeHandler(AbstractPropagator propagator,
                                      AttitudeProvider attForcesProvider,
                                      AttitudeProvider attEventsProvider)
Constructor.

Parameters:
propagator - propagator
attForcesProvider - attitude provider for force computation
attEventsProvider - attitude provider for events computation
Method Detail

getEphemeris

public BoundedPropagator getEphemeris()
Get the generated ephemeris.

Returns:
a new instance of the generated ephemeris

setAttitudeProviderForces

public void setAttitudeProviderForces(AttitudeProvider attProvForces)
Set attitude provider for forces computation.

Parameters:
attProvForces - the attitude provider

setAttitudeProviderEvents

public void setAttitudeProviderEvents(AttitudeProvider attProvEvents)
Set attitude provider for events computation.

Parameters:
attProvEvents - the attitude provider

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

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


Copyright © 2016 CNES. All Rights Reserved.