- java.lang.Object
-
- org.logicng.solvers.functions.BackboneFunction.Builder
-
- Enclosing class:
- BackboneFunction
public static class BackboneFunction.Builder extends Object
The builder for a backbone function.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BackboneFunctionbuild()Builds the backbone function with the current builder's configuration.BackboneFunction.Builderhandler(SATHandler handler)Sets the SAT handler for this function.BackboneFunction.Buildertype(BackboneType type)Sets the type of backbone which should be computed (default: POSITIVE_AND_NEGATIVE).BackboneFunction.Buildervariables(Collection<Variable> variables)Sets the variables which are relevant for the backbone computation.BackboneFunction.Buildervariables(Variable... variables)Sets the variables which are relevant for the backbone computation.
-
-
-
Method Detail
-
handler
public BackboneFunction.Builder handler(SATHandler handler)
Sets the SAT handler for this function.- Parameters:
handler- the handler- Returns:
- the current builder
-
variables
public BackboneFunction.Builder variables(Collection<Variable> variables)
Sets the variables which are relevant for the backbone computation.- Parameters:
variables- the variables- Returns:
- the current builder
-
variables
public BackboneFunction.Builder variables(Variable... variables)
Sets the variables which are relevant for the backbone computation.- Parameters:
variables- the variables- Returns:
- the current builder
-
type
public BackboneFunction.Builder type(BackboneType type)
Sets the type of backbone which should be computed (default: POSITIVE_AND_NEGATIVE).- Parameters:
type- the backbone type- Returns:
- the current builder
-
build
public BackboneFunction build()
Builds the backbone function with the current builder's configuration.- Returns:
- the backbone function
-
-