Package | Description |
---|---|
agent | |
vacworld |
Modifier and Type | Method and Description |
---|---|
abstract void |
Environment.addAgent(Agent agent)
Add a new agent to the environment.
|
abstract State |
Action.execute(Agent a,
State s)
Return the State of the environment that results after Agent a
executes the Action in State s.
|
abstract int |
Environment.getPerformanceMeasure(Agent a)
Return the performance measure of a particular agent in the current
environment.
|
Constructor and Description |
---|
Percept(State s,
Agent a)
Construct a percept for a state from the point of view of a
particular agent.
|
Modifier and Type | Method and Description |
---|---|
void |
VacuumWorld.addAgent(Agent agent)
Add a new agent to the environment.
|
State |
TurnRight.execute(Agent a,
State s)
Return the state that results from the agent turning right in the
given state.
|
State |
TurnLeft.execute(Agent a,
State s)
Return the state that results from the agent turning left in the
given state.
|
State |
SuckDirt.execute(Agent a,
State s)
Return the state that results from the agent sucking up dirt in the
given state.
|
State |
ShutOff.execute(Agent a,
State s)
Return the state that results from the agent shutting off in the
given state.
|
State |
GoForward.execute(Agent a,
State s)
Return the state that results from the agent moving forward in the
given state.
|
int |
VacuumWorld.getPerformanceMeasure(Agent ag)
Returns the performance measure of the agent in the current
environment.
|
Constructor and Description |
---|
VacPercept(VacuumState state,
Agent agent)
Construct a vacuum world percept.
|