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>
A node of a
NoLayerDecisionDiagram, associating a problem state with its
incoming/outgoing edges and the bounds computed during compilation.-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleThe value of the best path from this node to a target node.The edge of the best path from the root to this node.doubleThe value of the best path from the root to this node.final List<NoLayerDecisionDiagram.Edge<T>> The edges coming into this node.booleanWhether this node still represents an exact state (not merged/restricted away).intThe depth at which this node was created.final List<NoLayerDecisionDiagram.Edge<T>> The edges going out of this node.final TThe state associated with this node. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
state
The state associated with this node. -
outEdges
The edges going out of this node. -
inEdges
The edges coming into this node. -
layer
public int layerThe depth at which this node was created. -
bound
public double boundThe value of the best path from the root to this node. -
backwardBound
public double backwardBoundThe value of the best path from this node to a target node. -
isExact
public boolean isExactWhether this node still represents an exact state (not merged/restricted away). -
bestParentEdge
The edge of the best path from the root to this node.
-
-
Constructor Details
-
Node
Creates a new node wrapping the given state.- Parameters:
state- the state associated with this node
-
-
Method Details
-
isSink
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:
trueif this node's state is a target state,falseotherwise
-