aima.basic.vaccum
Class ReflexAgentWithStateProgram
java.lang.Object
aima.basic.AgentProgram
aima.basic.vaccum.ReflexAgentWithStateProgram
public abstract class ReflexAgentWithStateProgram
- extends AgentProgram
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflexAgentWithStateProgram
public ReflexAgentWithStateProgram()
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)