Package jadex.bdi.puzzle
Class Position
java.lang.Object
jadex.bdi.puzzle.Position
- All Implemented Interfaces:
Serializable
A position has two coordinates.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
x
protected int xThe x position. -
y
protected int yThe y position.
-
-
Constructor Details
-
Position
public Position()Create a position. -
Position
public Position(int x, int y) Create a position.
-
-
Method Details
-
getX
public int getX()Get the x value. -
getY
public int getY()Get the y value. -
setX
public void setX(int x) Set x.- Parameters:
x
-
-
setY
public void setY(int y) Set y.- Parameters:
y
-
-
equals
Test if two positions are equal. -
hashCode
public int hashCode()Calculate the hash code. -
toString
Get the string representation.
-