mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
make job insertion more flexible
This commit is contained in:
parent
d6e5ca38a9
commit
bac6939bd3
1 changed files with 6 additions and 3 deletions
|
|
@ -90,16 +90,19 @@ public class InsertionStrategyBuilder {
|
|||
this.fleetManager = vehicleFleetManager;
|
||||
}
|
||||
|
||||
public void setShipmentInsertionCalculatorFactory(JobInsertionCostsCalculatorFactory shipmentInsertionCalculatorFactory) {
|
||||
public InsertionStrategyBuilder setShipmentInsertionCalculatorFactory(JobInsertionCostsCalculatorFactory shipmentInsertionCalculatorFactory) {
|
||||
this.shipmentInsertionCalculatorFactory = shipmentInsertionCalculatorFactory;
|
||||
return this;
|
||||
}
|
||||
|
||||
public void setServiceInsertionCalculator(JobInsertionCostsCalculatorFactory serviceInsertionCalculator) {
|
||||
public InsertionStrategyBuilder setServiceInsertionCalculator(JobInsertionCostsCalculatorFactory serviceInsertionCalculator) {
|
||||
this.serviceInsertionCalculatorFactory = serviceInsertionCalculator;
|
||||
return this;
|
||||
}
|
||||
|
||||
public void setBreakInsertionCalculator(JobInsertionCostsCalculatorFactory breakInsertionCalculator) {
|
||||
public InsertionStrategyBuilder setBreakInsertionCalculator(JobInsertionCostsCalculatorFactory breakInsertionCalculator) {
|
||||
this.breakInsertionCalculatorFactory = breakInsertionCalculator;
|
||||
return this;
|
||||
}
|
||||
|
||||
public InsertionStrategyBuilder setInsertionStrategy(Strategy strategy) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue