Class WaitingTimeCosts
java.lang.Object
com.graphhopper.jsprit.core.problem.cost.WaitingTimeCosts
- All Implemented Interfaces:
VehicleRoutingActivityCosts
Created by schroeder on 23/07/15.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.graphhopper.jsprit.core.problem.cost.VehicleRoutingActivityCosts
VehicleRoutingActivityCosts.Parameter, VehicleRoutingActivityCosts.Time -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetActivityCost(TourActivity tourAct, double arrivalTime, Driver driver, Vehicle vehicle) Calculates and returns the activity cost at tourAct.doublegetActivityDuration(TourActivity tourAct, double arrivalTime, Driver driver, Vehicle vehicle) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.graphhopper.jsprit.core.problem.cost.VehicleRoutingActivityCosts
getActivityDuration
-
Constructor Details
-
WaitingTimeCosts
public WaitingTimeCosts()
-
-
Method Details
-
getActivityCost
public double getActivityCost(TourActivity tourAct, double arrivalTime, Driver driver, Vehicle vehicle) Description copied from interface:VehicleRoutingActivityCostsCalculates and returns the activity cost at tourAct.Here waiting-times, service-times and missed time-windows can be considered.
- Specified by:
getActivityCostin interfaceVehicleRoutingActivityCosts- Parameters:
tourAct-arrivalTime- 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.driver-vehicle- if earliestStartTime > latestStartTime activity operations cannot be conducted within the given time-window.- Returns:
-
getActivityDuration
public double getActivityDuration(TourActivity tourAct, double arrivalTime, Driver driver, Vehicle vehicle) - Specified by:
getActivityDurationin interfaceVehicleRoutingActivityCosts
-