|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object aima.gui.framework.SimpleAgentAppDemo
public class SimpleAgentAppDemo
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 |
---|
public SimpleAgentAppDemo()
Method Detail |
---|
public void startApplication()
public AgentAppModel createModel()
public AgentAppFrame createFrame()
AgentAppFrame
can be
configured with respect to the needs of the application
even without creating a subclass.
public AgentAppController createController()
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |