All Packages  This Package  Class Hierarchy  Class Search  Index

Class aima.agents.VacuumEnvironment

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

public class  VacuumEnvironment
     extends aima.agents.GridEnvironment
{
          // Constructors 1
     public VacuumEnvironment(AgentThing[], int, int, float);

          // Methods 4
     public void execute(Agent, Action);
     public static void main(String[]);
     public float performanceMeasure(Agent);
     public Percept presentPercept(Agent);
}



Constructors


VacuumEnvironment

   public VacuumEnvironment(AgentThing[] agents, 
                            int xSize, 
                            int ySize, 
                            float probDirt) 



Methods


performanceMeasure

   public float performanceMeasure(Agent agentArg) 

Count 100 for each dirt found, 1 off for each time step, and 1000 off for not returning home.

Overrides:
performanceMeasure in class Environment


execute

   public void execute(Agent agentArg, 
                       Action action) 

Handle the "Suck" and "Shut-Off" actions, or call super

Overrides:
execute in class GridEnvironment


presentPercept

   public Percept presentPercept(Agent agentArg) 


main

   public static void main(String[] args) 


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