Interface ManeuverTriggersResetter
-
- All Known Implementing Classes:
TriggerDate
public interface ManeuverTriggersResetterResetter for maneuver triggers.- Since:
- 11.1
- Author:
- Luc Maisonobe
- See Also:
AbstractManeuverTriggers
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidinit(SpacecraftState initialState, AbsoluteDate target)Initialization method called at propagation start.voidmaneuverTriggered(SpacecraftState state, boolean start)Observe a maneuver trigger.SpacecraftStateresetState(SpacecraftState state)Reset state as a maneuver triggers.
-
-
-
Method Detail
-
init
default void init(SpacecraftState initialState, AbsoluteDate target)
Initialization method called at propagation start.The default implementation does nothing.
- Parameters:
initialState- initial spacecraft state (at the start of propagation).target- date of propagation. Not equal toinitialState.getDate().
-
maneuverTriggered
void maneuverTriggered(SpacecraftState state, boolean start)
Observe a maneuver trigger.The
startparameter corresponds to physical flow of time from past to future, not to propagation direction which can be backward. This means that during forward propagations, the first call will havestartset totrueand the second call will havestartset tofalse, whereas in backward propagation, the first call will havestartset tofalseand the second call will havestartset totrue.- Parameters:
state- spacecraft state at trigger date (before applying the maneuver)start- if true, the trigger is the start of the maneuver
-
resetState
SpacecraftState resetState(SpacecraftState state)
Reset state as a maneuver triggers.- Parameters:
state- spacecraft state at trigger date- Returns:
- reset state taking into account maneuver start/stop
-
-