Package org.orekit.propagation.events
Interface DetectorModifier
-
- All Superinterfaces:
EventDetector
- All Known Implementing Classes:
AdapterDetector
,AttitudesSequence.Switch
,AttitudesSwitcher.InstantaneousSwitch
,ImpulseManeuver
public interface DetectorModifier extends EventDetector
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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
finish(SpacecraftState state)
This method finalizes the event detector's job.default double
g(SpacecraftState s)
Compute the value of the switching function.default EventDetectionSettings
getDetectionSettings()
Getter for the settings.EventDetector
getDetector()
Get the wrapped detector.default EventHandler
getHandler()
Get the handler.default void
init(SpacecraftState s0, AbsoluteDate t)
Initialize event handler at the start of a propagation.-
Methods inherited from interface org.orekit.propagation.events.EventDetector
getMaxCheckInterval, getMaxIterationCount, getThreshold
-
-
-
-
Method Detail
-
getDetector
EventDetector getDetector()
Get the wrapped detector.- Returns:
- wrapped detector
-
init
default void init(SpacecraftState s0, AbsoluteDate t)
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 initializes the handler.
- Specified by:
init
in interfaceEventDetector
- Parameters:
s0
- initial statet
- target time for the integration
-
g
default double g(SpacecraftState s)
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:
g
in interfaceEventDetector
- Parameters:
s
- the current state information: date, kinematics, attitude- Returns:
- value of the switching function
-
getHandler
default EventHandler getHandler()
Get the handler.- Specified by:
getHandler
in interfaceEventDetector
- Returns:
- event handler to call at event occurrences
-
finish
default void finish(SpacecraftState state)
This method finalizes the event detector's job.- Specified by:
finish
in interfaceEventDetector
- Parameters:
state
- state at propagation end
-
getDetectionSettings
default EventDetectionSettings getDetectionSettings()
Getter for the settings.- Specified by:
getDetectionSettings
in interfaceEventDetector
- Returns:
- detection settings
-
-