|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.columbia.cs.coms4701.agent.environments.robot.RoombaRoomRectanglePercept
public class RoombaRoomRectanglePercept
A percept 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.
Note that this percept also specifies the location of the room, i.e. the coordinate of the lower-left corner of the room. Ordinarily this will be (0,0).
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 |
---|
public RoombaRoomRectanglePercept(DiscreteRectangle rectangle)
rectangle
- Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public DiscreteRectangle getRoomRectangle()
getRoomRectangle
in interface RobotRoomRectanglePercept
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |