- java.lang.Object
-
- org.logicng.solvers.functions.ModelEnumerationFunction.Builder
-
- Enclosing class:
- ModelEnumerationFunction
public static class ModelEnumerationFunction.Builder extends Object
The builder for a model enumeration function.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelEnumerationFunction.BuilderadditionalVariables(Collection<Variable> variables)Sets an additional set of variables which should occur in every model.ModelEnumerationFunction.BuilderadditionalVariables(Variable... variables)Sets an additional set of variables which should occur in every model.ModelEnumerationFunctionbuild()Builds the model enumeration function with the current builder's configuration.ModelEnumerationFunction.BuilderfastEvaluable(boolean fastEvaluable)Sets the flag whether the created assignment should befast evaluableassignments.ModelEnumerationFunction.Builderhandler(ModelEnumerationHandler handler)Sets the model enumeration handler for this functionModelEnumerationFunction.Buildervariables(Collection<Variable> variables)Sets the set of variables over which the model enumeration should iterate.ModelEnumerationFunction.Buildervariables(Variable... variables)Sets the set of variables over which the model enumeration should iterate.
-
-
-
Method Detail
-
handler
public ModelEnumerationFunction.Builder handler(ModelEnumerationHandler handler)
Sets the model enumeration handler for this function- Parameters:
handler- the handler- Returns:
- the current builder
-
variables
public ModelEnumerationFunction.Builder variables(Collection<Variable> variables)
Sets the set of variables over which the model enumeration should iterate.- Parameters:
variables- the set of variables- Returns:
- the current builder
-
variables
public ModelEnumerationFunction.Builder variables(Variable... variables)
Sets the set of variables over which the model enumeration should iterate.- Parameters:
variables- the set of variables- Returns:
- the current builder
-
additionalVariables
public ModelEnumerationFunction.Builder additionalVariables(Collection<Variable> variables)
Sets an additional set of variables which should occur in every model.- Parameters:
variables- the additional variables for each model- Returns:
- the current builder
-
additionalVariables
public ModelEnumerationFunction.Builder additionalVariables(Variable... variables)
Sets an additional set of variables which should occur in every model.- Parameters:
variables- the additional variables for each model- Returns:
- the current builder
-
fastEvaluable
public ModelEnumerationFunction.Builder fastEvaluable(boolean fastEvaluable)
Sets the flag whether the created assignment should befast evaluableassignments.- Parameters:
fastEvaluable-trueif the created assignment should be fast evaluable, otherwisefalse- Returns:
- the builder
-
build
public ModelEnumerationFunction build()
Builds the model enumeration function with the current builder's configuration.- Returns:
- the model enumeration function
-
-