aima.basic.vaccum
Class ReflexAgentWithStateProgram

java.lang.Object
  extended by aima.basic.AgentProgram
      extended by aima.basic.vaccum.ReflexAgentWithStateProgram

public abstract class ReflexAgentWithStateProgram
extends AgentProgram


Constructor Summary
ReflexAgentWithStateProgram()
           
 
Method Summary
 java.lang.String execute(Percept percept)
           
protected abstract  void init()
          Realizations of this class should implement the init() method so that it calls the setState() and setRules() method.
protected  java.lang.String ruleAction(Rule r)
           
protected  Rule ruleMatch(ObjectWithDynamicAttributes envState, java.util.Set<Rule> rulesSet)
           
 void setRules(java.util.Set<Rule> aRuleSet)
           
 void setState(ObjectWithDynamicAttributes aState)
           
protected abstract  ObjectWithDynamicAttributes updateState(ObjectWithDynamicAttributes envState, java.lang.String anAction, Percept percept)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflexAgentWithStateProgram

public ReflexAgentWithStateProgram()
Method Detail

setState

public void setState(ObjectWithDynamicAttributes aState)

setRules

public void setRules(java.util.Set<Rule> aRuleSet)

execute

public java.lang.String execute(Percept percept)
Specified by:
execute in class AgentProgram

init

protected abstract void init()
Realizations of this class should implement the init() method so that it calls the setState() and setRules() method.


updateState

protected abstract ObjectWithDynamicAttributes updateState(ObjectWithDynamicAttributes envState,
                                                           java.lang.String anAction,
                                                           Percept percept)

ruleMatch

protected Rule ruleMatch(ObjectWithDynamicAttributes envState,
                         java.util.Set<Rule> rulesSet)

ruleAction

protected java.lang.String ruleAction(Rule r)