- java.lang.Object
-
- org.logicng.solvers.functions.UnsatCoreFunction
-
- All Implemented Interfaces:
SolverFunction<UNSATCore<Proposition>>
public final class UnsatCoreFunction extends Object implements SolverFunction<UNSATCore<Proposition>>
A solver function for computing the unsatisfiable core on the current solver.- Since:
- 2.0.0
- Version:
- 2.0.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UNSATCore<Proposition>apply(MiniSat solver, Consumer<Tristate> resultSetter)Applies this function to the given solver.static UnsatCoreFunctionget()Returns the singleton of the function.
-
-
-
Method Detail
-
get
public static UnsatCoreFunction get()
Returns the singleton of the function.- Returns:
- the function instance
-
apply
public UNSATCore<Proposition> apply(MiniSat solver, Consumer<Tristate> resultSetter)
Description copied from interface:SolverFunctionApplies this function to the given solver.- Specified by:
applyin interfaceSolverFunction<UNSATCore<Proposition>>- 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
-
-