All Packages This Package Class Hierarchy Class Search Index
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); }
public VacuumEnvironment(AgentThing[] agents, int xSize, int ySize, float probDirt)
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
public void execute(Agent agentArg, Action action)
Handle the "Suck" and "Shut-Off" actions, or call super
- Overrides:
- execute in class GridEnvironment
public Percept presentPercept(Agent agentArg)
public static void main(String[] args)
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4