|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectai.worlds.Agent
A generic agent. All agents must implement determineAction and takeAction methods
| Field Summary | |
java.lang.String |
action
The current action |
AgentBody |
body
The body of the agent |
java.lang.Object |
percept
The current percept |
int |
score
The current score |
| Constructor Summary | |
Agent()
|
|
| Method Summary | |
abstract void |
determineAction()
Determines the next action to be taken by the agent. |
abstract void |
takeAction(Environment e)
Perfom the current action. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public AgentBody body
public int score
public java.lang.Object percept
public java.lang.String action
| Constructor Detail |
public Agent()
| Method Detail |
public abstract void determineAction()
public abstract void takeAction(Environment e)
e - is the environment the agent is within
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||