mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
relax api
This commit is contained in:
parent
1e520f3269
commit
82bbd83598
1 changed files with 0 additions and 26 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue