- java.lang.Object
-
- org.logicng.transformations.NNFTransformation
-
- All Implemented Interfaces:
FormulaTransformation
public class NNFTransformation extends Object implements FormulaTransformation
Transformation of a formula in NNF.- Since:
- 2.2.0
- Version:
- 2.2.0
-
-
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 NNFTransformationget()Returns the singleton of this transformation.
-
-
-
Method Detail
-
get
public static NNFTransformation get()
Returns the singleton of this transformation.- Returns:
- the transformation instance
-
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
-
-