Class Vertex
- java.lang.Object
-
- ptolemy.domains.atc.kernel.policy2.Vertex
-
public class Vertex extends java.lang.Object
Nodes of a graph in DijkstraAlgorithm.- Since:
- Ptolemy II 11.0
- Version:
- $Id$
- Author:
- Maryam Bagheri
-
-
Constructor Summary
Constructors Constructor Description Vertex(int id)
Instantiate a Vertex with an id.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Return true if this object is equal to the argument of of this method.int
getId()
Get the id.int
hashCode()
Return the hashcode.
-
-
-
Method Detail
-
getId
public int getId()
Get the id.- Returns:
- The id.
-
hashCode
public int hashCode()
Return the hashcode.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- The hashcode
-
equals
public boolean equals(java.lang.Object obj)
Return true if this object is equal to the argument of of this method.- Overrides:
equals
in classjava.lang.Object
- Parameters:
obj
- The object to which to compare- Returns:
- true if the objects have the save values.
-
-