aima.gui.applications
Class VacuumAppDemo.VacuumController

java.lang.Object
  extended by aima.gui.framework.AgentAppController
      extended by aima.gui.applications.VacuumAppDemo.VacuumController
All Implemented Interfaces:
AgentAppFrame.Controller
Enclosing class:
VacuumAppDemo

protected static class VacuumAppDemo.VacuumController
extends AgentAppController

Defines how to react on user button events.


Field Summary
 
Fields inherited from class aima.gui.framework.AgentAppController
frame, model
 
Constructor Summary
protected VacuumAppDemo.VacuumController()
           
 
Method Summary
 void clearAgent()
          Does nothing.
 void prepareAgent()
          Creates a vacuum agent and a corresponding environment based on the selection state of the selectors and finally updates the model.
 void runAgent()
          Starts the agent and afterwards updates the status of the frame.
 
Methods inherited from class aima.gui.framework.AgentAppController
setFrame, setModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VacuumAppDemo.VacuumController

protected VacuumAppDemo.VacuumController()
Method Detail

clearAgent

public void clearAgent()
Does nothing.

Specified by:
clearAgent in interface AgentAppFrame.Controller
Overrides:
clearAgent in class AgentAppController

prepareAgent

public void prepareAgent()
Creates a vacuum agent and a corresponding environment based on the selection state of the selectors and finally updates the model.

Specified by:
prepareAgent in interface AgentAppFrame.Controller
Overrides:
prepareAgent in class AgentAppController

runAgent

public void runAgent()
Starts the agent and afterwards updates the status of the frame.

Specified by:
runAgent in interface AgentAppFrame.Controller
Overrides:
runAgent in class AgentAppController