- java.lang.Object
-
- org.logicng.transformations.dnf.DNFFactorization
-
- All Implemented Interfaces:
FormulaTransformation
public final class DNFFactorization extends Object implements FormulaTransformation
Transformation of a formula in DNF by factorization.- Since:
- 1.0
- Version:
- 2.1.0
-
-
Constructor Summary
Constructors Constructor Description DNFFactorization()Constructor for a DNF Factorization without a factorization handler.DNFFactorization(FactorizationHandler handler)Constructor for a DNF 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
-
DNFFactorization
public DNFFactorization()
Constructor for a DNF Factorization without a factorization handler.
-
DNFFactorization
public DNFFactorization(FactorizationHandler handler)
Constructor for a DNF 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
-
-