de.upb.swtpra05.group03.shuttle
Class DoNothingUntilTask

java.lang.Object
  extended byde.upb.swtpra05.group03.shuttle.Task
      extended byde.upb.swtpra05.group03.shuttle.DoNothingUntilTask

public class DoNothingUntilTask
extends Task

Extension of Task. This Task class is used if Execution shouldn't do anything for an amount of time.

Version:
$Revision: 1.3 $

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

wakeUpTime

private int wakeUpTime
The time value the shuttle will be waked

Constructor Detail

DoNothingUntilTask

public DoNothingUntilTask(int duration,
                          int stationId,
                          int wakeUpTime)
Constructor of DoNothinUntilTask

Parameters:
duration - The duration this taks will need
stationId - The stationid this task is processed on
wakeUpTime - The time this task is processed
Method Detail

execute

public 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

Specified by:
execute in class Task
Parameters:
sender - The Id of the sender of the returned message
receiver - The Id of the receiver of the returned message
Returns:
The message to send to fulfill the execution of this task

getWakeUpTime

public int getWakeUpTime()
Returns:
wakeUpTime

setWakeUpTime

public void setWakeUpTime(int wakeUpTime)
Parameters:
wakeUpTime -

toString

public java.lang.String toString()
Description of the Method

Overrides:
toString in class Task
Returns:
Description of the Return Value

toStringVector

public java.util.Vector toStringVector()
Description of the Method

Overrides:
toStringVector in class Task
Returns:
Description of the Return Value