|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Agent<K extends AgentAction,P extends AgentPercept>
An Agent is an EnvironmentObject that can receive percepts and affect the environment via actions. Agents contain an AgentProgram, which is the object that receives sets of percepts and chooses actions.
Method Summary | |
---|---|
AgentProgram<K,P> |
getAgentProgram()
Returns the agent program for this agent |
java.lang.String |
getAuthor()
Wrapper method to fetch the author (as a UNI) of the agent program. |
java.lang.String |
getDescription()
Wrapper method to fetch a description of the the agent program. |
java.lang.Double |
getPerformanceMeasure()
Returns the performance measure for this agent. |
K |
nextAction(java.util.Set<P> thePercepts)
Wrapper method to fetch the next AgentAction from the AgentProgram, given a set of AgentPercepts |
void |
setAgentProgram(AgentProgram<K,P> theProgram)
Sets the agent program for this agent. |
void |
setPerformanceMeasure(java.lang.Double theMeasure)
Sets the performance measure for this agent. |
Methods inherited from interface edu.columbia.cs.coms4701.agent.EnvironmentObject |
---|
addPropertyChangeListener, isAlive, removePropertyChangeListener, setAlive |
Method Detail |
---|
K nextAction(java.util.Set<P> thePercepts)
thePercepts
- the percepts from the Environment
AgentProgram#nextAction(java.util.Set)
void setAgentProgram(AgentProgram<K,P> theProgram)
theProgram
- AgentProgram<K,P> getAgentProgram()
java.lang.Double getPerformanceMeasure()
void setPerformanceMeasure(java.lang.Double theMeasure)
theMeasure
- new performance measure.java.lang.String getAuthor()
AgentProgram.getAuthor()
java.lang.String getDescription()
AgentProgram.getDescription()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |