Class Port

java.lang.Object
org.graffiti.graphics.Port

public class Port
extends Object
A port comprises a name and a coordinate.
  • Constructor Summary

    Constructors
    Constructor Description
    Port​(String name, double x, double y)
    Constructor for Port.
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(Object obj)  
    String getName()
    Returns the name.
    double getX()
    Returns the x ccordinate of this port.
    double getY()
    Returns the y ccordinate of this port.
    void setName​(String name)
    Sets the name.
    void setX​(double x)
    Sets the x coordinate of this port.
    void setY​(double y)
    Sets the y ccordinate of this port.

    Methods inherited from class java.lang.Object

    getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Port

      public Port​(String name, double x, double y)
      Constructor for Port.
      Parameters:
      name - DOCUMENT ME!
      x - DOCUMENT ME!
      y - DOCUMENT ME!
  • Method Details

    • setName

      public void setName​(String name)
      Sets the name.
      Parameters:
      name - The name to set
    • getName

      public String getName()
      Returns the name.
      Returns:
      String
    • setX

      public void setX​(double x)
      Sets the x coordinate of this port.
      Parameters:
      x -
    • getX

      public double getX()
      Returns the x ccordinate of this port.
      Returns:
      double
    • setY

      public void setY​(double y)
      Sets the y ccordinate of this port.
      Parameters:
      y -
    • getY

      public double getY()
      Returns the y ccordinate of this port.
      Returns:
      double
    • equals

      public boolean equals​(Object obj)
      Overrides:
      equals in class Object
      See Also:
      Object.equals(java.lang.Object)