Examples of VehicleCostParams


Examples of jsprit.core.problem.vehicle.VehicleTypeImpl.VehicleCostParams

  }

  @Override
  public double getTransportCost(String fromId, String toId, double departureTime, Driver driver, Vehicle vehicle) {
    if(vehicle == null) return getDistance(fromId, toId);
    VehicleCostParams costParams = vehicle.getType().getVehicleCostParams();
    return costParams.perDistanceUnit*getDistance(fromId, toId) + costParams.perTimeUnit*getTime(fromId, toId);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.