Module logicng

Interface Handler

    • Method Summary

      All Methods Static Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default boolean aborted()
      Returns whether the computation was aborted by the handler.
      static boolean aborted​(Handler handler)
      Returns true if the handler is not null and is already aborted.
      static void start​(Handler handler)
      Null-safe helper method to start a handler.
      default void started()
      This method is called when the computation starts.
    • Method Detail

      • aborted

        default boolean aborted()
        Returns whether the computation was aborted by the handler.
        Returns:
        true if the computation was aborted by the handler, otherwise false
      • started

        default void started()
        This method is called when the computation starts.
      • aborted

        static boolean aborted​(Handler handler)
        Returns true if the handler is not null and is already aborted.
        Parameters:
        handler - the handler to check
        Returns:
        true if the handler is not null and is already aborted, otherwise false
      • start

        static void start​(Handler handler)
        Null-safe helper method to start a handler.
        Parameters:
        handler - the handler to start, may be null