Module logicng

Interface ModelEnumerationHandler

    • Method Detail

      • satHandler

        SATHandler satHandler()
        Returns a SAT handler which can be used to cancel internal SAT calls of the model enumeration process.
        Returns:
        a SAT handler
      • aborted

        default boolean aborted()
        Description copied from interface: Handler
        Returns whether the computation was aborted by the handler.
        Specified by:
        aborted in interface Handler
        Returns:
        true if the computation was aborted by the handler, otherwise false
      • foundModel

        boolean foundModel​(Assignment assignment)
        This method is called every time a model is found.
        Parameters:
        assignment - the respective model
        Returns:
        true if more models should be searched, otherwise false