- java.lang.Object
-
- org.logicng.transformations.Subsumption
-
- org.logicng.transformations.cnf.CNFSubsumption
-
- All Implemented Interfaces:
FormulaTransformation
public final class CNFSubsumption extends Subsumption implements FormulaTransformation
This transformation performs subsumption on a given CNF and returns a new CNF. I.e. performs as many subsumptions as possible. A subsumption in a CNF means, that e.g. a clauseA | B | Cis subsumed by another clauseA | Band can therefore be deleted for an equivalent CNF.- Since:
- 1.5.0
- Version:
- 2.3.0
-
-
Constructor Summary
Constructors Constructor Description CNFSubsumption()Deprecated.In the next version, the standard constructor will be replaced by a private constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Formulaapply(Formula formula, boolean cache)Returns the transformed formula.static CNFSubsumptionget()Returns the singleton instance of this function.-
Methods inherited from class org.logicng.transformations.Subsumption
generateSubsumedUBTree
-
-
-
-
Constructor Detail
-
CNFSubsumption
@Deprecated public CNFSubsumption()
Deprecated.In the next version, the standard constructor will be replaced by a private constructor. In order to instantiate an object of this class, use theget()method.
-
-
Method Detail
-
get
public static CNFSubsumption get()
Returns the singleton instance of this function.- Returns:
- an instance of this function
-
apply
public Formula apply(Formula formula, boolean cache)
Description copied from interface:FormulaTransformationReturns the transformed formula.- Specified by:
applyin interfaceFormulaTransformation- Parameters:
formula- the input formulacache- indicated whether the result (and associated predicates) should be cached in the formula's cache.- Returns:
- the transformed formula
-
-