Package org.orekit.propagation
Class FieldAbstractStateModifier<T extends CalculusFieldElement<T>>
- java.lang.Object
-
- org.orekit.propagation.FieldAbstractStateModifier<T>
-
- Type Parameters:
T- type of the field elements
- All Implemented Interfaces:
FieldAdditionalStateProvider<T>
public abstract class FieldAbstractStateModifier<T extends CalculusFieldElement<T>> extends Object implements FieldAdditionalStateProvider<T>
Abstract base class for modifying state during propagation.This class is a specialized implementation of
AdditionalStateProviderwith a name set to the empty string and returning a null additional state.Beware that changing the state undercover from the propagator may have many side effects. Using this class should therefore be done cautiously.
- Since:
- 12.1
- Author:
- Luc Maisonobe
- See Also:
Propagator,AdditionalStateProvider
-
-
Constructor Summary
Constructors Constructor Description FieldAbstractStateModifier()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract FieldSpacecraftState<T>change(FieldSpacecraftState<T> state)Change main state.T[]getAdditionalState(FieldSpacecraftState<T> state)Get the additional state.StringgetName()Get the name of the additional state.FieldSpacecraftState<T>update(FieldSpacecraftState<T> state)Update a state.-
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.FieldAdditionalStateProvider
init, yields
-
-
-
-
Method Detail
-
getName
public String getName()
Get the name of the additional state.If a provider just modifies one of the basic elements (orbit, attitude or mass) without adding any new state, it should return the empty string as its name.
- Specified by:
getNamein interfaceFieldAdditionalStateProvider<T extends CalculusFieldElement<T>>- Returns:
- name of the additional state (names containing "orekit" with any case are reserved for the library internal use)
-
getAdditionalState
public T[] getAdditionalState(FieldSpacecraftState<T> state)
Get the additional state.- Specified by:
getAdditionalStatein interfaceFieldAdditionalStateProvider<T extends CalculusFieldElement<T>>- Parameters:
state- spacecraft state to which additional state should correspond- Returns:
- additional state corresponding to spacecraft state
-
update
public FieldSpacecraftState<T> update(FieldSpacecraftState<T> state)
Update a state.- Specified by:
updatein interfaceFieldAdditionalStateProvider<T extends CalculusFieldElement<T>>- Parameters:
state- spacecraft state to update- Returns:
- updated state
-
change
public abstract FieldSpacecraftState<T> change(FieldSpacecraftState<T> state)
Change main state.- Parameters:
state- spacecraft state to change- Returns:
- changed state
-
-