Class 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.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Vertex

        public Vertex​(int id)
        Instantiate a Vertex with an id.
        Parameters:
        id - The id.
    • Method Detail

      • getId

        public int getId()
        Get the id.
        Returns:
        The id.
      • hashCode

        public int hashCode()
        Return the hashcode.
        Overrides:
        hashCode in class java.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 class java.lang.Object
        Parameters:
        obj - The object to which to compare
        Returns:
        true if the objects have the save values.