|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.upb.swtpra05.group03.shuttle.Task
de.upb.swtpra05.group03.shuttle.DoNothingUntilTask
Extension of Task. This Task class is used if Execution shouldn't do anything for an amount of time.
| Field Summary | |
private int |
wakeUpTime
The time value the shuttle will be waked |
| Fields inherited from class de.upb.swtpra05.group03.shuttle.Task |
active, costs, duration, executed, orderId, stationId |
| Constructor Summary | |
DoNothingUntilTask(int duration,
int stationId,
int wakeUpTime)
Constructor of DoNothinUntilTask |
|
| Method Summary | |
de.upb.swtpra.kernel.message.Message |
execute(de.upb.swtpra.kernel.id.ID sender,
de.upb.swtpra.kernel.id.ID receiver)
Executes this task which means that it returns the for this task needed message |
int |
getWakeUpTime()
|
void |
setWakeUpTime(int wakeUpTime)
|
java.lang.String |
toString()
Description of the Method |
java.util.Vector |
toStringVector()
Description of the Method |
| Methods inherited from class de.upb.swtpra05.group03.shuttle.Task |
getCosts, getDuration, getOrderId, getStationId, isActive, isExecuted, setActive, setCosts, setDuration, setExecuted, setOrderId |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private int wakeUpTime
| Constructor Detail |
public DoNothingUntilTask(int duration,
int stationId,
int wakeUpTime)
duration - The duration this taks will needstationId - The stationid this task is processed onwakeUpTime - The time this task is processed| Method Detail |
public de.upb.swtpra.kernel.message.Message execute(de.upb.swtpra.kernel.id.ID sender,
de.upb.swtpra.kernel.id.ID receiver)
execute in class Tasksender - The Id of the sender of the returned messagereceiver - The Id of the receiver of the returned message
public int getWakeUpTime()
public void setWakeUpTime(int wakeUpTime)
wakeUpTime - public java.lang.String toString()
toString in class Taskpublic java.util.Vector toStringVector()
toStringVector in class Task
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||