|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object agent.Agent
public abstract class Agent
An abstract software agent class. The agent must be managed by the Environment class, which calls its see() and selectAction() methods.
Method Summary | |
---|---|
java.lang.String |
getId()
Return a unique string that identifies the agent. |
abstract void |
see(Percept p)
Provide a Percept to the agent. |
abstract Action |
selectAction()
Have the agent select its next action to perform. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public abstract void see(Percept p)
public abstract Action selectAction()
public java.lang.String getId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |