|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object agent.Action pacworld.Pickup
public class Pickup
A package delivery agent action that causes the agent to pickup a package that is located next to the agent in the specified direction.
Constructor Summary | |
---|---|
Pickup(int d)
|
Method Summary | |
---|---|
State |
execute(Agent agent,
State s)
Return the state that results from the agent picking up a package in the given direction. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Pickup(int d)
Method Detail |
---|
public State execute(Agent agent, State s)
execute
in class Action
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |