Class NoLayerDecisionDiagram.Edge<T>
java.lang.Object
org.ddolib.nolayer.solving.ddo.core.mdd.NoLayerDecisionDiagram.Edge<T>
- Type Parameters:
T- the type of the states of the connected nodes
- Enclosing class:
NoLayerDecisionDiagram<T>
An edge of a
NoLayerDecisionDiagram, representing the application of a label from an
origin node to a destination node.-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal doubleThe cost of this edge.The node this edge leads to.final intThe label applied along this edge.The node this edge originates from. -
Constructor Summary
ConstructorsConstructorDescriptionEdge(NoLayerDecisionDiagram.Node<T> origin, NoLayerDecisionDiagram.Node<T> destination, int label, double cost) Creates a new edge between the given nodes. -
Method Summary
-
Field Details
-
label
public final int labelThe label applied along this edge. -
cost
public final double costThe cost of this edge. -
origin
The node this edge originates from. -
destination
The node this edge leads to.
-
-
Constructor Details
-
Edge
public Edge(NoLayerDecisionDiagram.Node<T> origin, NoLayerDecisionDiagram.Node<T> destination, int label, double cost) Creates a new edge between the given nodes.- Parameters:
origin- the node this edge originates fromdestination- the node this edge leads tolabel- the label applied along this edgecost- the cost of this edge
-