Module logicng

Class BddMapper

  • Direct Known Subclasses:
    BddEdgeStyleMapper, BddLabelMapper, BddNodeStyleMapper

    public class BddMapper
    extends Object
    An abstract super class for mappers for a graphical representation of a BDD.

    Since the BddGraphicalGenerator uses only the indices of BDD nodes, this class provides some helper methods which simplify accessing the BDD by extracting the content of the BDD nodes as constants and variables.

    Since:
    2.4.0
    Version:
    2.4.0
    • Constructor Detail

      • BddMapper

        protected BddMapper​(BDDKernel kernel)
    • Method Detail

      • variable

        protected Variable variable​(int index)
        Returns the variable for the node with the given index
        Parameters:
        index - the index
        Returns:
        the variable
      • isFalse

        protected boolean isFalse​(int index)
        Returns true if the index is the terminal node for FALSE.
        Parameters:
        index - the index
        Returns:
        whether the index is the terminal FALSE node
      • isTrue

        protected boolean isTrue​(int index)
        Returns true if the index is the terminal node for TRUE.
        Parameters:
        index - the index
        Returns:
        whether the index is the terminal TRUE node