- java.lang.Object
-
- org.logicng.solvers.functions.BackboneFunction
-
- All Implemented Interfaces:
SolverFunction<Backbone>
public final class BackboneFunction extends Object implements SolverFunction<Backbone>
A solver function which computes a backbone for the formula on the solver.Backbone functions are instantiated via their builder
builder().- Since:
- 2.0.0
- Version:
- 2.1.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBackboneFunction.BuilderThe builder for a backbone function.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Backboneapply(MiniSat solver, Consumer<Tristate> resultSetter)Applies this function to the given solver.static BackboneFunction.Builderbuilder()Returns the builder for this function.
-
-
-
Method Detail
-
builder
public static BackboneFunction.Builder builder()
Returns the builder for this function.- Returns:
- the builder
-
apply
public Backbone apply(MiniSat solver, Consumer<Tristate> resultSetter)
Description copied from interface:SolverFunctionApplies this function to the given solver.- Specified by:
applyin interfaceSolverFunction<Backbone>- 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
-
-