|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.upb.swtpra05.group03.shuttle.RouteManagement
Manages the route of the shuttle.
| Field Summary | |
private ExecutionInterface |
execution
The Execution Unit |
private static java.util.logging.Logger |
log
Logger for debugging |
private NavigationInterface |
navigation
The navigation of the shuttle |
private OrderContainerInterface |
orderContainer
Collection which holds all order the shuttle is working on |
private ShuttleDataInterface |
shuttleData
Container class, contains the constants, currentStretch, etc. |
private TaskPlanInterface |
taskPlan
The main TaskPlan, describes the actions the execution has to do |
| Fields inherited from interface de.upb.swtpra05.group03.shuttle.RouteManagementInterface |
NOTADDABLE |
| Constructor Summary | |
RouteManagement()
Constructor |
|
| Method Summary | |
int |
addOrder(ExtendedOrder eo,
int currentTime)
Adds an order to the current route of the shuttle. |
protected boolean |
checkCapacity()
Checks if the capacity of the shuttle is lower or the same as the maximum capacity of the shuttle for all order in the current route |
protected void |
checkEdgesFinancedByStatus()
Checks for alle Edges in the route whether they are financed by loaded or assigned order or not |
void |
connectionDisabled(int startStationId,
int destinationStationId,
int disabledUntilTime,
int currentTime)
Reacts on disabling of a connection by waiting for reenabling or by calculation of an roundabout route. |
protected int |
getLastStation()
Returns the last station in the taskplan. |
protected int |
getOrderCosts(de.upb.swtpra.kernel.id.OrderID orderId)
Gets the costs for the order in the taskplan |
void |
init(ModuleContainerInterface manager)
Initializes this module. |
void |
removeOrder(de.upb.swtpra.kernel.id.OrderID orderId)
Removes all tasks which belong to the order id from the current route of the shuttle. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private ExecutionInterface execution
private OrderContainerInterface orderContainer
private NavigationInterface navigation
private static final java.util.logging.Logger log
private TaskPlanInterface taskPlan
private ShuttleDataInterface shuttleData
| Constructor Detail |
public RouteManagement()
| Method Detail |
public void init(ModuleContainerInterface manager)
Module
init in interface Modulemanager - The module manager which contain all modules
public int addOrder(ExtendedOrder eo,
int currentTime)
RouteManagementInterface
addOrder in interface RouteManagementInterfaceeo - The extended order to be added to the route.currentTime - The current time at which the order will be added
protected int getLastStation()
public void removeOrder(de.upb.swtpra.kernel.id.OrderID orderId)
RouteManagementInterface
removeOrder in interface RouteManagementInterfaceorderId - The order to be removed from the current route of the shuttle
public void connectionDisabled(int startStationId,
int destinationStationId,
int disabledUntilTime,
int currentTime)
RouteManagementInterface
connectionDisabled in interface RouteManagementInterfacestartStationId - The start station of the disabled connectiondestinationStationId - The destination station of the disable connectiondisabledUntilTime - The time until the connection is disabledcurrentTime - The current timeprotected boolean checkCapacity()
protected int getOrderCosts(de.upb.swtpra.kernel.id.OrderID orderId)
orderId - The id of the order to calculate the costs for
protected void checkEdgesFinancedByStatus()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||