- java.lang.Object
-
- org.logicng.predicates.satisfiability.ContradictionPredicate
-
- All Implemented Interfaces:
FormulaPredicate
public final class ContradictionPredicate extends Object implements FormulaPredicate
Contradiction predicate. Indicates whether a formula is contradictory or not.- Since:
- 1.0
- Version:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description ContradictionPredicate(FormulaFactory f)Constructs a new contradiction predicate with a given formula factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleantest(Formula formula, boolean cache)Tests the predicate on a given formula.StringtoString()
-
-
-
Constructor Detail
-
ContradictionPredicate
public ContradictionPredicate(FormulaFactory f)
Constructs a new contradiction predicate with a given formula factory.- Parameters:
f- the formula factory
-
-
Method Detail
-
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
-
-