public class VacPercept extends Percept
Constructor and Description |
---|
VacPercept(VacuumState state,
Agent agent)
Construct a vacuum world percept.
|
Modifier and Type | Method and Description |
---|---|
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() |
public VacPercept(VacuumState state, Agent agent)
public boolean seeDirt()
public boolean seeObstacle()
public boolean feelBump()
public java.lang.String toString()
toString
in class java.lang.Object