public class CrowFlyCosts extends AbstractForwardVehicleRoutingTransportCosts implements TransportDistance
| Modifier and Type | Field and Description |
|---|---|
double |
detourFactor |
int |
speed |
| Constructor and Description |
|---|
CrowFlyCosts(Locations locations) |
| 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) |
String |
toString() |
getBackwardTransportCost, getBackwardTransportTimepublic CrowFlyCosts(Locations locations)
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 TransportDistanceCopyright © 2013–2016. All rights reserved.