- java.lang.Object
-
- org.logicng.functions.MinimumPrimeImplicantFunction
-
- All Implemented Interfaces:
FormulaFunction<SortedSet<Literal>>
public final class MinimumPrimeImplicantFunction extends Object implements FormulaFunction<SortedSet<Literal>>
Computes a minimum-size prime implicant for the given formula. Returnsnullif the formula was not satisfiable.- Since:
- 2.0.0
- Version:
- 2.0.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SortedSet<Literal>apply(Formula formula, boolean cache)Applies this function to a given formula.static MinimumPrimeImplicantFunctionget()Returns the singleton instance of this function.
-
-
-
Method Detail
-
get
public static MinimumPrimeImplicantFunction get()
Returns the singleton instance of this function.- Returns:
- an instance of this function
-
apply
public SortedSet<Literal> apply(Formula formula, boolean cache)
Description copied from interface:FormulaFunctionApplies this function to a given formula.- Specified by:
applyin interfaceFormulaFunction<SortedSet<Literal>>- Parameters:
formula- the input formulacache- indicates whether the result should be cached in this formula's cache- Returns:
- the result of the application
-
-