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

relax api

This commit is contained in:
Stefan Schroeder 2013-10-22 15:42:37 +02:00
parent 1e520f3269
commit 82bbd83598

View file

@ -97,8 +97,6 @@ public class BestInsertionBuilder implements InsertionStrategyBuilder{
List<InsertionListener> iListeners = new ArrayList<InsertionListener>();
List<PrioritizedVRAListener> algorithmListeners = new ArrayList<PrioritizedVRAListener>();
CalculatorBuilder calcBuilder = new CalculatorBuilder(iListeners, algorithmListeners);
addCoreUpdater();
if(local){
calcBuilder.setLocalLevel();
}
@ -122,28 +120,4 @@ public class BestInsertionBuilder implements InsertionStrategyBuilder{
return bestInsertion;
}
private void addCoreUpdater() {
if(!hasActivityTimeUpdater()){
}
// if(!hasLoadUpdater()){
// stateManager.addActivityVisitor(new UpdateLoadAtActivityLevel(stateManager));
// }
}
private boolean hasLoadUpdater() {
for(StateUpdater updater : stateManager.getStateUpdaters()){
if(updater instanceof UpdateLoadAtActivityLevel) return true;
}
return false;
}
private boolean hasActivityTimeUpdater() {
for(StateUpdater updater : stateManager.getStateUpdaters()){
if(updater instanceof UpdateActivityTimes) return true;
}
return false;
}
}