All Packages  This Package  Class Hierarchy  Class Search  Index

Class aima.agents.Environment

java.lang.Object
   |
   +----aima.agents.Environment

The basic environment: the world in which agents and other things exist.


public abstract class  Environment
     extends java.lang.Object
{
          // Methods 5
     public void execute(Agent, Action);
     public void p(Object);
     public float performanceMeasure(Agent);
     public Environment run(int);
     public String toString();
}



Methods


p

   public void p(Object x) 


run

   public Environment run(int numSteps) 

Run the environment for numSteps time steps.



execute

   public void execute(Agent agent, 
                       Action action) 

Execute the action chosen by the agent. Normally, an Environment designer would override this method in the new Environment class, and call super if the action can't be handled.



performanceMeasure

   public float performanceMeasure(Agent agent) 

Measure how well the agent is doing.



toString

   public String toString() 
Overrides:
toString in class Object


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4