Package org.orekit.propagation.events
Interface FieldDetectorModifier<T extends CalculusFieldElement<T>>
-
- Type Parameters:
T
- type of the field element
- All Superinterfaces:
FieldEventDetector<T>
- All Known Implementing Classes:
FieldAdapterDetector
,FieldImpulseManeuver
public interface FieldDetectorModifier<T extends CalculusFieldElement<T>> extends FieldEventDetector<T>
Base class for modifying an existing getDetector().This class is intended to be a base class for changing behaviour of a wrapped existing getDetector(). This base class delegates all its methods to the wrapped getDetector(). 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(FieldSpacecraftState<T> state)
This method finalizes the event detector's job.default T
g(FieldSpacecraftState<T> s)
Compute the value of the switching function.default FieldEventDetectionSettings<T>
getDetectionSettings()
Getter for the settings.FieldEventDetector<T>
getDetector()
Getter for wrapped detector.default FieldEventHandler<T>
getHandler()
Get the handler.default void
init(FieldSpacecraftState<T> s0, FieldAbsoluteDate<T> t)
Initialize event handler at the start of a propagation.-
Methods inherited from interface org.orekit.propagation.events.FieldEventDetector
getMaxCheckInterval, getMaxIterationCount, getThreshold
-
-
-
-
Method Detail
-
getDetector
FieldEventDetector<T> getDetector()
Getter for wrapped detector.- Returns:
- detector
-
init
default void init(FieldSpacecraftState<T> s0, FieldAbsoluteDate<T> 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 interfaceFieldEventDetector<T extends CalculusFieldElement<T>>
- Parameters:
s0
- initial statet
- target time for the integration
-
g
default T g(FieldSpacecraftState<T> 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 interfaceFieldEventDetector<T extends CalculusFieldElement<T>>
- Parameters:
s
- the current state information: date, kinematics, attitude- Returns:
- value of the switching function
-
getHandler
default FieldEventHandler<T> getHandler()
Get the handler.- Specified by:
getHandler
in interfaceFieldEventDetector<T extends CalculusFieldElement<T>>
- Returns:
- event handler to call at event occurrences
-
finish
default void finish(FieldSpacecraftState<T> state)
This method finalizes the event detector's job.- Specified by:
finish
in interfaceFieldEventDetector<T extends CalculusFieldElement<T>>
- Parameters:
state
- state at propagation end
-
getDetectionSettings
default FieldEventDetectionSettings<T> getDetectionSettings()
Getter for the settings.- Specified by:
getDetectionSettings
in interfaceFieldEventDetector<T extends CalculusFieldElement<T>>
- Returns:
- detection settings
-
-