aima.search.map
Class MapAgent

java.lang.Object
  extended by aima.basic.ObjectWithDynamicAttributes
      extended by aima.basic.Agent
          extended by aima.search.framework.SimpleProblemSolvingAgent
              extended by aima.search.map.MapAgent

public class MapAgent
extends SimpleProblemSolvingAgent


Field Summary
 
Fields inherited from class aima.basic.Agent
enviromentSpecificAttributes, isAlive, NO_OP, program
 
Constructor Summary
MapAgent(MapEnvironment mapEnvironment, Search search)
           
MapAgent(MapEnvironment mapEnvironment, Search search, int maxGoalsToFormulate)
           
MapAgent(MapEnvironment mapEnvironment, Search search, java.lang.String[] goalTests)
           
 
Method Summary
protected  java.lang.Object formulateGoal()
           
protected  Problem formulateProblem(java.lang.Object goal)
           
 HeuristicFunction getHeuristicFunction()
           
protected  void notifyViewOfMetrics()
           
protected  java.util.List<java.lang.String> search(Problem problem)
           
 void setHeuristicFunction(HeuristicFunction heuristicFunction)
           
protected  java.lang.Object updateState(Percept p)
           
 
Methods inherited from class aima.search.framework.SimpleProblemSolvingAgent
execute
 
Methods inherited from class aima.basic.Agent
die, isAlive, live
 
Methods inherited from class aima.basic.ObjectWithDynamicAttributes
getAttribute, getSortedAttributeKeys, removeAttribute, setAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapAgent

public MapAgent(MapEnvironment mapEnvironment,
                Search search)

MapAgent

public MapAgent(MapEnvironment mapEnvironment,
                Search search,
                int maxGoalsToFormulate)

MapAgent

public MapAgent(MapEnvironment mapEnvironment,
                Search search,
                java.lang.String[] goalTests)
Method Detail

getHeuristicFunction

public HeuristicFunction getHeuristicFunction()

setHeuristicFunction

public void setHeuristicFunction(HeuristicFunction heuristicFunction)

updateState

protected java.lang.Object updateState(Percept p)
Specified by:
updateState in class SimpleProblemSolvingAgent

formulateGoal

protected java.lang.Object formulateGoal()
Specified by:
formulateGoal in class SimpleProblemSolvingAgent

formulateProblem

protected Problem formulateProblem(java.lang.Object goal)
Specified by:
formulateProblem in class SimpleProblemSolvingAgent

search

protected java.util.List<java.lang.String> search(Problem problem)
Specified by:
search in class SimpleProblemSolvingAgent

notifyViewOfMetrics

protected void notifyViewOfMetrics()
Specified by:
notifyViewOfMetrics in class SimpleProblemSolvingAgent