public abstract class FieldAbstractAnalyticalPropagator<T extends RealFieldElement<T>> extends FieldAbstractPropagator<T>
FieldPropagator
methods for analytical propagators.
This abstract class allows to provide easily the full set of FieldPropagator
methods, including all propagation
modes support and discrete events support for any simple propagation method. Only
two methods must be implemented by derived classes: propagateOrbit(FieldAbsoluteDate)
and getMass(FieldAbsoluteDate)
. The first method should perform straightforward
propagation starting from some internally stored initial state up to the specified target date.
DEFAULT_LAW, DEFAULT_MASS, EPHEMERIS_GENERATION_MODE, MASTER_MODE, SLAVE_MODE
Modifier | Constructor and Description |
---|---|
protected |
FieldAbstractAnalyticalPropagator(Field<T> field,
AttitudeProvider attitudeProvider)
Build a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected FieldSpacecraftState<T> |
acceptStep(org.orekit.propagation.analytical.FieldAbstractAnalyticalPropagator.FieldBasicStepInterpolator interpolator,
FieldAbsoluteDate<T> target,
double epsilon)
Accept a step, triggering events and step handlers.
|
<D extends FieldEventDetector<T>> |
addEventDetector(D detector)
Add an event detector.
|
protected FieldSpacecraftState<T> |
basicPropagate(FieldAbsoluteDate<T> date)
Propagate an orbit without any fancy features.
|
void |
clearEventsDetectors()
Remove all events detectors.
|
Collection<FieldEventDetector<T>> |
getEventsDetectors()
Get all the events detectors that have been added.
|
FieldBoundedPropagator<T> |
getGeneratedEphemeris()
Get the ephemeris generated during propagation.
|
protected abstract T |
getMass(FieldAbsoluteDate<T> date)
Get the mass.
|
FieldPVCoordinatesProvider<T> |
getPvProvider()
Get PV coordinates provider.
|
FieldSpacecraftState<T> |
propagate(FieldAbsoluteDate<T> start,
FieldAbsoluteDate<T> target)
Propagate from a start date towards a target date.
|
protected abstract FieldOrbit<T> |
propagateOrbit(FieldAbsoluteDate<T> date)
Extrapolate an orbit up to a specific target date.
|
protected abstract void |
resetIntermediateState(FieldSpacecraftState<T> state,
boolean forward)
Reset an intermediate state.
|
addAdditionalStateProvider, getAdditionalStateProviders, getAttitudeProvider, getField, getFixedStepSize, getFrame, getInitialState, getManagedAdditionalStates, getMode, getPVCoordinates, getStartDate, getStepHandler, initializePropagation, isAdditionalStateManaged, propagate, resetInitialState, setAttitudeProvider, setEphemerisMode, setMasterMode, setMasterMode, setSlaveMode, setStartDate, stateChanged, updateAdditionalStates
protected FieldAbstractAnalyticalPropagator(Field<T> field, AttitudeProvider attitudeProvider)
attitudeProvider
- provider for attitude computationfield
- field used as defaultpublic FieldBoundedPropagator<T> getGeneratedEphemeris()
getGeneratedEphemeris
in interface FieldPropagator<T extends RealFieldElement<T>>
getGeneratedEphemeris
in class FieldAbstractPropagator<T extends RealFieldElement<T>>
FieldPropagator.setEphemerisMode()
public Collection<FieldEventDetector<T>> getEventsDetectors()
getEventsDetectors
in interface FieldPropagator<T extends RealFieldElement<T>>
getEventsDetectors
in class FieldAbstractPropagator<T extends RealFieldElement<T>>
FieldPropagator.addEventDetector(FieldEventDetector)
,
FieldPropagator.clearEventsDetectors()
public void clearEventsDetectors()
clearEventsDetectors
in interface FieldPropagator<T extends RealFieldElement<T>>
clearEventsDetectors
in class FieldAbstractPropagator<T extends RealFieldElement<T>>
FieldPropagator.addEventDetector(FieldEventDetector)
,
FieldPropagator.getEventsDetectors()
public FieldSpacecraftState<T> propagate(FieldAbsoluteDate<T> start, FieldAbsoluteDate<T> target)
Those propagators use a start date and a target date to compute the propagated state. For propagators using event detection mechanism, if the provided start date is different from the initial state date, a first, simple propagation is performed, without processing any event computation. Then complete propagation is performed from start date to target date.
start
- start date from which orbit state should be propagatedtarget
- target date to which orbit state should be propagatedprotected FieldSpacecraftState<T> acceptStep(org.orekit.propagation.analytical.FieldAbstractAnalyticalPropagator.FieldBasicStepInterpolator interpolator, FieldAbsoluteDate<T> target, double epsilon) throws MathRuntimeException
interpolator
- interpolator for the current steptarget
- final propagation timeepsilon
- threshold for end date detectionMathRuntimeException
- if an event cannot be locatedprotected abstract T getMass(FieldAbsoluteDate<T> date)
date
- target date for the orbitpublic FieldPVCoordinatesProvider<T> getPvProvider()
public <D extends FieldEventDetector<T>> void addEventDetector(D detector)
addEventDetector
in interface FieldPropagator<T extends RealFieldElement<T>>
addEventDetector
in class FieldAbstractPropagator<T extends RealFieldElement<T>>
D
- class type for the generic versiondetector
- event detector to addFieldPropagator.clearEventsDetectors()
,
FieldPropagator.getEventsDetectors()
protected abstract void resetIntermediateState(FieldSpacecraftState<T> state, boolean forward)
state
- new intermediate state to considerforward
- if true, the intermediate state is valid for
propagations after itselfprotected abstract FieldOrbit<T> propagateOrbit(FieldAbsoluteDate<T> date)
date
- target date for the orbitprotected FieldSpacecraftState<T> basicPropagate(FieldAbsoluteDate<T> date)
This method is similar in spirit to the propagate(org.orekit.time.FieldAbsoluteDate<T>, org.orekit.time.FieldAbsoluteDate<T>)
method,
except that it does not call any handler during
propagation, nor any discrete events, not additional states. It always
stop exactly at the specified date.
date
- target date for propagationCopyright © 2002-2020 CS GROUP. All rights reserved.