Interface EventDetector

    • Method Detail

      • 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 does nothing

        Parameters:
        s0 - initial state
        t - target time for the integration
      • g

        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.
        Parameters:
        s - the current state information: date, kinematics, attitude
        Returns:
        value of the switching function
      • getThreshold

        default double getThreshold()
        Get the convergence threshold in the event time search.
        Returns:
        convergence threshold (s)
      • getMaxCheckInterval

        default AdaptableInterval getMaxCheckInterval()
        Get maximal time interval between switching function checks.
        Returns:
        maximal time interval (s) between switching function checks
      • getMaxIterationCount

        default int getMaxIterationCount()
        Get maximal number of iterations in the event time search.
        Returns:
        maximal number of iterations in the event time search
      • getHandler

        EventHandler getHandler()
        Get the handler.
        Returns:
        event handler to call at event occurrences
        Since:
        12.0
      • finish

        default void finish​(SpacecraftState state)
        This method finalizes the event detector's job.
        Parameters:
        state - state at propagation end
        Since:
        12.2
      • getDetectionSettings

        default EventDetectionSettings getDetectionSettings()
        Getter for the settings.
        Returns:
        detection settings
        Since:
        12.2