|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object agent.Percept pacworld.PacPercept
public class PacPercept
A percept in the package delivery world.
Constructor Summary | |
---|---|
PacPercept(PackageState state,
Agent agent)
Construct a package delivery world percept. |
Method Summary | |
---|---|
boolean |
feelBump()
Returns true if the percept reflects that the agent bumped into an obstacle as a result of its most recent action. |
VisiblePackage |
getHeldPackage()
Returns the visible package that the agent is currently holding. |
java.lang.String[] |
getMessages()
Returns an array of strings representing messages sent since the agent's last turn. |
VisibleAgent[] |
getVisAgents()
Returns an array of the visible agents. |
VisiblePackage[] |
getVisPackages()
Return an array of the visible packages. |
int |
getWorldSize()
Returns the length of the world. |
void |
printPercept()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PacPercept(PackageState state, Agent agent)
Method Detail |
---|
public boolean feelBump()
public VisiblePackage getHeldPackage()
public java.lang.String[] getMessages()
public VisibleAgent[] getVisAgents()
public VisiblePackage[] getVisPackages()
public int getWorldSize()
public void printPercept()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |