Class Location

java.lang.Object
  extended by Location
All Implemented Interfaces:
java.io.Serializable

public class Location
extends java.lang.Object
implements java.io.Serializable

A node in the network.

See Also:
Serialized Form

Constructor Summary
Location(int x, int y)
          Initialize a Location
 
Method Summary
 int getX()
          Provides the row number
 int getY()
          Provides the column number
 void setX(int x)
          Sets the row number
 void setY(int y)
          Sets the column number
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Location

public Location(int x,
                int y)
Initialize a Location

Parameters:
x - row number - from 1 to 30
y - column number - from 1 to 20
Method Detail

getX

public int getX()
Provides the row number

Returns:
row number

getY

public int getY()
Provides the column number

Returns:
column number

setX

public void setX(int x)
Sets the row number

Parameters:
x - Row number

setY

public void setY(int y)
Sets the column number

Parameters:
y - Column number