de.upb.swtpra05.group03.shuttle
Class GetConnectionOkTask

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

public class GetConnectionOkTask
extends Task

Description of the Class

Version:
$Revision: 1.3 $

Field Summary
private  int destination
           
private  int distance
           
private  int start
           
 
Fields inherited from class de.upb.swtpra05.group03.shuttle.Task
active, costs, duration, executed, orderId, stationId
 
Constructor Summary
GetConnectionOkTask(int costs, int duration, de.upb.swtpra.kernel.id.OrderID orderId, int start, int destination, int distance)
           
 
Method Summary
 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
 int getDestination()
           
 int getDistance()
           
 int getStart()
           
 void setDestination(int destination)
           
 void setStart(int start)
           
 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

destination

private int destination

start

private int start

distance

private int distance
Constructor Detail

GetConnectionOkTask

public GetConnectionOkTask(int costs,
                           int duration,
                           de.upb.swtpra.kernel.id.OrderID orderId,
                           int start,
                           int destination,
                           int distance)
Parameters:
costs -
duration -
destination -
start - Description of the Parameter
distance - Description of the Parameter
orderId - Description of the Parameter
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)
Description of the Method

Specified by:
execute in class Task
Parameters:
sender - Description of the Parameter
receiver - Description of the Parameter
Returns:
Description of the Return Value

getDestination

public int getDestination()
Returns:

getDistance

public int getDistance()
Returns:

setDestination

public void setDestination(int destination)
Parameters:
destination -

getStart

public int getStart()
Returns:

setStart

public void setStart(int start)
Parameters:
start -

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