ai.worlds.vacuum
Class VacuumAgent

java.lang.Object
  extended byai.worlds.Agent
      extended byai.worlds.vacuum.VacuumAgent
Direct Known Subclasses:
RandomVacuumAgent, ReactiveVacuumAgent

public abstract class VacuumAgent
extends Agent

A generic vacuum agent.

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

Field Summary
 java.lang.String lastAction
           
 
Fields inherited from class ai.worlds.Agent
action, body, percept, score
 
Constructor Summary
VacuumAgent()
           
 
Method Summary
 void shutOff()
          shut off the vacuum.
 void takeAction(Environment e)
          take the next 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

lastAction

public java.lang.String lastAction
Constructor Detail

VacuumAgent

public VacuumAgent()
Method Detail

shutOff

public void shutOff()
shut off the vacuum.


takeAction

public void takeAction(Environment e)
take the next action.

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