aima.basic
Class Agent

java.lang.Object
  extended by aima.basic.ObjectWithDynamicAttributes
      extended by aima.basic.Agent
Direct Known Subclasses:
GameAgent, LRTAStarAgent, MockAgent, ModelBasedTVEVaccumAgent, OnlineDFSAgent, ReflexVaccumAgent, ReflexVaccumAgentWithState, SearchAgent, SimpleProblemSolvingAgent, SimpleReflexVaccumAgent, TableDrivenVaccumAgent

public abstract class Agent
extends ObjectWithDynamicAttributes


Field Summary
protected  java.util.Hashtable enviromentSpecificAttributes
           
protected  boolean isAlive
           
static java.lang.String NO_OP
           
protected  AgentProgram program
           
 
Constructor Summary
protected Agent()
           
  Agent(AgentProgram aProgram)
           
 
Method Summary
 void die()
           
 java.lang.String execute(Percept p)
           
 boolean isAlive()
           
 void live()
           
 
Methods inherited from class aima.basic.ObjectWithDynamicAttributes
getAttribute, getSortedAttributeKeys, removeAttribute, setAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_OP

public static final java.lang.String NO_OP
See Also:
Constant Field Values

program

protected AgentProgram program

isAlive

protected boolean isAlive

enviromentSpecificAttributes

protected java.util.Hashtable enviromentSpecificAttributes
Constructor Detail

Agent

protected Agent()

Agent

public Agent(AgentProgram aProgram)
Method Detail

execute

public java.lang.String execute(Percept p)

live

public void live()

die

public void die()

isAlive

public boolean isAlive()