public class GreatCircleCosts extends AbstractForwardVehicleRoutingTransportCosts
| Constructor and Description |
|---|
GreatCircleCosts() |
GreatCircleCosts(DistanceUnit distanceUnit) |
| Modifier and Type | Method and Description |
|---|---|
double |
getDistance(Location from,
Location to,
double departureTime,
Vehicle vehicle) |
double |
getTransportCost(Location from,
Location to,
double time,
Driver driver,
Vehicle vehicle) |
double |
getTransportTime(Location from,
Location to,
double time,
Driver driver,
Vehicle vehicle) |
void |
setDetour(double detour)
Sets the detour factor.
|
void |
setSpeed(double speed) |
getBackwardTransportCost, getBackwardTransportTimepublic GreatCircleCosts()
public GreatCircleCosts(DistanceUnit distanceUnit)
public void setSpeed(double speed)
public void setDetour(double detour)
The distance is calculated by the great circle distance * detour factor.
detour - public double getTransportCost(Location from, Location to, double time, Driver driver, Vehicle vehicle)
getTransportCost in interface ForwardTransportCostgetTransportCost in class AbstractForwardVehicleRoutingTransportCostspublic double getTransportTime(Location from, Location to, double time, Driver driver, Vehicle vehicle)
getTransportTime in interface ForwardTransportTimegetTransportTime in class AbstractForwardVehicleRoutingTransportCostspublic double getDistance(Location from, Location to, double departureTime, Vehicle vehicle)
getDistance in interface TransportDistancegetDistance in class AbstractForwardVehicleRoutingTransportCostsCopyright © 2013–2020. All rights reserved.