|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AgentProgram<K extends AgentAction,P extends AgentPercept>
An AgentProgram is the exciting bit -- it receives percepts from the environment, and emits actions.
AgentPrograms should supply a no-parameter constructor.
Method Summary | |
---|---|
java.lang.String |
getAuthor()
Should return the UNI of the author of the program. |
java.lang.String |
getDescription()
Should return a short description of the program, used to distinguish different agent agentprograms by the same author. |
K |
nextAction(java.util.Set<P> thePercepts)
The essence of agent AI: Given a set of percepts, chooses an action. |
Method Detail |
---|
K nextAction(java.util.Set<P> thePercepts)
thePercepts
- set of percepts from the environment
java.lang.String getAuthor()
java.lang.String getDescription()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |