Package | Description |
---|---|
agent | |
pacworld |
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 |
---|---|
java.util.List<Agent> |
PackageWorld.getAgents()
Returns a list of the agents in the environment.
|
Modifier and Type | Method and Description |
---|---|
void |
PackageWorld.addAgent(Agent agent)
Add a new agent to the environment.
|
boolean |
PackageState.bumped(Agent a)
Return true if the agent bumped into an obstacle on its previous
move.
|
void |
PackageState.dropPackage(Agent a,
int dropX,
int dropY) |
State |
Say.execute(Agent agent,
State s)
Return the state that results from the agent sending a message.
|
State |
Pickup.execute(Agent agent,
State s)
Return the state that results from the agent picking up a package in
the given direction.
|
State |
Move.execute(Agent agent,
State s)
Return the state that results from the agent moving in the given direction
in the given state.
|
State |
Idle.execute(Agent agent,
State s)
Return the state that results from the agent doing nothing.
|
State |
Dropoff.execute(Agent a,
State s)
Return the state that results from the agent dropping a package in the
given direction in the given state.
|
int |
PackageState.getAgentX(Agent a)
Return the X location of the specified agent.
|
int |
PackageState.getAgentY(Agent a)
Return the Y location of the specified agent.
|
Package |
PackageState.getPackageHeldByAgent(Agent a)
Return the package (if any) held by the specified agent.
|
int |
PackageWorld.getPerformanceMeasure(Agent a)
Return the performance measure of the agent in the current
environment.
|
void |
PackageState.pickup(Agent a,
Package p)
Modify the state so that the agent is holding the selected package.
|
void |
PackageState.repositionAgent(Agent a,
int newX,
int newY)
Change the agent's position.
|
void |
PackageState.setBump(Agent a,
boolean bump)
Set an indicator that the robot bumped into an obstacle
during its previous move.
|
void |
PackageState.setMessage(Agent a,
java.lang.String s)
Set whatever message was said by the agent in its previous move.
|
Modifier and Type | Method and Description |
---|---|
static PackageState |
PackageState.getInitState(java.util.List<Agent> agts,
int numPackages,
int numDests,
int mapSize)
Return a random initial state for the vacuum world.
|
static PackageState |
PackageState.getInitState(long seed,
java.util.List<Agent> agts,
int numPackages,
int numDests,
int mapSize)
Use the given seed to generate a pseudo-random initial state for
the vacuum world.
|
Constructor and Description |
---|
PacAgentRep(Agent a) |
PacPercept(PackageState state,
Agent agent)
Construct a package delivery world percept.
|