Class AbstractManeuverTriggers.TriggerHandler
- All Implemented Interfaces:
EventHandler
- Enclosing class:
AbstractManeuverTriggers
- Since:
- 13.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ActiondetermineAction(EventDetector detector, SpacecraftState oldState) Determines the action (reset state or derivatives only).voidinit(SpacecraftState initialState, AbsoluteDate target, EventDetector detector) Initialize event handler at the start of a propagation.protected booleanGetter for flag.resetState(EventDetector detector, SpacecraftState oldState) Reset the state prior to continue propagation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.orekit.propagation.events.handlers.EventHandler
eventOccurred, finish
-
Constructor Details
-
TriggerHandler
protected TriggerHandler()
-
-
Method Details
-
init
Initialize event handler at the start of a propagation.This method is called once at the start of the propagation. It may be used by the event handler to initialize some internal data if needed.
The default implementation does nothing
- Specified by:
initin interfaceEventHandler- Parameters:
initialState- initial statetarget- target date for the propagationdetector- event detector related to the event handler
-
determineAction
Determines the action (reset state or derivatives only).- Parameters:
detector- event detectoroldState- state before reset if any- Returns:
- action
-
resetState
Reset the state prior to continue propagation.This method is called after the step handler has returned and before the next step is started, but only when
EventHandler.eventOccurred(org.orekit.propagation.SpacecraftState, org.orekit.propagation.events.EventDetector, boolean)has itself returned theAction.RESET_STATEindicator. It allows the user to reset the state for the next step, without perturbing the step handler of the finishing step. If theEventHandler.eventOccurred(org.orekit.propagation.SpacecraftState, org.orekit.propagation.events.EventDetector, boolean)never returns theAction.RESET_STATEindicator, this function will never be called, and it is safe to simply return null.The default implementation simply return its argument.
- Specified by:
resetStatein interfaceEventHandler- Parameters:
detector- object with appropriate type that can be used in determining correct return stateoldState- old state- Returns:
- new state
-
isForward
protected boolean isForward()Getter for flag.- Returns:
- flag on backward propagation
-