1
0
Fork 0
mirror of https://github.com/graphhopper/jsprit.git synced 2020-01-24 07:45:05 +01:00

rename vehicleType to vehicleTypeImpl, extract interface vehicleType;

refactor vehicleType to new file; add penaltyVehicleType; improve
vehicleFleetManagerImpl
This commit is contained in:
oblonski 2013-06-20 22:59:57 +02:00
parent d223475cb4
commit c1849a9d5a
39 changed files with 319 additions and 572 deletions

View file

@ -29,7 +29,8 @@ import basics.costs.VehicleRoutingActivityCosts;
import basics.costs.VehicleRoutingTransportCosts;
import basics.route.Vehicle;
import basics.route.VehicleImpl;
import basics.route.VehicleImpl.VehicleType;
import basics.route.VehicleType;
import basics.route.VehicleTypeImpl;
/**
* Contains and describes the vehicle routing problem.
@ -96,7 +97,7 @@ public class VehicleRoutingProblem {
jobs = new HashMap<String, Job>();
vehicles = new ArrayList<Vehicle>();
coordinates = new HashMap<String, Coordinate>();
vehicleTypes = new ArrayList<VehicleImpl.VehicleType>();
vehicleTypes = new ArrayList<VehicleType>();
services = new ArrayList<Service>();
}
@ -237,7 +238,7 @@ public class VehicleRoutingProblem {
* @param type
* @return builder
*/
public Builder addVehicleType(VehicleType type){
public Builder addVehicleType(VehicleTypeImpl type){
vehicleTypes.add(type);
return this;
}
@ -445,7 +446,7 @@ public class VehicleRoutingProblem {
* Returns the entire, unmodifiable collection of types.
*
* @return unmodifiable collection of types
* @see VehicleType
* @see VehicleTypeImpl
*/
public Collection<VehicleType> getTypes(){
return Collections.unmodifiableCollection(vehicleTypes);