- java.lang.Object
-
- org.logicng.predicates.CNFPredicate
-
- All Implemented Interfaces:
FormulaPredicate
public final class CNFPredicate extends Object implements FormulaPredicate
CNF predicate. Indicates whether a formula is in CNF or not.- Since:
- 1.0
- Version:
- 1.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CNFPredicateget()Returns the singleton of the predicate.booleantest(Formula formula, boolean cache)Tests the predicate on a given formula.StringtoString()
-
-
-
Method Detail
-
get
public static CNFPredicate get()
Returns the singleton of the predicate.- Returns:
- the predicate instance
-
test
public boolean test(Formula formula, boolean cache)
Description copied from interface:FormulaPredicateTests the predicate on a given formula.- Specified by:
testin interfaceFormulaPredicate- Parameters:
formula- the input formulacache- indicates whether the result should be cached in the formula's cache- Returns:
trueif the formula holds,falseotherwise
-
-