aima.gui.applications.search.map
Class RoutePlanningAgentAppDemo.RoutePlanningAgentController

java.lang.Object
  extended by aima.gui.framework.AgentAppController
      extended by aima.gui.applications.search.map.AbstractMapAgentController
          extended by aima.gui.applications.search.map.RoutePlanningAgentAppDemo.RoutePlanningAgentController
All Implemented Interfaces:
AgentAppFrame.Controller
Enclosing class:
RoutePlanningAgentAppDemo

protected static class RoutePlanningAgentAppDemo.RoutePlanningAgentController
extends AbstractMapAgentController

Controller for a graphical route planning agent application.


Field Summary
 
Fields inherited from class aima.gui.applications.search.map.AbstractMapAgentController
destinations, heuristic, scenario, search
 
Fields inherited from class aima.gui.framework.AgentAppController
frame, model
 
Constructor Summary
protected RoutePlanningAgentAppDemo.RoutePlanningAgentController()
           
 
Method Summary
protected  AdaptableHeuristicFunction createHeuristic(int heuIdx)
          Returns the trivial zero function or a simple heuristic which is based on straight-line distance computation.
protected  void prepareModel()
          Prepares the model for the previously specified scenario and destinations.
protected  void selectScenarioAndDest(int scenarioIdx, int destIdx)
          Configures a scenario and a list of destinations.
protected  void startAgent()
          Creates environment and agent, starts the agent and initiates some text outputs describing the state of the agent.
 
Methods inherited from class aima.gui.applications.search.map.AbstractMapAgentController
clearAgent, prepareAgent, runAgent
 
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

RoutePlanningAgentAppDemo.RoutePlanningAgentController

protected RoutePlanningAgentAppDemo.RoutePlanningAgentController()
Method Detail

selectScenarioAndDest

protected void selectScenarioAndDest(int scenarioIdx,
                                     int destIdx)
Configures a scenario and a list of destinations. Note that for route planning problems, the size of the list needs to be 1.

Specified by:
selectScenarioAndDest in class AbstractMapAgentController

prepareModel

protected void prepareModel()
Prepares the model for the previously specified scenario and destinations.

Specified by:
prepareModel in class AbstractMapAgentController

createHeuristic

protected AdaptableHeuristicFunction createHeuristic(int heuIdx)
Returns the trivial zero function or a simple heuristic which is based on straight-line distance computation.

Specified by:
createHeuristic in class AbstractMapAgentController

startAgent

protected void startAgent()
Creates environment and agent, starts the agent and initiates some text outputs describing the state of the agent.

Specified by:
startAgent in class AbstractMapAgentController