aima.search.framework
Class SimpleProblemSolvingAgent

java.lang.Object
  extended by aima.basic.ObjectWithDynamicAttributes
      extended by aima.basic.Agent
          extended by aima.search.framework.SimpleProblemSolvingAgent
Direct Known Subclasses:
MapAgent

public abstract class SimpleProblemSolvingAgent
extends Agent


Field Summary
 
Fields inherited from class aima.basic.Agent
enviromentSpecificAttributes, isAlive, NO_OP, program
 
Constructor Summary
SimpleProblemSolvingAgent()
           
SimpleProblemSolvingAgent(int maxGoalsToFormulate)
           
 
Method Summary
 java.lang.String execute(Percept p)
           
protected abstract  java.lang.Object formulateGoal()
           
protected abstract  Problem formulateProblem(java.lang.Object goal)
           
protected abstract  void notifyViewOfMetrics()
           
protected abstract  java.util.List<java.lang.String> search(Problem problem)
           
protected abstract  java.lang.Object updateState(Percept p)
           
 
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

SimpleProblemSolvingAgent

public SimpleProblemSolvingAgent()

SimpleProblemSolvingAgent

public SimpleProblemSolvingAgent(int maxGoalsToFormulate)
Method Detail

execute

public java.lang.String execute(Percept p)
Overrides:
execute in class Agent

updateState

protected abstract java.lang.Object updateState(Percept p)

formulateGoal

protected abstract java.lang.Object formulateGoal()

formulateProblem

protected abstract Problem formulateProblem(java.lang.Object goal)

search

protected abstract java.util.List<java.lang.String> search(Problem problem)

notifyViewOfMetrics

protected abstract void notifyViewOfMetrics()