ai.worlds.wumpus
Class WumpusAgent

java.lang.Object
  extended byai.worlds.Agent
      extended byai.worlds.wumpus.WumpusAgent
Direct Known Subclasses:
AimlessWumpusAgent, LogicTestingAgent, RandomWumpusAgent

public abstract class WumpusAgent
extends Agent

A generic wumpus agent.

Author:
Jill Zimmerman -- jill.zimmerman@goucher.edu

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

logic

public WumpusLogic logic
The logic unit of the agent.

Constructor Detail

WumpusAgent

public WumpusAgent()
Method Detail

climb

public void climb(WumpusWorld ww)
Climb out of the cave.

Parameters:
ww - is the wumpus world environment

shoot

public void shoot(WumpusWorld ww)
Shoor the arrow.

Parameters:
ww - is the wumpus world environment

takeAction

public void takeAction(Environment e)
Perfom the current action.

Specified by:
takeAction in class Agent
Parameters:
e - is the environment the agent is within