Class AbstractProofDAG

  • All Implemented Interfaces:
    ProofDAG
    Direct Known Subclasses:
    ResolutionProofDAG

    public abstract class AbstractProofDAG
    extends Object
    implements ProofDAG
    A proof DAG in the proof DAG of a proof.
    Author:
    Gabriel Carpio
    • Constructor Detail

      • AbstractProofDAG

        public AbstractProofDAG()
    • Method Detail

      • addNode

        public void addNode​(ProofNode node)
        Description copied from interface: ProofDAG
        Add a node to the DAG.
        Specified by:
        addNode in interface ProofDAG
        Parameters:
        node - The node to be added to the DAG.
      • getNode

        public ProofNode getNode​(int nodeId)
        Description copied from interface: ProofDAG
        Get a node from the DAG.
        Specified by:
        getNode in interface ProofDAG
        Parameters:
        nodeId - The ID of the node.
        Returns:
        A ProofNode based on its ID.
      • addEdge

        public void addEdge​(int parentNodeId,
                            int childNodeId)
        Description copied from interface: ProofDAG
        Add an edge to the DAG.
        Specified by:
        addEdge in interface ProofDAG
        Parameters:
        parentNodeId - Predecessor
        childNodeId - Successor