org.graffiti.graphics
Class Port

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

public class Port
extends Object

A port comprises a name and a coordinate.


Constructor Summary
Port(String name, double x, double y)
          Constructor for Port.
 
Method Summary
 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 ccordinate of this port.
 void setY(double y)
          Sets the y ccordinate of this port.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Port

public Port(String name,
            double x,
            double y)
Constructor for Port.

Parameters:
name - DOCUMENT ME!
x - DOCUMENT ME!
y - DOCUMENT ME!
Method Detail

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 ccordinate 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)


Generated at 2012-05-30 11:00:36 PM CEST