Class FieldAbstractCartesianCost.FieldSwitchFunction
java.lang.Object
org.orekit.control.indirect.adjoint.cost.FieldAbstractCartesianCost.FieldSwitchFunction
- All Implemented Interfaces:
EventFunction,EventFunctionModifier
- Enclosing class:
FieldAbstractCartesianCost<T extends CalculusFieldElement<T>>
public class FieldAbstractCartesianCost.FieldSwitchFunction
extends Object
implements EventFunctionModifier
Class for control switch function involving Field.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFieldSwitchFunction(Function<FieldSpacecraftState<T>, T> fieldFunction) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanMethod 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).Get the base event 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
dependsOnTimeOnly, value, value
-
Constructor Details
-
FieldSwitchFunction
Constructor.- Parameters:
fieldFunction- function computing the switching condition from the state
-
-
Method Details
-
getBaseFunction
Description copied from interface:EventFunctionModifierGet the base event function.- Specified by:
getBaseFunctionin interfaceEventFunctionModifier- Returns:
- base event function
-
dependsOnMainVariablesOnly
public 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- Specified by:
dependsOnMainVariablesOnlyin interfaceEventFunctionModifier- Returns:
- flag
-