|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object agent.Percept vacworld.VacPercept
public class VacPercept
A percept in the vacuum cleaning world.
Constructor Summary | |
---|---|
VacPercept(VacuumState state,
Agent agent)
Construct a vacuum 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. |
boolean |
seeDirt()
Returns true if the percept reflects that the agent is over dirt. |
boolean |
seeObstacle()
Returns true if the percept reflects that the square immediately in front of the agent contains an obstacle. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VacPercept(VacuumState state, Agent agent)
Method Detail |
---|
public boolean seeDirt()
public boolean seeObstacle()
public boolean feelBump()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |