- java.lang.Object
-
- org.logicng.solvers.functions.ModelEnumerationFunction
-
- All Implemented Interfaces:
SolverFunction<List<Assignment>>
public final class ModelEnumerationFunction extends Object implements SolverFunction<List<Assignment>>
A solver function for enumerating models on the solver.Model enumeration functions are instantiated via their builder
builder().- Since:
- 2.0.0
- Version:
- 2.3.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModelEnumerationFunction.BuilderThe builder for a model enumeration function.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Assignment>apply(MiniSat solver, Consumer<Tristate> resultSetter)Applies this function to the given solver.static ModelEnumerationFunction.Builderbuilder()Returns the builder for this function.
-
-
-
Method Detail
-
builder
public static ModelEnumerationFunction.Builder builder()
Returns the builder for this function.- Returns:
- the builder
-
apply
public List<Assignment> apply(MiniSat solver, Consumer<Tristate> resultSetter)
Description copied from interface:SolverFunctionApplies this function to the given solver.- Specified by:
applyin interfaceSolverFunction<List<Assignment>>- Parameters:
solver- the solver on which the function should work onresultSetter- a setter for the result of the solver- Returns:
- the result of the function application
-
-