Interface DetectorModifier

    • Method Detail

      • getDetector

        EventDetector getDetector()
        Get the wrapped detector.
        Returns:
        wrapped detector
      • init

        default void init​(SpacecraftState s0,
                          AbsoluteDate t)
        Initialize event handler at the start of a propagation.

        This method is called once at the start of the propagation. It may be used by the event handler to initialize some internal data if needed.

        The default implementation initializes the handler.

        Specified by:
        init in interface EventDetector
        Parameters:
        s0 - initial state
        t - target time for the integration
      • g

        default double g​(SpacecraftState 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 EventDetector
        Parameters:
        s - the current state information: date, kinematics, attitude
        Returns:
        value of the switching function
      • finish

        default void finish​(SpacecraftState state)
        This method finalizes the event detector's job.
        Specified by:
        finish in interface EventDetector
        Parameters:
        state - state at propagation end