|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Location | |
---|---|
jason.environment.grid |
Uses of Location in jason.environment.grid |
---|
Fields in jason.environment.grid declared as Location | |
---|---|
protected Location[] |
GridWorldModel.agPos
|
Location |
Area.br
|
Location |
Area.tl
|
Methods in jason.environment.grid that return Location | |
---|---|
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 location |
Methods in jason.environment.grid with parameters of type Location | |
---|---|
void |
GridWorldModel.add(int value,
Location l)
|
int |
Area.chebyshevDistanceToBorder(Location l)
returns the minimal distance from l to the border of the area |
boolean |
Area.contains(Location l)
|
int |
Location.distance(Location l)
calculates the Manhattan distance between two points |
int |
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 points |
int |
Location.distanceManhattan(Location l)
calculates the Manhattan distance between two points |
int |
Area.distanceMaxBorder(Location l)
Deprecated. renamed to chebyshevDistanceToBorder |
int |
GridWorldModel.getAgAtPos(Location l)
returns the agent at location l or -1 if there is not one there |
boolean |
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 obj |
boolean |
GridWorldModel.isFree(Location l)
returns true if the location l has no obstacle neither agent |
boolean |
GridWorldModel.isFreeOfObstacle(Location l)
|
boolean |
Location.isInArea(Location tl,
Location br)
|
boolean |
Location.isNeigbour(Location l)
|
int |
Location.maxBorder(Location l)
Deprecated. renamed to distanceChessboard |
void |
GridWorldModel.remove(int value,
Location l)
|
void |
GridWorldModel.setAgPos(int ag,
Location l)
|
Constructors in jason.environment.grid with parameters of type Location | |
---|---|
Area(Location topLeft,
Location bottonRight)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |