public class VisiblePackage
extends java.lang.Object
Constructor and Description |
---|
VisiblePackage(int id,
int x,
int y,
int destX,
int destY)
Create a new percept of package given its id, (x,y) location, and destination.
|
VisiblePackage(Package pack)
Create a new percept of a package using the package itself.
|
VisiblePackage(Package pack,
int x,
int y)
Create a new percept of a package using a package, and injecting location noise.
|
VisiblePackage(Package pack,
Location noiseLoc)
Create a new percept of a package using a package, and injecting destination noise.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Tests if this object is equivalent to another object by comparing the id's of the packages.
|
int |
getDestX()
Get the X coordinate of the location to deliver the package.
|
int |
getDestY()
Get the Y coordinate of the location to deliver the package.
|
int |
getId()
Get the unique integer id for the package.
|
int |
getX()
Get the X location of the package.
|
int |
getY()
Get the Y location of the package.
|
boolean |
isHeld()
Is the package currently held by some agent?
|
java.lang.String |
toString() |
public VisiblePackage(Package pack)
public VisiblePackage(Package pack, Location noiseLoc)
public VisiblePackage(Package pack, int x, int y)
public VisiblePackage(int id, int x, int y, int destX, int destY)
public int getDestX()
public int getDestY()
public boolean isHeld()
public int getId()
public int getX()
public int getY()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object