Name | Last modified | Size | Description | |
---|---|---|---|---|
Parent Directory | - | |||
tmp | 2001-01-01 18:19 | 5.9K | ||
Wall.java | 2001-01-01 18:19 | 76 | ||
Wall.class | 2001-01-01 18:19 | 269 | ||
VacuumPercept.java | 2001-01-01 18:19 | 389 | ||
VacuumPercept.class | 2001-01-01 18:19 | 743 | ||
VacuumEnvironment.java | 2001-01-01 18:19 | 2.3K | ||
VacuumEnvironment.class | 2001-01-01 18:19 | 3.0K | ||
VacuumEnvironment$1...> | 2001-01-01 18:19 | 943 | ||
UnaryPredicate.java | 2001-01-01 18:19 | 96 | ||
UnaryPredicate.class | 2001-01-01 18:19 | 234 | ||
Thing.java | 2001-01-01 18:19 | 913 | ||
Thing.class | 2001-01-01 18:19 | 1.5K | ||
Percept.java | 2001-01-01 18:19 | 260 | ||
Percept.class | 2001-01-01 18:19 | 178 | ||
PACKAGE | 2001-01-01 18:19 | 12 | ||
Obstacle.java | 2001-01-01 18:19 | 50 | ||
Obstacle.class | 2001-01-01 18:19 | 180 | ||
Makefile | 2001-01-01 18:19 | 1.4K | ||
GridFrame.java | 2001-01-01 18:19 | 8.4K | ||
GridFrame.class | 2001-01-01 18:19 | 2.4K | ||
GridFrame$4.class | 2001-01-01 18:19 | 666 | ||
GridFrame$3.class | 2001-01-01 18:19 | 625 | ||
GridFrame$2.class | 2001-01-01 18:19 | 693 | ||
GridFrame$1.class | 2001-01-01 18:19 | 586 | ||
GridEnvironment.java | 2001-01-01 18:19 | 5.1K | ||
GridEnvironment.class | 2001-01-01 18:19 | 5.2K | ||
GridDisplay.class | 2001-01-01 18:19 | 3.4K | ||
GridComponent.java | 2001-01-01 18:19 | 2.3K | ||
GridComponent.class | 2001-01-01 18:19 | 3.0K | ||
GridApplet.java | 2001-01-01 18:19 | 2.1K | ||
GridApplet.class | 2001-01-01 18:19 | 1.7K | ||
GridApplet$1.class | 2001-01-01 18:19 | 1.3K | ||
Grid.html | 2001-01-01 18:19 | 450 | ||
Environment.java | 2001-01-01 18:19 | 2.5K | ||
Environment.html | 2001-01-01 18:19 | 145 | ||
Environment.class | 2001-01-01 18:19 | 2.8K | ||
Dirt.java | 2001-01-01 18:19 | 56 | ||
Dirt.class | 2001-01-01 18:19 | 241 | ||
AnAction.java | 2001-01-01 18:19 | 532 | ||
AnAction.class | 2001-01-01 18:19 | 1.0K | ||
AgentThing.java | 2001-01-01 18:19 | 924 | ||
AgentThing.class | 2001-01-01 18:19 | 1.2K | ||
AgentProgram.java | 2001-01-01 18:19 | 165 | ||
AgentProgram.class | 2001-01-01 18:19 | 252 | ||
AgentManager.java | 2001-01-01 18:19 | 446 | ||
AgentManager.class | 2001-01-01 18:19 | 470 | ||
Agent.java | 2001-01-01 18:19 | 413 | ||
Agent.class | 2001-01-01 18:19 | 463 | ||
Action.java | 2001-01-01 18:19 | 305 | ||
Action.class | 2001-01-01 18:19 | 257 | ||
AIMA.java | 2001-01-01 18:19 | 797 | ||
AIMA.class | 2001-01-01 18:19 | 1.2K | ||
Agent | Action | Environment |
AgentBody | Percept | EnvironmentGUI |
AgentProgram | EnvironmentEvent | EnvironmentEventAdapter |
We will look at the classes one at a time. But first, let's take a peek at what you need to do to build two different things:
A New Environment:You need to do the following:
|
A New Agent ProgramOnce the environment is in place, this is easy. Make a subclass of AgentProgram (either with an explicit class or an anonymous inner class), and supply an algorithm for computing an action to take. You can determine what actions are legal by looking at the EnvironmentAdapter for this environment. You can then test out your new agent program by calling Environment.run(). |
Now for the classes: