|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SimpleReflexAgentProgram<K extends AgentAction,P extends AgentPercept,S extends AgentState>
An agent that selects actions on the basis of the current percept only, ignoring the rest of the percept history.
Method Summary | |
---|---|
java.util.List<AgentRule<K,S>> |
getRules()
Accessor for the list of rules for this agent. |
S |
interpretInput(java.util.Set<P> percepts)
Generates an abstracted description of the current state from the set of percepts. |
K |
ruleAction(AgentRule<K,S> theRule)
Selects the action for the chosen rule. |
AgentRule<K,S> |
ruleMatch(S theState,
java.util.List<AgentRule<K,S>> rules)
Determines which rule to apply, given an abstract description of state, and an ordered list of rules. |
Methods inherited from interface edu.columbia.cs.coms4701.agent.AgentProgram |
---|
getAuthor, getDescription, nextAction |
Method Detail |
---|
S interpretInput(java.util.Set<P> percepts)
percepts
-
AgentRule<K,S> ruleMatch(S theState, java.util.List<AgentRule<K,S>> rules)
The implementation of this function should be trivial.
theState
- rules
-
K ruleAction(AgentRule<K,S> theRule)
Since each rule supplies exactly one action, this is a trivial method.
theRule
-
java.util.List<AgentRule<K,S>> getRules()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |