basics.route
Class DefaultVehicleRouteCostCalculator

java.lang.Object
  extended by basics.route.DefaultVehicleRouteCostCalculator
All Implemented Interfaces:
VehicleRouteCostCalculator

public class DefaultVehicleRouteCostCalculator
extends java.lang.Object
implements VehicleRouteCostCalculator


Constructor Summary
DefaultVehicleRouteCostCalculator()
           
 
Method Summary
 void addActivityCost(double actCost)
           
 void addOtherCost(double cost)
           
 void addTransportCost(double tpCost)
           
 VehicleRouteCostCalculator duplicate()
           
 void finish()
           
 double getActCosts()
           
 double getCosts()
           
 double getDriverCosts()
           
 double getOther()
           
 double getTpCosts()
           
 double getVehicleCosts()
           
 void price(Driver driver)
           
 void price(Vehicle vehicle)
           
 void reset()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultVehicleRouteCostCalculator

public DefaultVehicleRouteCostCalculator()
Method Detail

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