|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectLocation
public class Location
A node in the network.
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 |
---|
public Location(int x, int y)
x
- row number - from 1 to 30y
- column number - from 1 to 20Method Detail |
---|
public int getX()
public int getY()
public void setX(int x)
x
- Row numberpublic void setY(int y)
y
- Column number
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |