-
- All Superinterfaces:
Handler
- All Known Implementing Classes:
NumberOfModelsHandler,TimeoutModelEnumerationHandler
public interface ModelEnumerationHandler extends Handler
Interface for a handler for the enumeration of models.- Since:
- 1.0
- Version:
- 2.1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanaborted()Returns whether the computation was aborted by the handler.booleanfoundModel(Assignment assignment)This method is called every time a model is found.SATHandlersatHandler()Returns a SAT handler which can be used to cancel internal SAT calls of the model enumeration process.
-
-
-
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:HandlerReturns whether the computation was aborted by the handler.
-
foundModel
boolean foundModel(Assignment assignment)
This method is called every time a model is found.- Parameters:
assignment- the respective model- Returns:
trueif more models should be searched, otherwisefalse
-
-