public class MultiEphemerisModeHandler extends Object implements MultiModeHandler, StepHandler
This interface is copied from EphemerisModeHandler
and adapted
to multi propagation.
This class stores sequentially generated orbital parameters of each states for later retrieval.
Instances of this class are built and then must be fed with the results provided by
MultiPropagator
objects configured in
ephemeris generation mode
. Once propagation is over, a BoundedPropagator
can be built for each spacecraft
from the stored steps.
Constructor and Description |
---|
MultiEphemerisModeHandler() |
Modifier and Type | Method and Description |
---|---|
BoundedPropagator |
getEphemeris(String satId)
Get the generated ephemeris of the given spacecraft Id.
|
void |
handleStep(StepInterpolator interpolator,
boolean isLast)
Handle the last accepted step
|
void |
init(double t0,
double[] y0,
double t)
Initialize step handler at the start of an ODE integration.
|
void |
initialize(OrbitType orbit,
PositionAngle angle,
Map<String,MultiAttitudeProvider> attitudeProvidersForces,
Map<String,MultiAttitudeProvider> attitudeProvidersEvents,
MultiStateVectorInfo stateVectorInfo,
boolean activateHandlers,
AbsoluteDate reference,
Map<String,Frame> frame,
Map<String,Double> mu)
Initialize the mode handler.
|
void |
setForward(boolean isForward)
Set forward propagation flag.
|
void |
setReference(AbsoluteDate newReference)
Define new reference date.
|
public void initialize(OrbitType orbit, PositionAngle angle, Map<String,MultiAttitudeProvider> attitudeProvidersForces, Map<String,MultiAttitudeProvider> attitudeProvidersEvents, MultiStateVectorInfo stateVectorInfo, boolean activateHandlers, AbsoluteDate reference, Map<String,Frame> frame, Map<String,Double> mu)
initialize
in interface MultiModeHandler
orbit
- orbit typeangle
- position angle typeattitudeProvidersForces
- attitude providers for forces computation for each stateattitudeProvidersEvents
- attitude providers for events computation for each statestateVectorInfo
- the state vector informationsactivateHandlers
- if handlers shall be activereference
- reference dateframe
- the map of reference frame for each statemu
- the map of central body attraction coefficient for each statepublic void setReference(AbsoluteDate newReference)
To be called by NumericalPropagator
only.
setReference
in interface MultiModeHandler
newReference
- new reference datepublic void setForward(boolean isForward)
isForward
- true if propagation is forwardpublic BoundedPropagator getEphemeris(String satId)
satId
- the spacecraft Idpublic void init(double t0, double[] y0, double t)
This method is called once at the start of the integration. It may be used by the step handler to initialize some internal data if needed.
init
in interface StepHandler
t0
- start value of the independent time variabley0
- array containing the start value of the state vectort
- target time for the integrationpublic void handleStep(StepInterpolator interpolator, boolean isLast)
handleStep
in interface StepHandler
interpolator
- interpolator for the last accepted step. For
efficiency purposes, the various integrators 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 integration a
continuous model valid throughout the integration range, as the
ContinuousOutputModel
class does), it should build a local copy
using the clone method of the interpolator and store this copy.
Keeping only a reference to the interpolator and reusing it will
result in unpredictable behavior (potentially crashing the application).isLast
- true if the step is the last oneCopyright © 2019 CNES. All rights reserved.