basics.route
Class DefaultVehicleRouteCostCalculator
java.lang.Object
basics.route.DefaultVehicleRouteCostCalculator
- All Implemented Interfaces:
- VehicleRouteCostCalculator
public class DefaultVehicleRouteCostCalculator
- extends java.lang.Object
- implements VehicleRouteCostCalculator
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultVehicleRouteCostCalculator
public DefaultVehicleRouteCostCalculator()
addTransportCost
public void addTransportCost(double tpCost)
- Specified by:
addTransportCost in interface VehicleRouteCostCalculator
addActivityCost
public void addActivityCost(double actCost)
- Specified by:
addActivityCost in interface VehicleRouteCostCalculator
price
public void price(Vehicle vehicle)
- Specified by:
price in interface VehicleRouteCostCalculator
price
public void price(Driver driver)
- Specified by:
price in interface VehicleRouteCostCalculator
finish
public void finish()
- Specified by:
finish in interface VehicleRouteCostCalculator
reset
public void reset()
- Specified by:
reset in interface VehicleRouteCostCalculator
addOtherCost
public void addOtherCost(double cost)
- Specified by:
addOtherCost in interface VehicleRouteCostCalculator
getCosts
public double getCosts()
- Specified by:
getCosts in interface VehicleRouteCostCalculator
getTpCosts
public double getTpCosts()
- Returns:
- the tpCosts
getActCosts
public double getActCosts()
- Returns:
- the actCosts
getVehicleCosts
public double getVehicleCosts()
- Returns:
- the vehicleCosts
getDriverCosts
public double getDriverCosts()
- Returns:
- the driverCosts
getOther
public double getOther()
- Returns:
- the other
duplicate
public VehicleRouteCostCalculator duplicate()
- Specified by:
duplicate in interface VehicleRouteCostCalculator