aima.gui.applications
Class VacuumAppDemo

java.lang.Object
  extended by aima.gui.framework.SimpleAgentAppDemo
      extended by aima.gui.applications.VacuumAppDemo

public class VacuumAppDemo
extends SimpleAgentAppDemo

Simple graphical application for experiments with vacuum cleaner agents. It can be used as a template for creating other graphical agent applications.


Nested Class Summary
protected static class VacuumAppDemo.VacuumController
          Defines how to react on user button events.
protected static class VacuumAppDemo.VacuumFrame
          Adds some selectors to the base class and adjusts its size.
protected static class VacuumAppDemo.VacuumModel
          Provides access to the used environment, the names of the locations (squares) maintained by the environment, and the current state of all locations.
protected static class VacuumAppDemo.VacuumView
          Displays the informations provided by the VacuumModel on a panel using 2D-graphics.
 
Constructor Summary
VacuumAppDemo()
           
 
Method Summary
 AgentAppController createController()
          Returns a VacuumController.
 AgentAppFrame createFrame()
          Returns a VacuumFrame.
 AgentAppModel createModel()
          Returns a VacuumModel.
static void main(java.lang.String[] args)
          Starts the application.
 
Methods inherited from class aima.gui.framework.SimpleAgentAppDemo
startApplication
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VacuumAppDemo

public VacuumAppDemo()
Method Detail

createModel

public AgentAppModel createModel()
Returns a VacuumModel.

Overrides:
createModel in class SimpleAgentAppDemo

createFrame

public AgentAppFrame createFrame()
Returns a VacuumFrame.

Overrides:
createFrame in class SimpleAgentAppDemo

createController

public AgentAppController createController()
Returns a VacuumController.

Overrides:
createController in class SimpleAgentAppDemo

main

public static void main(java.lang.String[] args)
Starts the application.