Class AggregateBoundedPropagator
- java.lang.Object
-
- org.orekit.propagation.AbstractPropagator
-
- org.orekit.propagation.analytical.AbstractAnalyticalPropagator
-
- org.orekit.propagation.analytical.AggregateBoundedPropagator
-
- All Implemented Interfaces:
BoundedPropagator,Propagator,PVCoordinatesProvider
public class AggregateBoundedPropagator extends AbstractAnalyticalPropagator implements BoundedPropagator
ABoundedPropagatorthat covers a larger time span from several constituent propagators that cover shorter time spans.- Author:
- Evan Ward
- See Also:
AggregateBoundedPropagator(Collection)
-
-
Field Summary
-
Fields inherited from interface org.orekit.propagation.Propagator
DEFAULT_LAW, DEFAULT_MASS, EPHEMERIS_GENERATION_MODE, MASTER_MODE, SLAVE_MODE
-
-
Constructor Summary
Constructors Constructor Description AggregateBoundedPropagator(Collection<? extends BoundedPropagator> propagators)Create a propagator by concatenating severalBoundedPropagators.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpacecraftStategetInitialState()Get the propagator initial state.protected doublegetMass(AbsoluteDate date)Get the mass.AbsoluteDategetMaxDate()Get the last date of the range.AbsoluteDategetMinDate()Get the first date of the range.TimeStampedPVCoordinatesgetPVCoordinates(AbsoluteDate date, Frame frame)Get thePVCoordinatesof the body in the selected frame.protected OrbitpropagateOrbit(AbsoluteDate date)Extrapolate an orbit up to a specific target date.voidresetInitialState(SpacecraftState state)Reset the propagator initial state.protected voidresetIntermediateState(SpacecraftState state, boolean forward)Reset an intermediate state.-
Methods inherited from class org.orekit.propagation.analytical.AbstractAnalyticalPropagator
acceptStep, addEventDetector, basicPropagate, clearEventsDetectors, getEventsDetectors, getGeneratedEphemeris, getPvProvider, propagate
-
Methods inherited from class org.orekit.propagation.AbstractPropagator
addAdditionalStateProvider, getAdditionalStateProviders, getAttitudeProvider, getFixedStepSize, getFrame, getManagedAdditionalStates, getMode, getStartDate, getStepHandler, isAdditionalStateManaged, propagate, setAttitudeProvider, setEphemerisMode, setEphemerisMode, setMasterMode, setMasterMode, setSlaveMode, setStartDate, updateAdditionalStates
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.orekit.propagation.Propagator
addAdditionalStateProvider, addEventDetector, clearEventsDetectors, getAdditionalStateProviders, getAttitudeProvider, getEventsDetectors, getFrame, getGeneratedEphemeris, getManagedAdditionalStates, getMode, isAdditionalStateManaged, propagate, propagate, setAttitudeProvider, setEphemerisMode, setEphemerisMode, setMasterMode, setMasterMode, setSlaveMode
-
-
-
-
Constructor Detail
-
AggregateBoundedPropagator
public AggregateBoundedPropagator(Collection<? extends BoundedPropagator> propagators)
Create a propagator by concatenating severalBoundedPropagators.- Parameters:
propagators- that provide the backing data for this instance. There must be at least one propagator in the collection. If there are gaps between theBoundedPropagator.getMaxDate()of one propagator and theBoundedPropagator.getMinDate()of the next propagator an exception may be thrown by any method of this class at any time. If there are overlaps between the theBoundedPropagator.getMaxDate()of one propagator and theBoundedPropagator.getMinDate()of the next propagator then the propagator with the latestBoundedPropagator.getMinDate()is used.
-
-
Method Detail
-
getPVCoordinates
public TimeStampedPVCoordinates getPVCoordinates(AbsoluteDate date, Frame frame)
Description copied from class:AbstractPropagatorGet thePVCoordinatesof the body in the selected frame.- Specified by:
getPVCoordinatesin interfacePVCoordinatesProvider- Overrides:
getPVCoordinatesin classAbstractPropagator- Parameters:
date- current dateframe- the frame where to define the position- Returns:
- time-stamped position/velocity of the body (m and m/s)
-
propagateOrbit
protected Orbit propagateOrbit(AbsoluteDate date)
Description copied from class:AbstractAnalyticalPropagatorExtrapolate an orbit up to a specific target date.- Specified by:
propagateOrbitin classAbstractAnalyticalPropagator- Parameters:
date- target date for the orbit- Returns:
- extrapolated parameters
-
getMinDate
public AbsoluteDate getMinDate()
Description copied from interface:BoundedPropagatorGet the first date of the range.- Specified by:
getMinDatein interfaceBoundedPropagator- Returns:
- the first date of the range
-
getMaxDate
public AbsoluteDate getMaxDate()
Description copied from interface:BoundedPropagatorGet the last date of the range.- Specified by:
getMaxDatein interfaceBoundedPropagator- Returns:
- the last date of the range
-
getMass
protected double getMass(AbsoluteDate date)
Description copied from class:AbstractAnalyticalPropagatorGet the mass.- Specified by:
getMassin classAbstractAnalyticalPropagator- Parameters:
date- target date for the orbit- Returns:
- mass mass
-
getInitialState
public SpacecraftState getInitialState()
Description copied from class:AbstractPropagatorGet the propagator initial state.- Specified by:
getInitialStatein interfacePropagator- Overrides:
getInitialStatein classAbstractPropagator- Returns:
- initial state
-
resetIntermediateState
protected void resetIntermediateState(SpacecraftState state, boolean forward)
Description copied from class:AbstractAnalyticalPropagatorReset an intermediate state.- Specified by:
resetIntermediateStatein classAbstractAnalyticalPropagator- Parameters:
state- new intermediate state to considerforward- if true, the intermediate state is valid for propagations after itself
-
resetInitialState
public void resetInitialState(SpacecraftState state)
Description copied from class:AbstractPropagatorReset the propagator initial state.- Specified by:
resetInitialStatein interfacePropagator- Overrides:
resetInitialStatein classAbstractPropagator- Parameters:
state- new initial state to consider
-
-