|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Propagator
This interface provides a way to propagate an orbit at any time.
This interface is the top-level abstraction for orbit propagation. It only allows propagation to a predefined date. It is implemented by analytical models which have no time limit, by orbit readers based on external data files, by numerical integrators using rich force models and by continuous models built after numerical integration has been completed and dense output data as been gathered.
Field Summary | |
---|---|
static int |
EPHEMERIS_GENERATION_MODE
Indicator for ephemeris generation mode. |
static int |
MASTER_MODE
Indicator for master mode. |
static int |
SLAVE_MODE
Indicator for slave mode. |
Method Summary | |
---|---|
void |
addEventDetector(EventDetector detector)
Add an event detector. |
void |
clearEventsDetectors()
Remove all events detectors. |
AttitudeProvider |
getAttitudeProvider()
Get attitude provider. |
AttitudeProvider |
getAttitudeProviderEvents()
Get attitude provider for events computation. |
AttitudeProvider |
getAttitudeProviderForces()
Get attitude provider for forces computation. |
Collection<EventDetector> |
getEventsDetectors()
Get all the events detectors that have been added. |
Frame |
getFrame()
Get the frame in which the orbit is propagated. |
BoundedPropagator |
getGeneratedEphemeris()
Get the ephemeris generated during propagation. |
SpacecraftState |
getInitialState()
Get the propagator initial state. |
int |
getMode()
Get the current operating mode of the propagator. |
SpacecraftState |
propagate(AbsoluteDate target)
Propagate towards a target date. |
SpacecraftState |
propagate(AbsoluteDate start,
AbsoluteDate target)
Propagate from a start date towards a target date. |
void |
resetInitialState(SpacecraftState state)
Reset the propagator initial state. |
void |
setAttitudeProvider(AttitudeProvider attitudeProvider)
Set attitude provider for forces and events computation. |
void |
setAttitudeProviderEvents(AttitudeProvider attitudeProviderEvents)
Set attitude provider for events computation. |
void |
setAttitudeProviderForces(AttitudeProvider attitudeProviderForces)
Set attitude provider for forces computation. |
void |
setEphemerisMode()
Set the propagator to ephemeris generation mode. |
void |
setMasterMode(double h,
OrekitFixedStepHandler handler)
Set the propagator to master mode with fixed steps. |
void |
setMasterMode(OrekitStepHandler handler)
Set the propagator to master mode with variable steps. |
void |
setOrbitFrame(Frame frame)
Set propagation frame. |
void |
setSlaveMode()
Set the propagator to slave mode. |
Methods inherited from interface org.orekit.utils.PVCoordinatesProvider |
---|
getPVCoordinates |
Field Detail |
---|
static final int SLAVE_MODE
static final int MASTER_MODE
static final int EPHEMERIS_GENERATION_MODE
Method Detail |
---|
int getMode()
SLAVE_MODE
, MASTER_MODE
,
EPHEMERIS_GENERATION_MODE
setSlaveMode()
,
setMasterMode(double, OrekitFixedStepHandler)
,
setMasterMode(OrekitStepHandler)
,
setEphemerisMode()
void setSlaveMode()
This mode is used when the user needs only the final orbit at the target time. The (slave) propagator computes this result and return it to the calling (master) application, without any intermediate feedback.
This is the default mode.
setMasterMode(double, OrekitFixedStepHandler)
,
setMasterMode(OrekitStepHandler)
,
setEphemerisMode()
,
getMode()
,
SLAVE_MODE
void setMasterMode(double h, OrekitFixedStepHandler handler)
This mode is used when the user needs to have some custom function called at the end of each finalized step during integration. The (master) propagator integration loop calls the (slave) application callback methods at each finalized step.
h
- fixed stepsize (s)handler
- handler called at the end of each finalized stepsetSlaveMode()
,
setMasterMode(OrekitStepHandler)
,
setEphemerisMode()
,
getMode()
,
MASTER_MODE
void setMasterMode(OrekitStepHandler handler)
This mode is used when the user needs to have some custom function called at the end of each finalized step during integration. The (master) propagator integration loop calls the (slave) application callback methods at each finalized step.
handler
- handler called at the end of each finalized stepsetSlaveMode()
,
setMasterMode(double, OrekitFixedStepHandler)
,
setEphemerisMode()
,
getMode()
,
MASTER_MODE
void setEphemerisMode()
This mode is used when the user needs random access to the orbit state at any time between the initial and target times, and in no sequential order. A typical example is the implementation of search and iterative algorithms that may navigate forward and backward inside the propagation range before finding their result.
Beware that since this mode stores all intermediate results, it may be memory intensive for long integration ranges and high precision/short time steps.
getGeneratedEphemeris()
,
setSlaveMode()
,
setMasterMode(double, OrekitFixedStepHandler)
,
setMasterMode(OrekitStepHandler)
,
getMode()
,
EPHEMERIS_GENERATION_MODE
void setOrbitFrame(Frame frame) throws OrekitException
frame
- the frame to use.
This frame must be inertial or pseudo-inertial, otherwise an exception is raised.
OrekitException
- if frame is not inertial or pseudo-inertialBoundedPropagator getGeneratedEphemeris() throws IllegalStateException
IllegalStateException
- if the propagator was not set in ephemeris
generation mode before propagationsetEphemerisMode()
SpacecraftState getInitialState() throws OrekitException
OrekitException
- if state cannot be retrievedvoid resetInitialState(SpacecraftState state) throws PropagationException
state
- new initial state to consider
PropagationException
- if initial state cannot be resetvoid addEventDetector(EventDetector detector)
detector
- event detector to addclearEventsDetectors()
,
getEventsDetectors()
Collection<EventDetector> getEventsDetectors()
addEventDetector(EventDetector)
,
clearEventsDetectors()
void clearEventsDetectors()
addEventDetector(EventDetector)
,
getEventsDetectors()
AttitudeProvider getAttitudeProvider()
AttitudeProvider getAttitudeProviderForces()
AttitudeProvider getAttitudeProviderEvents()
void setAttitudeProvider(AttitudeProvider attitudeProvider)
ConstantAttitudeLaw
.
attitudeProvider
- attitude providervoid setAttitudeProviderForces(AttitudeProvider attitudeProviderForces)
ConstantAttitudeLaw
.
attitudeProviderForces
- attitude provider for forces computationvoid setAttitudeProviderEvents(AttitudeProvider attitudeProviderEvents)
ConstantAttitudeLaw
.
attitudeProviderEvents
- attitude provider for events computationFrame getFrame()
4 cases are possible:
setOrbitFrame(Frame)
): it is returned.
SpacecraftState propagate(AbsoluteDate target) throws PropagationException
Simple propagators use only the target date as the specification for computing the propagated state. More feature rich propagators can consider other information and provide different operating modes or G-stop facilities to stop at pinpointed events occurrences. In these cases, the target date is only a hint, not a mandatory objective.
target
- target date towards which orbit state should be propagated
PropagationException
- if state cannot be propagatedSpacecraftState propagate(AbsoluteDate start, AbsoluteDate target) throws PropagationException
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 propagated
PropagationException
- if state cannot be propagated
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |