|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Agent | |
---|---|
agent | |
pacworld |
Uses of Agent in agent |
---|
Methods in agent with parameters of type Agent | |
---|---|
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. |
Constructors in agent with parameters of type Agent | |
---|---|
Percept(State s,
Agent a)
Construct a percept for a state from the point of view of a particular agent. |
Uses of Agent in pacworld |
---|
Methods in pacworld that return types with arguments of type Agent | |
---|---|
java.util.List<Agent> |
PackageWorld.getAgents()
Returns a list of the agents in the environment. |
Methods in pacworld with parameters of type Agent | |
---|---|
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. |
Method parameters in pacworld with type arguments of type Agent | |
---|---|
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. |
Constructors in pacworld with parameters of type Agent | |
---|---|
PacAgentRep(Agent a)
|
|
PacPercept(PackageState state,
Agent agent)
Construct a package delivery world percept. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |