public class Dropoff extends Action
Constructor and Description |
---|
Dropoff(int d)
Construct a new Dropoff action.
|
Modifier and Type | Method and Description |
---|---|
State |
execute(Agent a,
State s)
Return the state that results from the agent dropping a package in the
given direction in the given state.
|
java.lang.String |
toString() |
public Dropoff(int d)
d
- - The direction to drop the Package in.public State execute(Agent a, State s)
public java.lang.String toString()
toString
in class java.lang.Object