de.upb.swtpra05.group03.shuttle
Class LoadShuttleTask
java.lang.Object
de.upb.swtpra05.group03.shuttle.Task
de.upb.swtpra05.group03.shuttle.LoadShuttleTask
- public class LoadShuttleTask
- extends Task
Description of the Class
- Version:
- $Revision: 1.3 $
|
Field Summary |
private int |
numberOfPassengers
The number of passengers the shuttle have to load on execute of this task |
|
Constructor Summary |
LoadShuttleTask(int duration,
de.upb.swtpra.kernel.id.OrderID orderId,
int stationId,
int newNumberOfPassengers)
|
| 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 |
numberOfPassengers
private int numberOfPassengers
- The number of passengers the shuttle have to load on execute of this task
LoadShuttleTask
public LoadShuttleTask(int duration,
de.upb.swtpra.kernel.id.OrderID orderId,
int stationId,
int newNumberOfPassengers)
- Parameters:
duration - orderId - stationId - Description of the ParameternewNumberOfPassengers - Description of the Parameter
execute
public de.upb.swtpra.kernel.message.Message execute(de.upb.swtpra.kernel.id.ID sender,
de.upb.swtpra.kernel.id.ID receiver)
- Description of the Method
- Specified by:
execute in class Task
- Parameters:
sender - Description of the Parameterreceiver - Description of the Parameter
- Returns:
- Description of the Return Value
toString
public java.lang.String toString()
- Description of the Method
- Overrides:
toString in class Task
- Returns:
- Description of the Return Value
getNumberOfPassengers
public int getNumberOfPassengers()
- Returns:
setNumberOfPassengers
public void setNumberOfPassengers(int i)
- Parameters:
i -
toStringVector
public java.util.Vector toStringVector()
- Description of the Method
- Overrides:
toStringVector in class Task
- Returns:
- Description of the Return Value