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:
FieldEventEnablingPredicateFilter,FieldEventShifter,FieldImpulseManeuver,FieldLongitudeCrossingDetector,FieldManeuverTriggerDetector,FieldNegateDetector
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
Modifier and TypeMethodDescriptiondefault voidfinish(FieldSpacecraftState<T> state) This method finalizes the event detector's job.default Tg(FieldSpacecraftState<T> s) Compute the value of the switching function.default FieldEventDetectionSettings<T> Getter for the settings.Getter for wrapped detector.default EventFunctionGet the event function.default FieldEventHandler<T> Get the handler.default voidinit(FieldSpacecraftState<T> s0, FieldAbsoluteDate<T> t) Initialize event detector at the start of a propagation.default voidreset(FieldSpacecraftState<T> state, FieldAbsoluteDate<T> 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.FieldEventDetector
getMaxCheckInterval, getMaxIterationCount, getThreshold
-
Method Details
-
getDetector
FieldEventDetector<T> getDetector()Getter for wrapped detector.- Returns:
- 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 detector to initialize some internal data if needed.
The default implementation initializes the handler.
- Specified by:
initin interfaceFieldEventDetector<T extends CalculusFieldElement<T>>- 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 interfaceFieldEventDetector<T extends CalculusFieldElement<T>>- 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 interfaceFieldEventDetector<T extends CalculusFieldElement<T>>- 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 interfaceFieldEventDetector<T extends CalculusFieldElement<T>>- Parameters:
s- the current state information: date, kinematics, attitude- Returns:
- value of the switching function
-
getHandler
Get the handler.- Specified by:
getHandlerin interfaceFieldEventDetector<T extends CalculusFieldElement<T>>- Returns:
- event handler to call at event occurrences
-
finish
This method finalizes the event detector's job.- Specified by:
finishin interfaceFieldEventDetector<T extends CalculusFieldElement<T>>- Parameters:
state- state at propagation end
-
getDetectionSettings
Getter for the settings.- Specified by:
getDetectionSettingsin interfaceFieldEventDetector<T extends CalculusFieldElement<T>>- Returns:
- detection settings
-