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

    Fields
    Modifier and Type Field Description
    Location br  
    Location tl  
  • Constructor Summary

    Constructors
    Constructor Description
    Area​(int topLeftX, int topLeftY, int bottonRightX, int bottonRightY)  
    Area​(Location topLeft, Location bottonRight)  
  • Method Summary

    Modifier and Type Method Description
    Location center()  
    int chebyshevDistanceToBorder​(Location l)
    returns the minimal distance from l to the border of the area
    java.lang.Object clone()  
    boolean contains​(Location l)  
    int distanceMaxBorder​(Location l)
    Deprecated.
    renamed to chebyshevDistanceToBorder
    boolean 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

  • Constructor Details

    • Area

      public Area​(int topLeftX, int topLeftY, int bottonRightX, int bottonRightY)
    • Area

      public Area​(Location topLeft, Location bottonRight)
  • Method Details

    • contains

      public boolean contains​(Location l)
    • center

      public Location center()
    • distanceMaxBorder

      @Deprecated public int distanceMaxBorder​(Location l)
      Deprecated.
      renamed to chebyshevDistanceToBorder
    • chebyshevDistanceToBorder

      public int chebyshevDistanceToBorder​(Location l)
      returns the minimal distance from l to the border of the area
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • clone

      public java.lang.Object clone()
      Overrides:
      clone in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object