aima.gui.framework
Class SimpleAgentAppDemo

java.lang.Object
  extended by aima.gui.framework.SimpleAgentAppDemo
Direct Known Subclasses:
RoutePlanningAgentAppDemo, VacuumAppDemo

public class SimpleAgentAppDemo
extends java.lang.Object

In this framework a graphical agent application consists of at least three parts: An AgentAppModel, an AgentAppFrame, and an AgentAppController. This class demonstrates, how this three parts are plugged together. The easiest way to create a new graphical agent application is to create subclasses of the three parts as needed, and then to subclass this class and override the three factory methods.


Constructor Summary
SimpleAgentAppDemo()
           
 
Method Summary
 AgentAppController createController()
          Factory method, responsible for creating the controller.
 AgentAppFrame createFrame()
          Factory method, responsible for creating the frame.
 AgentAppModel createModel()
          Factory method, responsible for creating the model.
static void main(java.lang.String[] args)
          Starts a simple test frame application.
 void startApplication()
          Creates an agent application, makes the parts know each other, and finally sets the frame visible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleAgentAppDemo

public SimpleAgentAppDemo()
Method Detail

startApplication

public void startApplication()
Creates an agent application, makes the parts know each other, and finally sets the frame visible.


createModel

public AgentAppModel createModel()
Factory method, responsible for creating the model.


createFrame

public AgentAppFrame createFrame()
Factory method, responsible for creating the frame. This implementation shows how the AgentAppFrame can be configured with respect to the needs of the application even without creating a subclass.


createController

public AgentAppController createController()
Factory method, responsible for creating the controller.


main

public static void main(java.lang.String[] args)
Starts a simple test frame application.