public class Pickup extends Action
Constructor and Description |
---|
Pickup(int d) |
Modifier and Type | Method and Description |
---|---|
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() |
public State execute(Agent agent, State s)
public java.lang.String toString()
toString
in class java.lang.Object