A B C D E F G H I M N O P R S T U V W

A

Action - class agent.Action.
A abstract class for actions in an agent environment.
Action() - Constructor for class agent.Action
 
Agent - class agent.Agent.
An abstract software agent class.
Agent() - Constructor for class agent.Agent
 
addAgent(Agent) - Method in class agent.Environment
Add a new agent to the environment.
addAgent(Agent) - Method in class vacworld.VacuumWorld
Add a new agent to the environment.
agent - package agent
 
agentDir - Variable in class vacworld.VacuumState
 
agentX - Variable in class vacworld.VacuumState
 
agentY - Variable in class vacworld.VacuumState
 
agents - Variable in class agent.Environment
The set of agents in the environment.

B

bump - Variable in class vacworld.VacuumState
True if the agent just bumped into something.
bumped() - Method in class vacworld.VacuumState
Return true if the agent bumped into an obstacle on its previous move.

C

CLEAR - Static variable in class vacworld.VacuumState
Constant representing a clear location.

D

DELTA_X - Static variable in class vacworld.Direction
An array for determining the change in X position that would correspond to a step in the direction indexed.
DELTA_Y - Static variable in class vacworld.Direction
An array for determining the change in Y position that would correspond to a step in the direction indexed.
DIRT - Static variable in class vacworld.VacuumState
Constant representing a dirty location.
DIRT_CHANCE - Static variable in class vacworld.VacuumState
 
Direction - class vacworld.Direction.
A utility class that encapsulates information about compass directions.
Direction() - Constructor for class vacworld.Direction
 
defaultMap - Static variable in class vacworld.VacuumState
 
display() - Method in class agent.State
Display information about the state.
display(PrintStream) - Method in class vacworld.VacuumState
Print an output of the state to a print stream.
display() - Method in class vacworld.VacuumState
Print an output of the state to the screen.

E

EAST - Static variable in class vacworld.Direction
 
Environment - class agent.Environment.
The top-level class for an agent simulation.
Environment() - Constructor for class agent.Environment
Construct a new environment.
execute(Agent, State) - Method in class agent.Action
Return the State of the environment that results after Agent a executes the Action in State s.
execute(Agent, State) - Method in class vacworld.GoForward
Return the state that results from the agent moving forward in the given state.
execute(Agent, State) - Method in class vacworld.ShutOff
Return the state that results from the agent shutting off in the given state.
execute(Agent, State) - Method in class vacworld.SuckDirt
Return the state that results from the agent sucking up dirt in the given state.
execute(Agent, State) - Method in class vacworld.TurnRight
Return the state that results from the agent turning right in the given state.

F

feelBump() - Method in class vacworld.VacPercept
Returns true if the percept reflects that the agent bumped into an obstacle as a result of its most recent action.

G

GoForward - class vacworld.GoForward.
A vacuum cleaning agent action that causes the agent to advance one step.
GoForward() - Constructor for class vacworld.GoForward
 
getAgentDir() - Method in class vacworld.VacuumState
Return the agent's orientation.
getAgentDirString() - Method in class vacworld.VacuumState
Return a string the represents the agent's orientation.
getAgentX() - Method in class vacworld.VacuumState
Return the agent's X position.
getAgentY() - Method in class vacworld.VacuumState
Return the agent's Y position.
getInitState() - Static method in class vacworld.VacuumState
Return the default initial state for the vacuum world.
getNumActions() - Method in class vacworld.VacuumWorld
Returns the number of actions the agent has executed.
getNumDirtyLocs() - Method in class vacworld.VacuumState
Return the number of dirty locations in the state.
getNumDirtyLocs() - Method in class vacworld.VacuumWorld
 
getPercept(Agent) - Method in class agent.Environment
Create a percept for an agent.
getPercept(Agent) - Method in class vacworld.VacuumWorld
Create a percept for an agent.
getPerformanceMeasure() - Method in class agent.Environment
Return the performance measure of the agent in the current environment.
getPerformanceMeasure() - Method in class vacworld.VacuumWorld
Returns the performance measure of the agent in the current environment.
getRandomState() - Static method in class vacworld.VacuumState
Return a random initial state for the vacuum world.
gotHome() - Method in class vacworld.VacuumWorld
Returns true if the robot has turned itself off in its origin square.

H

hasDirt(int, int) - Method in class vacworld.VacuumState
Return true if the specified location has dirt in it.
hasObstacle(int, int) - Method in class vacworld.VacuumState
Return true if the specified location has an obstacle in it.
height - Variable in class vacworld.VacuumState
Height of the map, including surrounding walls of the room.

I

INIT_DIR - Static variable in class vacworld.VacuumState
 
INIT_X - Static variable in class vacworld.VacuumState
 
INIT_Y - Static variable in class vacworld.VacuumState
 
inBounds(int, int) - Method in class vacworld.VacuumState
Return true if the location is within bounds of the state's map.
interactive - Variable in class vacworld.VacuumWorld
 
isComplete() - Method in class agent.Environment
Is the simulation over? Returns true if it is, otherwise false.
isComplete() - Method in class vacworld.VacuumWorld
The simulation is complete when the robot has performed its ShutOff action.
isRobotOff() - Method in class vacworld.VacuumState
Return true if the robot is turned off in the state.

M

main(String[]) - Static method in class vacworld.VacuumWorld
Runs the program.
map - Variable in class vacworld.VacuumState
An array that contains the locations of objects in the world.

N

NORTH - Static variable in class vacworld.Direction
 
numBumps - Variable in class vacworld.VacuumWorld
 
numDirtyLocs - Variable in class vacworld.VacuumState
 
numMoves - Variable in class vacworld.VacuumWorld
 
numSucks - Variable in class vacworld.VacuumWorld
 
numTurns - Variable in class vacworld.VacuumWorld
 

O

output - Variable in class vacworld.VacuumWorld
 

P

Percept - class agent.Percept.
An abstract class for things an agent can perceive.
Percept(State, Agent) - Constructor for class agent.Percept
Construct a percept for a state from the point of view of a particular agent.
printScore(PrintStream) - Method in class vacworld.VacuumWorld
 

R

removeDirt(int, int) - Method in class vacworld.VacuumState
Remove dirt from the specified location.
robotOff - Variable in class vacworld.VacuumState
 

S

SOUTH - Static variable in class vacworld.Direction
 
ShutOff - class vacworld.ShutOff.
A vacuum cleaning world action that causes the agent to power down.
ShutOff() - Constructor for class vacworld.ShutOff
 
State - class agent.State.
A complete representation of a situation in the agent environment.
State() - Constructor for class agent.State
 
SuckDirt - class vacworld.SuckDirt.
A vacuum cleaning world action that causes the agent to suck up dirt from it current location.
SuckDirt() - Constructor for class vacworld.SuckDirt
 
see(Percept) - Method in class agent.Agent
Provide a Percept to the agent.
seeDirt() - Method in class vacworld.VacPercept
Returns true if the percept reflects that the agent is over dirt.
seeObstacle() - Method in class vacworld.VacPercept
Returns true if the percept reflects that the square immediately in front of the agent contains an obstacle.
selectAction() - Method in class agent.Agent
Have the agent select its next action to perform.
setAgentDir(int) - Method in class vacworld.VacuumState
Change the agent's orientation.
setAgentX(int) - Method in class vacworld.VacuumState
Change the agent's X position.
setAgentY(int) - Method in class vacworld.VacuumState
Change the agent's Y position.
setBump(boolean) - Method in class vacworld.VacuumState
Set an indicator that the robot bumped into an obstacle during its previous move.
setRobotOff(boolean) - Method in class vacworld.VacuumState
Set an indicator that the robot has shut down in the state.
start(State) - Method in class agent.Environment
Run the simulation starting from a given state.
start(State) - Method in class vacworld.VacuumWorld
Starts the simulation.
state - Variable in class agent.Environment
The current state of the environment.

T

TurnRight - class vacworld.TurnRight.
A vacuum cleaning world action that causes the agent to turn 90 degrees to the right.
TurnRight() - Constructor for class vacworld.TurnRight
 
toString(int) - Static method in class vacworld.Direction
 
toString() - Method in class vacworld.GoForward
 
toString() - Method in class vacworld.ShutOff
 
toString() - Method in class vacworld.SuckDirt
 
toString() - Method in class vacworld.TurnRight
 
toString() - Method in class vacworld.VacPercept
 
totalScore - Variable in class vacworld.VacuumWorld
 

U

updateState(Agent, Action) - Method in class agent.Environment
Execute an agent's action and update the environment's state.
updateState(Agent, Action) - Method in class vacworld.VacuumWorld
Execute an agent's action and update the environment's state.

V

VacPercept - class vacworld.VacPercept.
A percept in the vacuum cleaning world.
VacPercept(VacuumState, Agent) - Constructor for class vacworld.VacPercept
Construct a vacuum world percept.
VacuumState - class vacworld.VacuumState.
Represents a state in the vacuum world.
VacuumState() - Constructor for class vacworld.VacuumState
Construct a new empty vacuum state.
VacuumState(int[][]) - Constructor for class vacworld.VacuumState
Construct a new vacuum state given an array that specifies the map.
VacuumWorld - class vacworld.VacuumWorld.
A simulator for the vacuum cleaning world environment.
VacuumWorld() - Constructor for class vacworld.VacuumWorld
 
VacuumWorld(PrintStream, boolean) - Constructor for class vacworld.VacuumWorld
 
vacworld - package vacworld
 

W

WALL - Static variable in class vacworld.VacuumState
Constant representing a location with an obstacle.
WALL_CHANCE - Static variable in class vacworld.VacuumState
 
WEST - Static variable in class vacworld.Direction
 
waitForUser() - Method in class vacworld.VacuumWorld
Pause simulation until user has pressed a key.
width - Variable in class vacworld.VacuumState
Width of the map, including surrounding walls of the room.

A B C D E F G H I M N O P R S T U V W