Interface EventFunctionModifier
- All Superinterfaces:
EventFunction
- All Known Implementing Classes:
FieldAbstractCartesianCost.FieldSwitchFunction,NegateEventFunction,ShiftedEventFunction
Event function modifier.
Default implementations simply wrap the base function.
- Since:
- 14.0
- Author:
- Romain Serra
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic <S extends CalculusFieldElement<S>>
EventFunctionModifieraddFieldValue(EventFunction eventFunction, S increment) static EventFunctionModifieraddReal(EventFunction eventFunction, double increment) default booleanMethod returning true if and only if the event function does not depend on dependent variables, other than the Cartesian coordinates (or equivalent), mass and attitude (excepts for its rates).default booleanMethod returning true if and only if the event function does not depend on dependent variables, just the independent one i.e. time.default <T extends CalculusFieldElement<T>>
Tvalue(FieldSpacecraftState<T> fieldState) Evaluate Field function.default doublevalue(SpacecraftState state) Evaluate function.
-
Method Details
-
getBaseFunction
EventFunction getBaseFunction() -
value
Description copied from interface:EventFunctionEvaluate function.- Specified by:
valuein interfaceEventFunction- Parameters:
state- spacecraft state- Returns:
- value
-
value
Description copied from interface:EventFunctionEvaluate Field function. By default, calls the non-Field version. This is suitable for detection but not be for applications like automatic differentiation, where a proper implementation should be used instead.- Specified by:
valuein interfaceEventFunction- Type Parameters:
T- field type- Parameters:
fieldState- spacecraft state- Returns:
- value
-
dependsOnTimeOnly
default boolean dependsOnTimeOnly()Description copied from interface:EventFunctionMethod returning true if and only if the event function does not depend on dependent variables, just the independent one i.e. time. This information is used for performance in propagation and derivatives correction with switches in the dynamics.- Specified by:
dependsOnTimeOnlyin interfaceEventFunction- Returns:
- flag
-
dependsOnMainVariablesOnly
default boolean dependsOnMainVariablesOnly()Description copied from interface:EventFunctionMethod returning true if and only if the event function does not depend on dependent variables, other than the Cartesian coordinates (or equivalent), mass and attitude (excepts for its rates). It should thus return false if the STM is needed to evaluate the event. This information is used for performance in propagation.- Specified by:
dependsOnMainVariablesOnlyin interfaceEventFunction- Returns:
- flag
-
addReal
-
addFieldValue
static <S extends CalculusFieldElement<S>> EventFunctionModifier addFieldValue(EventFunction eventFunction, S increment)
-