Package org.orekit.propagation.events
Interface DetectorModifier
- All Superinterfaces:
EventDetector
- All Known Implementing Classes:
AttitudesSequence.Switch,AttitudesSwitcher.InstantaneousSwitch,EventEnablingPredicateFilter,EventShifter,ImpulseManeuver,LongitudeCrossingDetector,ManeuverTriggerDetector,NegateDetector
Base class for modifying an existing detector.
This class is intended to be a base class for changing behaviour of a wrapped existing detector. This base class delegates all its methods to the wrapped detector. Classes extending it can therefore override only the methods they want to change.
- Since:
- 13.0
- Author:
- Luc Maisonobe, Romain Serra
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidfinish(SpacecraftState state) This method finalizes the event detector's job.default doubleg(SpacecraftState s) Compute the value of the switching function.default EventDetectionSettingsGetter for the settings.Get the wrapped detector.default EventFunctionGet the event function.default EventHandlerGet the handler.default voidinit(SpacecraftState s0, AbsoluteDate t) Initialize event detector at the start of a propagation.default voidreset(SpacecraftState state, AbsoluteDate target) Reset the event detector during propagation when the state is modified by an event or an additional data provider.Methods inherited from interface org.orekit.propagation.events.EventDetector
getMaxCheckInterval, getMaxIterationCount, getThreshold
-
Method Details
-
getDetector
EventDetector getDetector()Get the wrapped detector.- Returns:
- wrapped detector
-
init
Initialize event detector 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 initializes the handler.
- Specified by:
initin interfaceEventDetector- Parameters:
s0- initial statet- target time for the integration
-
reset
Reset the event detector during propagation when the state is modified by an event or an additional data provider.The default implementation does nothing.
- Specified by:
resetin interfaceEventDetector- Parameters:
state- current statetarget- target time for the integration
-
getEventFunction
Get the event function. It defines g both for double and Field.- Specified by:
getEventFunctionin interfaceEventDetector- Returns:
- event function
-
g
Compute the value of the switching function. This function must be continuous (at least in its roots neighborhood), as the integrator will need to find its roots to locate the events.- Specified by:
gin interfaceEventDetector- Parameters:
s- the current state information: date, kinematics, attitude- Returns:
- value of the switching function
-
getHandler
Get the handler.- Specified by:
getHandlerin interfaceEventDetector- Returns:
- event handler to call at event occurrences
-
finish
This method finalizes the event detector's job.- Specified by:
finishin interfaceEventDetector- Parameters:
state- state at propagation end
-
getDetectionSettings
Getter for the settings.- Specified by:
getDetectionSettingsin interfaceEventDetector- Returns:
- detection settings
-