edu.columbia.cs.coms4701.agent.environments.robot
Class RoombaEnvironmentObserver
java.lang.Object
edu.columbia.cs.coms4701.agent.observer.GUIEnvironmentObserver<K,P,A,J>
edu.columbia.cs.coms4701.agent.environments.grid.GridEnvironmentObserver<RobotAction,RobotPercept,RobotAgent,RoombaGridCell,GridPanel<RoombaGridCell>>
edu.columbia.cs.coms4701.agent.environments.robot.RoombaEnvironmentObserver
- All Implemented Interfaces:
- EnvironmentObserver<RobotAction,RobotPercept,RobotAgent>, AgentAddedListener<RobotAction,RobotPercept,RobotAgent>, AgentChoseActionListener<RobotAction,RobotPercept,RobotAgent>, AgentReceivedPerceptsListener<RobotAction,RobotPercept,RobotAgent>, EnvironmentBeganRunningListener, EnvironmentObjectAddedListener, EnvironmentStoppedRunningListener, ObserverPlayingStateChangedListener, java.beans.PropertyChangeListener, java.util.EventListener, javax.swing.event.ChangeListener
public class RoombaEnvironmentObserver
- extends GridEnvironmentObserver<RobotAction,RobotPercept,RobotAgent,RoombaGridCell,GridPanel<RoombaGridCell>>
An EnvironmentObserver customized for the RoombaEnvironment.
Customized from the GridEnvironmentObserver to display icons for
dirty squares, clean squares, obstacles, and the location of the robot.
- Version:
- 0.1
User: aaron Date: Sep 8, 2006 Time: 12:43:43 PM
- Author:
- aaron@cs
Constructor Summary |
RoombaEnvironmentObserver()
Constructs a new GUIEnvironmentObserver, which can then be attached to a (single!) Environment to track progress. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RoombaEnvironmentObserver
public RoombaEnvironmentObserver()
- Constructs a new GUIEnvironmentObserver, which can then be attached to a (single!) Environment to track progress.
generateEnvironmentPanel
public GridPanel<RoombaGridCell> generateEnvironmentPanel()
- Description copied from class:
GridEnvironmentObserver
- Generates a new instance of the environment panel for this observer.
- Specified by:
generateEnvironmentPanel
in class GridEnvironmentObserver<RobotAction,RobotPercept,RobotAgent,RoombaGridCell,GridPanel<RoombaGridCell>>
- Returns:
- a new environment panel, calling constructors as necessary
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
- Specified by:
propertyChange
in interface java.beans.PropertyChangeListener
- Overrides:
propertyChange
in class GUIEnvironmentObserver<RobotAction,RobotPercept,RobotAgent,GridPanel<RoombaGridCell>>