public class Ephemeris extends AbstractPropagator implements BoundedPropagator
MASS
EPHEMERIS_GENERATION_MODE, MASTER_MODE, SLAVE_MODE
Constructor and Description |
---|
Ephemeris(List<SpacecraftState> states,
int interpolationPoints)
Constructor with tabulated states.
|
Modifier and Type | Method and Description |
---|---|
SpacecraftState |
basicPropagate(AbsoluteDate date)
Propagate an orbit without any fancy features.
|
Orbit |
basicPropagateOrbit(AbsoluteDate date)
Propagate an orbit without any fancy features.
|
SpacecraftState |
getInitialState()
Get the propagator initial state.
|
AbsoluteDate |
getMaxDate()
Get the last date of the range.
|
AbsoluteDate |
getMinDate()
Get the first date of the range.
|
PVCoordinates |
getPVCoordinates(AbsoluteDate date,
Frame frame)
Get the
PVCoordinates of the body in the selected frame. |
SpacecraftState |
getSpacecraftState(AbsoluteDate date)
Get the
SpacecraftState at provided dat. |
protected Orbit |
propagateOrbit(AbsoluteDate date)
Extrapolate an orbit up to a specific target date.
|
void |
resetInitialState(SpacecraftState state)
Try (and fail) to reset the initial state.
|
acceptStep, addAdditionalStateProvider, addAdditionalStateProvider, addEventDetector, clearEventsDetectors, getAttitudeProvider, getAttitudeProviderEvents, getAttitudeProviderForces, getEventsDetectors, getFrame, getGeneratedEphemeris, getMode, getPvProvider, manageStateFrame, propagate, propagate, setAttitudeProvider, setAttitudeProviderEvents, setAttitudeProviderForces, setEphemerisMode, setMasterMode, setMasterMode, setOrbitFrame, setSlaveMode, setStartDate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addEventDetector, clearEventsDetectors, getAttitudeProvider, getAttitudeProviderEvents, getAttitudeProviderForces, getEventsDetectors, getFrame, getGeneratedEphemeris, getMode, propagate, propagate, setAttitudeProvider, setAttitudeProviderEvents, setAttitudeProviderForces, setEphemerisMode, setMasterMode, setMasterMode, setOrbitFrame, setSlaveMode
public Ephemeris(List<SpacecraftState> states, int interpolationPoints)
states
- tabulates statesinterpolationPoints
- number of points to use in interpolationMathIllegalArgumentException
- if the number of states is smaller than
the number of points to use in interpolationpublic AbsoluteDate getMinDate()
getMinDate
in interface BoundedPropagator
public AbsoluteDate getMaxDate()
getMaxDate
in interface BoundedPropagator
public SpacecraftState basicPropagate(AbsoluteDate date) throws PropagationException
AbstractPropagator
This method is similar in spirit to the AbstractPropagator.propagate(fr.cnes.sirius.patrius.time.AbsoluteDate)
method, except that it does not call
any handler during propagation, nor any discrete events. It always stop exactly at the specified date.
basicPropagate
in class AbstractPropagator
date
- target date for propagationPropagationException
- if propagation cannot reach specified datepublic Orbit basicPropagateOrbit(AbsoluteDate date) throws PropagationException
This method is similar in spirit to the AbstractPropagator.propagate(fr.cnes.sirius.patrius.time.AbsoluteDate)
method, except that it does not call
any handler during propagation, nor any discrete events. It always stop exactly at the specified date.
date
- target date for propagationPropagationException
- if entries are not chronologically sorted or if new data cannot be generated
if the sample points are inconsistentprotected Orbit propagateOrbit(AbsoluteDate date) throws PropagationException
propagateOrbit
in class AbstractPropagator
date
- target date for the orbitPropagationException
- if some parameters are out of boundspublic PVCoordinates getPVCoordinates(AbsoluteDate date, Frame frame) throws PatriusException
PVCoordinates
of the body in the selected frame.getPVCoordinates
in interface PVCoordinatesProvider
getPVCoordinates
in class AbstractPropagator
date
- current dateframe
- the frame where to define the positionPatriusException
- if position cannot be computed in given framepublic SpacecraftState getSpacecraftState(AbsoluteDate date) throws PropagationException
SpacecraftState
at provided dat.getSpacecraftState
in interface SpacecraftStateProvider
getSpacecraftState
in class AbstractPropagator
date
- target datePropagationException
- if state cannot be computedpublic void resetInitialState(SpacecraftState state) throws PropagationException
This method always throws an exception, as ephemerides cannot be reset.
resetInitialState
in interface Propagator
resetInitialState
in class AbstractPropagator
state
- new initial state to considerPropagationException
- always thrown as ephemerides cannot be resetpublic SpacecraftState getInitialState() throws PropagationException
getInitialState
in interface Propagator
getInitialState
in class AbstractPropagator
PropagationException
Copyright © 2021 CNES. All rights reserved.