edu.columbia.cs.coms4701.agent.environments.robot
Class RoombaRoomRectanglePercept

java.lang.Object
  extended by edu.columbia.cs.coms4701.agent.environments.robot.RoombaRoomRectanglePercept
All Implemented Interfaces:
AgentPercept, RobotPercept, RobotRoomRectanglePercept

public class RoombaRoomRectanglePercept
extends java.lang.Object
implements RobotRoomRectanglePercept

/** A percept that your robot may receive, indicating the size and position of the room in a 2-d plane.

You may assume, upon receiving this percept, that the room is a rectangle.

The lower-left corner (most likely (0,0)), and size (as width and height) of the room's rectangle are available from this percept.

Version:
0.1

User: aaron Date: Aug 25, 2006 Time: 2:06:55 PM

Author:
aaron@cs

Constructor Summary
RoombaRoomRectanglePercept(DiscreteRectangle rectangle)
          Constructs a new room-rectangle percept with the given rectangle.
 
Method Summary
 DiscreteRectangle getRoomRectangle()
          Returns the position and size of the room the robot finds itself in.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RoombaRoomRectanglePercept

public RoombaRoomRectanglePercept(DiscreteRectangle rectangle)
Constructs a new room-rectangle percept with the given rectangle.

Parameters:
rectangle -
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getRoomRectangle

public DiscreteRectangle getRoomRectangle()
Returns the position and size of the room the robot finds itself in.

Specified by:
getRoomRectangle in interface RobotRoomRectanglePercept
Returns:
rectangle of the room.