de.upb.swtpra05.group03.shuttle
Interface RouteManagementInterface

All Known Implementing Classes:
RouteManagement

public interface RouteManagementInterface

Interface of a route management.

Version:
$Revision: 1.3 $

Field Summary
static int NOTADDABLE
          Indicates that an order can't be added to the current route of the shuttle.
 
Method Summary
 int addOrder(ExtendedOrder eo, int curTime)
          Adds an order to the current route of the shuttle.
 void connectionDisabled(int start, int dest, int disTime, int curTime)
          Reacts on disabling of a connection by waiting for reenabling or by calculation of an roundabout route.
 void removeOrder(de.upb.swtpra.kernel.id.OrderID id)
          Removes all tasks which belong to the order id from the current route of the shuttle.
 

Field Detail

NOTADDABLE

public static final int NOTADDABLE
Indicates that an order can't be added to the current route of the shuttle.

See Also:
Constant Field Values
Method Detail

addOrder

public int addOrder(ExtendedOrder eo,
                    int curTime)
Adds an order to the current route of the shuttle.

Parameters:
eo - The extended order to be added to the route.
curTime - The current time at which the order will be added
Returns:
Returns the selfcosts of the order or NOTADDABLE if the shuttle won't be able to execute the order properly.

removeOrder

public void removeOrder(de.upb.swtpra.kernel.id.OrderID id)
Removes all tasks which belong to the order id from the current route of the shuttle.

Parameters:
id - The order to be removed from the current route of the shuttle

connectionDisabled

public void connectionDisabled(int start,
                               int dest,
                               int disTime,
                               int curTime)
Reacts on disabling of a connection by waiting for reenabling or by calculation of an roundabout route.

Parameters:
start - The start station of the disabled connection
dest - The destination station of the disable connection
disTime - The time until the connection is disabled
curTime - The current time