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

add CalcSwitcher for pickups and deliveries

This commit is contained in:
oblonski 2013-11-15 07:07:43 +01:00
parent a853ad5672
commit 491d7a9738

View file

@ -19,6 +19,8 @@ package algorithms;
import java.util.ArrayList;
import java.util.List;
import basics.Delivery;
import basics.Pickup;
import basics.Service;
import basics.Shipment;
import basics.VehicleRoutingProblem;
@ -238,6 +240,8 @@ class CalculatorBuilder {
JobCalculatorSwitcher switcher = new JobCalculatorSwitcher();
switcher.put(Shipment.class, shipmentInsertion);
switcher.put(Service.class, serviceInsertion);
switcher.put(Pickup.class, serviceInsertion);
switcher.put(Delivery.class, serviceInsertion);
// JobInsertionCostsCalculator standardServiceInsertion = new ServiceInsertionCalculator(vrp.getTransportCosts(), actInsertionCalc, constraintManager, constraintManager);
// ((ServiceInsertionCalculator) standardServiceInsertion).setNeighborhood(vrp.getNeighborhood());