Interface FieldDetectorModifier<T extends CalculusFieldElement<T>>

    • Method Detail

      • getDetector

        FieldEventDetector<T> getDetector()
        Getter for wrapped detector.
        Returns:
        detector
      • init

        default void init​(FieldSpacecraftState<T> s0,
                          FieldAbsoluteDate<T> t)
        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:
        init in interface FieldEventDetector<T extends CalculusFieldElement<T>>
        Parameters:
        s0 - initial state
        t - target time for the integration
      • dependsOnTimeOnly

        default boolean dependsOnTimeOnly()
        Method returning true if and only if the detection function g 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:
        dependsOnTimeOnly in interface FieldEventDetector<T extends CalculusFieldElement<T>>
        Returns:
        flag
      • dependsOnMainVariablesOnly

        default boolean dependsOnMainVariablesOnly()
        Description copied from interface: FieldEventDetector
        Method returning true if and only if the detection function g 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:
        dependsOnMainVariablesOnly in interface FieldEventDetector<T extends CalculusFieldElement<T>>
        Returns:
        flag
      • 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 interface FieldEventDetector<T extends CalculusFieldElement<T>>
        Parameters:
        s - the current state information: date, kinematics, attitude
        Returns:
        value of the switching function