Module logicng

Class Dnnf


  • public final class Dnnf
    extends Object
    A DNNF - Decomposable Negation Normal Form.
    Since:
    2.0.0
    Version:
    2.0.0
    • Constructor Detail

      • Dnnf

        public Dnnf​(SortedSet<Variable> originalVariables,
                    Formula dnnf)
        Constructs a new DNNF.
        Parameters:
        originalVariables - the set of original variables
        dnnf - the formula of the DNNF
    • Method Detail

      • execute

        public <RESULT> RESULT execute​(DnnfFunction<RESULT> function)
        Executes a given DNNF function on this DNNF.
        Type Parameters:
        RESULT - the result type
        Parameters:
        function - the function
        Returns:
        the result of the function application
      • formula

        public Formula formula()
        Returns the formula of the DNNF.
        Returns:
        the formula
      • getOriginalVariables

        public SortedSet<Variable> getOriginalVariables()
        Returns the original variables of the formula
        Returns:
        the original variables