|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.nott.cs.g54dia.library.DeliverWaterAction
public class DeliverWaterAction
Action which delivers water from the tanker to a station.
Field Summary | |
---|---|
(package private) Task |
task
|
Constructor Summary | |
---|---|
DeliverWaterAction(Task t)
|
Method Summary | |
---|---|
void |
execute(Environment env,
Tanker tank)
Execute the action for this Tanker in this Environment. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
Task task
Constructor Detail |
---|
public DeliverWaterAction(Task t)
Method Detail |
---|
public void execute(Environment env, Tanker tank) throws ActionFailedException
Action
execute
in interface Action
env
- The Environment that the Tanker inhabits.tank
- The Tanker trying to perform this action.
ActionFailedException
- The action couldn't be performed.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 |