public class VisiblePackage
extends java.lang.Object
Constructor and Description |
---|
VisiblePackage(Package pack)
Create a new percept of a package using the package itself.
|
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 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