|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object aima.gui.framework.AgentAppController
public class AgentAppController
Simple controller implementation which extends its base class by maintaining references to frame and model, and by simple demo implementations of the required three abstract methods.
Field Summary | |
---|---|
protected AgentAppFrame |
frame
|
protected AgentAppModel |
model
|
Constructor Summary | |
---|---|
AgentAppController()
|
Method Summary | |
---|---|
void |
clearAgent()
The associated AgentAppFrame calls this method
when the clear button is pressed. |
void |
prepareAgent()
The associated AgentAppFrame calls this method
when the prepare button is pressed, the selection state of
the selectors changes, and also when the run button is pressed
without previously performed preparation. |
void |
runAgent()
The associated AgentAppFrame calls this method
when the run button is activated. |
void |
setFrame(AgentAppFrame frame)
Gives the controller access to the frame. |
void |
setModel(AgentAppModel model)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected AgentAppFrame frame
protected AgentAppModel model
Constructor Detail |
---|
public AgentAppController()
Method Detail |
---|
public void setFrame(AgentAppFrame frame)
public void setModel(AgentAppModel model)
public void clearAgent()
AgentAppFrame
calls this method
when the clear button is pressed.
clearAgent
in interface AgentAppFrame.Controller
public void prepareAgent()
AgentAppFrame
calls this method
when the prepare button is pressed, the selection state of
the selectors changes, and also when the run button is pressed
without previously performed preparation.
prepareAgent
in interface AgentAppFrame.Controller
public void runAgent()
AgentAppFrame
calls this method
when the run button is activated. This code runs in a second
thread, which can be stopped by the GUI at any time.
runAgent
in interface AgentAppFrame.Controller
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |