- java.lang.Object
-
- org.logicng.transformations.cnf.CNFFactorization
-
- All Implemented Interfaces:
FormulaTransformation
public final class CNFFactorization extends Object implements FormulaTransformation
Transformation of a formula in CNF by factorization.- Since:
- 1.0
- Version:
- 2.1.0
-
-
Constructor Summary
Constructors Constructor Description CNFFactorization()Constructor for a CNF Factorization without a factorization handler.CNFFactorization(FactorizationHandler handler)Constructor for a CNF Factorization with a given factorization handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Formulaapply(Formula formula, boolean cache)Returns the transformed formula.StringtoString()
-
-
-
Constructor Detail
-
CNFFactorization
public CNFFactorization()
Constructor for a CNF Factorization without a factorization handler.
-
CNFFactorization
public CNFFactorization(FactorizationHandler handler)
Constructor for a CNF Factorization with a given factorization handler.- Parameters:
handler- the handler
-
-
Method Detail
-
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
-
-