KK
- object type that the handler is called frompublic interface FieldEventHandler<KK extends FieldEventDetector<T>,T extends RealFieldElement<T>>
Modifier and Type | Method and Description |
---|---|
Action |
eventOccurred(FieldSpacecraftState<T> s,
KK detector,
boolean increasing)
eventOccurred method mirrors the same interface method as in
EventDetector
and its subclasses, but with an additional parameter that allows the calling
method to pass in an object from the detector which would have potential
additional data to allow the implementing class to determine the correct
return state. |
default void |
init(FieldSpacecraftState<T> initialState,
FieldAbsoluteDate<T> target)
Initialize event handler at the start of a propagation.
|
default FieldSpacecraftState<T> |
resetState(KK detector,
FieldSpacecraftState<T> oldState)
Reset the state prior to continue propagation.
|
default void init(FieldSpacecraftState<T> initialState, FieldAbsoluteDate<T> target)
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
initialState
- initial statetarget
- target date for the propagationAction eventOccurred(FieldSpacecraftState<T> s, KK detector, boolean increasing)
EventDetector
and its subclasses, but with an additional parameter that allows the calling
method to pass in an object from the detector which would have potential
additional data to allow the implementing class to determine the correct
return state.s
- SpaceCraft state to be used in the evaluationdetector
- object with appropriate type that can be used in determining correct return stateincreasing
- with the event occurred in an "increasing" or "decreasing" slope directiondefault FieldSpacecraftState<T> resetState(KK detector, FieldSpacecraftState<T> oldState)
This method is called after the step handler has returned and
before the next step is started, but only when eventOccurred(org.orekit.propagation.FieldSpacecraftState<T>, KK, boolean)
has itself returned the Action.RESET_STATE
indicator. It allows the user to reset the state for the next step,
without perturbing the step handler of the finishing step. If the
eventOccurred(org.orekit.propagation.FieldSpacecraftState<T>, KK, boolean)
never returns the Action.RESET_STATE
indicator, this function will never be called, and it is safe to simply return null.
The default implementation simply return its argument.
detector
- object with appropriate type that can be used in determining correct return stateoldState
- old stateCopyright © 2002-2020 CS GROUP. All rights reserved.