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

java.lang.Object
  extended by edu.columbia.cs.coms4701.agent.observer.GUIEnvironmentObserver<K,P,A,J>
      extended by edu.columbia.cs.coms4701.agent.environments.grid.GridEnvironmentObserver<RobotAction,RobotPercept,RobotAgent,RoombaGridCell,GridPanel<RoombaGridCell>>
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.columbia.cs.coms4701.agent.observer.GUIEnvironmentObserver
GUIEnvironmentObserver.PlayingMode
 
Field Summary
 
Fields inherited from class edu.columbia.cs.coms4701.agent.observer.GUIEnvironmentObserver
delay, delay_default, delay_max, delay_r, frame, playingMode, x_0
 
Constructor Summary
RoombaEnvironmentObserver()
          Constructs a new GUIEnvironmentObserver, which can then be attached to a (single!) Environment to track progress.
 
Method Summary
 GridPanel<RoombaGridCell> generateEnvironmentPanel()
          Generates a new instance of the environment panel for this observer.
 void propertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
           
 
Methods inherited from class edu.columbia.cs.coms4701.agent.environments.grid.GridEnvironmentObserver
environmentObjectAdded
 
Methods inherited from class edu.columbia.cs.coms4701.agent.observer.GUIEnvironmentObserver
agentAdded, agentChoseAction, agentReceivedPercepts, delayForSetting, environmentBeganRunning, environmentStoppedRunning, playingStateChanged, stateChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoombaEnvironmentObserver

public RoombaEnvironmentObserver()
Constructs a new GUIEnvironmentObserver, which can then be attached to a (single!) Environment to track progress.

Method Detail

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>>