public class WaitingTimeCosts extends Object implements VehicleRoutingActivityCosts
VehicleRoutingActivityCosts.Parameter, VehicleRoutingActivityCosts.Time| Constructor and Description |
|---|
WaitingTimeCosts() |
| Modifier and Type | Method and Description |
|---|---|
double |
getActivityCost(TourActivity tourAct,
double arrivalTime,
Driver driver,
Vehicle vehicle)
Calculates and returns the activity cost at tourAct.
|
double |
getActivityDuration(TourActivity tourAct,
double arrivalTime,
Driver driver,
Vehicle vehicle) |
public double getActivityCost(TourActivity tourAct, double arrivalTime, Driver driver, Vehicle vehicle)
VehicleRoutingActivityCosts
Here waiting-times, service-times and missed time-windows can be considered.
getActivityCost in interface VehicleRoutingActivityCostsarrivalTime - is actually the arrival time at this tourActivity, which must not nessecarrily be the operation start time. If the theoretical earliest
operation start time at this activity is later than actualStartTime, the driver must wait at this activity.vehicle - if earliestStartTime > latestStartTime activity operations cannot be conducted within the given time-window.public double getActivityDuration(TourActivity tourAct, double arrivalTime, Driver driver, Vehicle vehicle)
getActivityDuration in interface VehicleRoutingActivityCostsCopyright © 2013–2020. All rights reserved.