Module logicng

Class BDDConstant

  • All Implemented Interfaces:
    BDDNode

    public final class BDDConstant
    extends Object
    implements BDDNode
    A terminal node in a BDD.
    Since:
    1.4.0
    Version:
    1.4.0
    • Method Detail

      • getFalsumNode

        public static BDDConstant getFalsumNode​(FormulaFactory f)
        Returns the terminal 0 node.
        Parameters:
        f - the formula factory
        Returns:
        the terminal 0 node
      • getVerumNode

        public static BDDConstant getVerumNode​(FormulaFactory f)
        Returns the terminal 1 node.
        Parameters:
        f - the formula factory
        Returns:
        the terminal 1 node
      • label

        public Formula label()
        Description copied from interface: BDDNode
        Returns the label of the node. This can either be a variable or a constant.
        Specified by:
        label in interface BDDNode
        Returns:
        the label of the node
      • isInnerNode

        public boolean isInnerNode()
        Description copied from interface: BDDNode
        Returns true if this node is an inner node, false if it is a terminal node.
        Specified by:
        isInnerNode in interface BDDNode
        Returns:
        true if this node is an inner node, false if it is a terminal node
      • low

        public BDDNode low()
        Description copied from interface: BDDNode
        Returns the node of the low edge or null for a terminal node.
        Specified by:
        low in interface BDDNode
        Returns:
        the node of the low edge
      • high

        public BDDNode high()
        Description copied from interface: BDDNode
        Returns the node of the high edge or null for a terminal node.
        Specified by:
        high in interface BDDNode
        Returns:
        the node of the high edge
      • nodes

        public Set<BDDNode> nodes()
        Description copied from interface: BDDNode
        Returns all nodes of the sub-BDD starting at this node.
        Specified by:
        nodes in interface BDDNode
        Returns:
        all nodes of the sub-BDD starting at this node
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object