Class Vertex
- java.lang.Object
-
- ptolemy.domains.atc.kernel.policy2.Vertex
-
public class Vertex extends java.lang.ObjectNodes 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 booleanequals(java.lang.Object obj)Return true if this object is equal to the argument of of this method.intgetId()Get the id.inthashCode()Return the hashcode.
-
-
-
Method Detail
-
getId
public int getId()
Get the id.- Returns:
- The id.
-
hashCode
public int hashCode()
Return the hashcode.- Overrides:
hashCodein 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:
equalsin classjava.lang.Object- Parameters:
obj- The object to which to compare- Returns:
- true if the objects have the save values.
-
-