Class ShiftedEventFunction
java.lang.Object
org.orekit.propagation.events.functions.ShiftedEventFunction
- All Implemented Interfaces:
EventFunction,EventFunctionModifier
Time-shifted event function. The value can depend on the state or be constant.
- Since:
- 14.0
- Author:
- Romain Serra
-
Constructor Summary
ConstructorsConstructorDescriptionShiftedEventFunction(EventFunction baseFunction, double timeShift) Constructor with constant shift.ShiftedEventFunction(EventFunction baseFunction, ExtendedStateScalarFunction timeShiftFunction) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGetter for time shift function.<T extends CalculusFieldElement<T>>
Tvalue(FieldSpacecraftState<T> fieldState) Evaluate Field function.doublevalue(SpacecraftState state) Evaluate function.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.orekit.propagation.events.functions.EventFunctionModifier
dependsOnMainVariablesOnly, dependsOnTimeOnly
-
Constructor Details
-
ShiftedEventFunction
Constructor with constant shift.- Parameters:
baseFunction- event function to shift in timetimeShift- shift value
-
ShiftedEventFunction
public ShiftedEventFunction(EventFunction baseFunction, ExtendedStateScalarFunction timeShiftFunction) Constructor.- Parameters:
baseFunction- event function to shift in timetimeShiftFunction- shift value function
-
-
Method Details
-
getTimeShiftFunction
Getter for time shift function.- Returns:
- shift function
-
getBaseFunction
- Specified by:
getBaseFunctionin interfaceEventFunctionModifier
-
value
Description copied from interface:EventFunctionEvaluate function.- Specified by:
valuein interfaceEventFunction- Specified by:
valuein interfaceEventFunctionModifier- 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- Specified by:
valuein interfaceEventFunctionModifier- Type Parameters:
T- field type- Parameters:
fieldState- spacecraft state- Returns:
- value
-