|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectai.worlds.Agent
ai.worlds.wumpus.WumpusAgent
A generic wumpus agent.
| Field Summary | |
WumpusLogic |
logic
The logic unit of the agent. |
| Fields inherited from class ai.worlds.Agent |
action, body, percept, score |
| Constructor Summary | |
WumpusAgent()
|
|
| Method Summary | |
void |
climb(WumpusWorld ww)
Climb out of the cave. |
void |
shoot(WumpusWorld ww)
Shoor the arrow. |
void |
takeAction(Environment e)
Perfom the current action. |
| Methods inherited from class ai.worlds.Agent |
determineAction |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public WumpusLogic logic
| Constructor Detail |
public WumpusAgent()
| Method Detail |
public void climb(WumpusWorld ww)
ww - is the wumpus world environmentpublic void shoot(WumpusWorld ww)
ww - is the wumpus world environmentpublic void takeAction(Environment e)
takeAction in class Agente - is the environment the agent is within
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||