aima.gui.applications.search.map
Class RoutePlanningAgentAppDemo.RoutePlanningAgentController
java.lang.Object
aima.gui.framework.AgentAppController
aima.gui.applications.search.map.AbstractMapAgentController
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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RoutePlanningAgentAppDemo.RoutePlanningAgentController
protected RoutePlanningAgentAppDemo.RoutePlanningAgentController()
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