Class NoLayerDecisionDiagram.Node<T>

java.lang.Object
org.ddolib.nolayer.solving.ddo.core.mdd.NoLayerDecisionDiagram.Node<T>
Type Parameters:
T - the type of the state associated with the node
Enclosing class:
NoLayerDecisionDiagram<T>

public static class NoLayerDecisionDiagram.Node<T> extends Object
A node of a NoLayerDecisionDiagram, associating a problem state with its incoming/outgoing edges and the bounds computed during compilation.
  • Field Details

    • state

      public final T state
      The state associated with this node.
    • outEdges

      public final List<NoLayerDecisionDiagram.Edge<T>> outEdges
      The edges going out of this node.
    • inEdges

      public final List<NoLayerDecisionDiagram.Edge<T>> inEdges
      The edges coming into this node.
    • layer

      public int layer
      The depth at which this node was created.
    • bound

      public double bound
      The value of the best path from the root to this node.
    • backwardBound

      public double backwardBound
      The value of the best path from this node to a target node.
    • isExact

      public boolean isExact
      Whether this node still represents an exact state (not merged/restricted away).
    • bestParentEdge

      public NoLayerDecisionDiagram.Edge<T> bestParentEdge
      The edge of the best path from the root to this node.
  • Constructor Details

    • Node

      public Node(T state)
      Creates a new node wrapping the given state.
      Parameters:
      state - the state associated with this node
  • Method Details

    • isSink

      public boolean isSink(Problem<T> problem)
      Indicates whether this node's state is a target state of the given problem.
      Parameters:
      problem - the problem against which the state is checked
      Returns:
      true if this node's state is a target state, false otherwise