T
- the type of the field elementspublic abstract class FieldAbstractPropagator<T extends org.hipparchus.CalculusFieldElement<T>> extends Object implements FieldPropagator<T>
Propagator
methods for analytical propagators.
This abstract class allows to provide easily the full set of Propagator
methods, including all propagation modes support and discrete events support for
any simple propagation method.
DEFAULT_MASS
Modifier | Constructor and Description |
---|---|
protected |
FieldAbstractPropagator(org.hipparchus.Field<T> field)
Build a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addAdditionalStateProvider(FieldAdditionalStateProvider<T> additionalStateProvider)
Add a set of user-specified state parameters to be computed along with the orbit propagation.
|
List<FieldAdditionalStateProvider<T>> |
getAdditionalStateProviders()
Get an unmodifiable list of providers for additional state.
|
AttitudeProvider |
getAttitudeProvider()
Get attitude provider.
|
org.hipparchus.Field<T> |
getField()
Field getter.
|
Frame |
getFrame()
Get the frame in which the orbit is propagated.
|
FieldSpacecraftState<T> |
getInitialState()
Get the propagator initial state.
|
String[] |
getManagedAdditionalStates()
Get all the names of all managed states.
|
FieldStepHandlerMultiplexer<T> |
getMultiplexer()
Get the multiplexer holding all step handlers.
|
TimeStampedFieldPVCoordinates<T> |
getPVCoordinates(FieldAbsoluteDate<T> date,
Frame frame)
Get the
FieldPVCoordinates of the body in the selected frame. |
protected FieldAbsoluteDate<T> |
getStartDate()
Get the start date.
|
protected void |
initializeAdditionalStates(FieldAbsoluteDate<T> target)
Initialize the additional state providers at the start of propagation.
|
protected void |
initializePropagation()
Initialize propagation.
|
boolean |
isAdditionalStateManaged(String name)
Check if an additional state is managed.
|
FieldSpacecraftState<T> |
propagate(FieldAbsoluteDate<T> target)
Propagate towards a target date.
|
void |
resetInitialState(FieldSpacecraftState<T> state)
Reset the propagator initial state.
|
void |
setAttitudeProvider(AttitudeProvider attitudeProvider)
Set attitude provider.
|
protected void |
setStartDate(FieldAbsoluteDate<T> startDate)
Set a start date.
|
protected void |
stateChanged(FieldSpacecraftState<T> state)
Notify about a state change.
|
protected FieldSpacecraftState<T> |
updateAdditionalStates(FieldSpacecraftState<T> original)
Update state by adding all additional states.
|
protected FieldSpacecraftState<T> |
updateUnmanagedStates(FieldSpacecraftState<T> original)
Update state by adding unmanaged states.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addEventDetector, clearEventsDetectors, clearStepHandlers, getEphemerisGenerator, getEventsDetectors, propagate, setStepHandler, setStepHandler
getPosition
protected FieldAbstractPropagator(org.hipparchus.Field<T> field)
field
- setting the fieldprotected void setStartDate(FieldAbsoluteDate<T> startDate)
startDate
- start dateprotected FieldAbsoluteDate<T> getStartDate()
public AttitudeProvider getAttitudeProvider()
getAttitudeProvider
in interface FieldPropagator<T extends org.hipparchus.CalculusFieldElement<T>>
public void setAttitudeProvider(AttitudeProvider attitudeProvider)
setAttitudeProvider
in interface FieldPropagator<T extends org.hipparchus.CalculusFieldElement<T>>
attitudeProvider
- attitude providerpublic org.hipparchus.Field<T> getField()
public FieldSpacecraftState<T> getInitialState()
getInitialState
in interface FieldPropagator<T extends org.hipparchus.CalculusFieldElement<T>>
public Frame getFrame()
The propagation frame is the definition frame of the initial state, so this method should be called after this state has been set, otherwise it may return null.
getFrame
in interface FieldPropagator<T extends org.hipparchus.CalculusFieldElement<T>>
FieldPropagator.resetInitialState(FieldSpacecraftState)
public void resetInitialState(FieldSpacecraftState<T> state)
resetInitialState
in interface FieldPropagator<T extends org.hipparchus.CalculusFieldElement<T>>
state
- new initial state to considerpublic FieldStepHandlerMultiplexer<T> getMultiplexer()
getMultiplexer
in interface FieldPropagator<T extends org.hipparchus.CalculusFieldElement<T>>
public void addAdditionalStateProvider(FieldAdditionalStateProvider<T> additionalStateProvider)
addAdditionalStateProvider
in interface FieldPropagator<T extends org.hipparchus.CalculusFieldElement<T>>
additionalStateProvider
- provider for additional statepublic List<FieldAdditionalStateProvider<T>> getAdditionalStateProviders()
getAdditionalStateProviders
in interface FieldPropagator<T extends org.hipparchus.CalculusFieldElement<T>>
protected FieldSpacecraftState<T> updateUnmanagedStates(FieldSpacecraftState<T> original)
original
- original stateupdateAdditionalStates(FieldSpacecraftState)
protected FieldSpacecraftState<T> updateAdditionalStates(FieldSpacecraftState<T> original)
original
- original stateaddAdditionalStateProvider(FieldAdditionalStateProvider)
protected void initializeAdditionalStates(FieldAbsoluteDate<T> target)
target
- date of propagation. Not equal to initialState.getDate()
.public boolean isAdditionalStateManaged(String name)
Managed states are states for which the propagators know how to compute
its evolution. They correspond to additional states for which an
additional state provider
has been registered
by calling the addAdditionalStateProvider
method. If the propagator is an integrator-based
propagator
, the states for which a set of additional derivatives
provider
has been registered by calling the addAdditionalDerivativesProvider
method are also counted as managed additional states.
Additional states that are present in the initial state
but have no evolution method registered are not considered as managed states.
These unmanaged additional states are not lost during propagation, though. Their
value are piecewise constant between state resets that may change them if some
event handler resetState
method is called at an event occurrence and happens
to change the unmanaged additional state.
isAdditionalStateManaged
in interface FieldPropagator<T extends org.hipparchus.CalculusFieldElement<T>>
name
- name of the additional statepublic String[] getManagedAdditionalStates()
getManagedAdditionalStates
in interface FieldPropagator<T extends org.hipparchus.CalculusFieldElement<T>>
public FieldSpacecraftState<T> propagate(FieldAbsoluteDate<T> target)
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.
propagate
in interface FieldPropagator<T extends org.hipparchus.CalculusFieldElement<T>>
target
- target date towards which orbit state should be propagatedpublic TimeStampedFieldPVCoordinates<T> getPVCoordinates(FieldAbsoluteDate<T> date, Frame frame)
FieldPVCoordinates
of the body in the selected frame.getPVCoordinates
in interface FieldPVCoordinatesProvider<T extends org.hipparchus.CalculusFieldElement<T>>
date
- current dateframe
- the frame where to define the positionprotected void initializePropagation()
protected void stateChanged(FieldSpacecraftState<T> state)
state
- new stateCopyright © 2002-2023 CS GROUP. All rights reserved.