Package jason.environment.grid
Class Area
java.lang.Object
jason.environment.grid.Area
- All Implemented Interfaces:
java.io.Serializable
public final class Area
extends java.lang.Object
implements java.io.Serializable
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Location
center()
int
chebyshevDistanceToBorder(Location l)
returns the minimal distance from l to the border of the areajava.lang.Object
clone()
boolean
contains(Location l)
int
distanceMaxBorder(Location l)
Deprecated.renamed to chebyshevDistanceToBorderboolean
equals(java.lang.Object obj)
int
hashCode()
java.lang.String
toString()
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
tl
-
br
-
-
Constructor Details
-
Area
public Area(int topLeftX, int topLeftY, int bottonRightX, int bottonRightY) -
Area
-
-
Method Details
-
contains
-
center
-
distanceMaxBorder
Deprecated.renamed to chebyshevDistanceToBorder -
chebyshevDistanceToBorder
returns the minimal distance from l to the border of the area -
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-
clone
public java.lang.Object clone()- Overrides:
clone
in classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-