Uses of Class
jason.environment.grid.Location
Package | Description |
---|---|
jason.environment.grid |
-
Uses of Location in jason.environment.grid
Fields in jason.environment.grid declared as Location Modifier and Type Field Description protected Location[]
GridWorldModel. agPos
Location
Area. br
Location
Area. tl
Methods in jason.environment.grid that return Location Modifier and Type Method Description Location
Area. center()
Location
GridWorldModel. getAgPos(int ag)
protected Location
GridWorldModel. getFreePos()
returns a random free location using isFree to test the availability of some possible location (it means free of agents and obstacles)protected Location
GridWorldModel. getFreePos(int obj)
returns a random free location using isFree(object) to test the availability of some possible locationMethods in jason.environment.grid with parameters of type Location Modifier and Type Method Description void
GridWorldModel. add(int value, Location l)
int
Area. chebyshevDistanceToBorder(Location l)
returns the minimal distance from l to the border of the areaboolean
Area. contains(Location l)
int
Location. distance(Location l)
calculates the Manhattan distance between two pointsint
Location. distanceChebyshev(Location l)
returns the chessboard king (or Chebyshev) distance between two locations : max( |this.x - l.x| , |this.y - l.y|)double
Location. distanceEuclidean(Location l)
calculates the Euclidean distance between two pointsint
Location. distanceManhattan(Location l)
calculates the Manhattan distance between two pointsint
Area. distanceMaxBorder(Location l)
Deprecated.renamed to chebyshevDistanceToBorderint
GridWorldModel. getAgAtPos(Location l)
returns the agent at location l or -1 if there is not one thereboolean
GridWorldModel. hasObject(int obj, Location l)
boolean
GridWorldModel. inGrid(Location l)
boolean
GridWorldModel. isFree(int obj, Location l)
returns true if the location l has not the object objboolean
GridWorldModel. isFree(Location l)
returns true if the location l has no obstacle neither agentboolean
GridWorldModel. isFreeOfObstacle(Location l)
boolean
Location. isInArea(Location tl, Location br)
boolean
Location. isNeigbour(Location l)
int
Location. maxBorder(Location l)
Deprecated.renamed to distanceChessboardvoid
GridWorldModel. remove(int value, Location l)
void
GridWorldModel. setAgPos(int ag, Location l)
Constructors in jason.environment.grid with parameters of type Location Constructor Description Area(Location topLeft, Location bottonRight)