Skip to content

Feature Request: Pass previous activity to VehicleRoutingActivityCosts.getActivityDuration #525

Open
@bludginozzie

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions