Class Edge
- java.lang.Object
-
- ptolemy.domains.atc.kernel.policy2.Edge
-
public class Edge extends java.lang.Object
Edges of a graph in DijkstraAlgorithm.- Since:
- Ptolemy II 11.0
- Version:
- $Id$
- Author:
- Maryam Bagheri
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vertex
getDestination()
Get the destination.int
getId()
Get the id.Vertex
getSource()
Get the source.int
getWeight()
Get the weight.
-
-
-
Method Detail
-
getId
public int getId()
Get the id.- Returns:
- The id.
-
getDestination
public Vertex getDestination()
Get the destination.- Returns:
- The destination.
-
getSource
public Vertex getSource()
Get the source.- Returns:
- The source
-
getWeight
public int getWeight()
Get the weight.- Returns:
- the weight.
-
-