agent
Class Agent

java.lang.Object
  extended byagent.Agent

public abstract class Agent
extends java.lang.Object

An abstract software agent class. The agent must be managed by the Environment class, which calls its see() and selectAction() methods.


Constructor Summary
Agent()
           
 
Method Summary
abstract  void see(Percept p)
          Provide a Percept to the agent.
abstract  Action selectAction()
          Have the agent select its next action to perform.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Agent

public Agent()
Method Detail

see

public abstract void see(Percept p)
Provide a Percept to the agent. This function is called by the environment at the beginning of each of the agent's turn. If the agent has internal state, this method should also update it.


selectAction

public abstract Action selectAction()
Have the agent select its next action to perform. Implements the action: Per -> Ac function or the action: I -> Ac function, depending on whether or not the agent has internal state.