Module logicng

Class BDDInnerNode

  • All Implemented Interfaces:
    BDDNode

    public final class BDDInnerNode
    extends Object
    implements BDDNode
    A node in a BDD.
    Since:
    1.4.0
    Version:
    1.4.0
    • Constructor Detail

      • BDDInnerNode

        public BDDInnerNode​(Variable var,
                            BDDNode low,
                            BDDNode high)
        Constructor for a new inner BDD node holding a variable.
        Parameters:
        var - the variable
        low - the low child node
        high - the high child node
    • Method Detail

      • label

        public Variable 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