Class Location
- java.lang.Object
- 
- jadex.bdi.examples.hunterprey_classic.Location
 
- 
 public class Location extends java.lang.ObjectEditable Java class for concept Location of hunterprey ontology.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Test if two locations are equal.intgetX()Get the x of this Location.intgetY()Get the y of this Location.inthashCode()The hashcode is the 16 bit shifted x position plus the y position.voidsetX(int x)Set the x of this Location.voidsetY(int y)Set the y of this Location.
 
- 
- 
- 
Method Detail- 
getXpublic int getX() Get the x of this Location. The x-coordinate.- Returns:
- x
 
 - 
setXpublic void setX(int x) Set the x of this Location. The x-coordinate.- Parameters:
- x- the value to be set
 
 - 
getYpublic int getY() Get the y of this Location. The y-coordinate.- Returns:
- y
 
 - 
setYpublic void setY(int y) Set the y of this Location. The y-coordinate.- Parameters:
- y- the value to be set
 
 - 
equalspublic boolean equals(java.lang.Object o) Test if two locations are equal.- Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() The hashcode is the 16 bit shifted x position plus the y position.- Overrides:
- hashCodein class- java.lang.Object
- Returns:
- The hashcode.
 
 
- 
 
-