You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use this method to implement the time it takes to pickup or deliver the freight. In real life this is the time it takes to park the vehicle and enter the premises to perform the pickup or delivery. However in some circumstances the pickup or delivery is at the same location as the previous one so this time is reduced in this case.
Essentially we want to implement something like this:
public double getActivityDuration(
TourActivity prevAct,
TourActivity currentAct,
double arrivalTime,
Driver driver,
Vehicle vehicle
) {
if (prevAct.getLocation().equals(currentAct.getLocation())) {
return 0d;
}
// Rest of method
From my investigation there is no other way I can see to implement this.
This would be greatly appreciated
The text was updated successfully, but these errors were encountered:
We use this method to implement the time it takes to pickup or deliver the freight. In real life this is the time it takes to park the vehicle and enter the premises to perform the pickup or delivery. However in some circumstances the pickup or delivery is at the same location as the previous one so this time is reduced in this case.
Essentially we want to implement something like this:
From my investigation there is no other way I can see to implement this.
This would be greatly appreciated
The text was updated successfully, but these errors were encountered: