edu.columbia.cs.coms4701.agent.environments.robot
Class RoombaPositionPercept
java.lang.Object
edu.columbia.cs.coms4701.agent.environments.robot.RoombaPositionPercept
- All Implemented Interfaces:
- AgentPercept, RobotPercept, RobotPositionPercept
public class RoombaPositionPercept
- extends java.lang.Object
- implements RobotPositionPercept
A percept indicating to your agent program the location of
the robot in the room.
This is valuable information -- use it wisely! :)
- Version:
- 0.1
User: aaron Date: Aug 25, 2006 Time: 2:04:56 PM
- Author:
- aaron@cs
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RoombaPositionPercept
public RoombaPositionPercept(DiscretePoint2D theLocation)
- Cosntructs a new location percept for the given location.
- Parameters:
theLocation
-
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getLocation
public DiscretePoint2D getLocation()
- Returns the current position, in a 2-dimensional lattice of integers, of the robot.
- Specified by:
getLocation
in interface RobotPositionPercept
- Returns:
- location of the robot in the room, as a 2-component vector.