public String getWeighting() { return hints.getWeighting(); }
@Override public boolean matches(HintsMap reqMap) { return getName().equals(reqMap.getWeighting()) && flagEncoder.toString().equals(reqMap.getVehicle()); }
@Override public boolean matches(HintsMap reqMap) { return getName().equals(reqMap.getWeighting()) && superWeighting.getFlagEncoder().toString().equals(reqMap.getVehicle()); }
@Override public boolean matches(HintsMap map) { return getName().equals(map.getWeighting()) && userWeighting.getFlagEncoder().toString().equals(map.getVehicle()); }
@Override public RoutingAlgorithmFactory getDecoratedAlgorithmFactory(RoutingAlgorithmFactory defaultAlgoFactory, HintsMap map) { boolean disableCH = map.getBool(DISABLE, false); if (!isEnabled() || disablingAllowed && disableCH) return defaultAlgoFactory; if (preparations.isEmpty()) throw new IllegalStateException("No preparations added to this decorator"); if (map.getWeighting().isEmpty()) map.setWeighting(getDefaultWeighting()); String entriesStr = ""; for (PrepareContractionHierarchies p : preparations) { if (p.getWeighting().matches(map)) return p; entriesStr += p.getWeighting() + ", "; } throw new IllegalArgumentException("Cannot find CH RoutingAlgorithmFactory for weighting map " + map + " in entries " + entriesStr); }
String weightingStr = toLowerCase(hintsMap.getWeighting()); Weighting weighting = null;
.setVehicle(hints.getVehicle()).setWeighting(hints.getWeighting()); throw new IllegalStateException("Didn't find weighting " + hints.getWeighting() + " in " + hopper.getCHFactoryDecorator().getWeightings()); AlgorithmOptions.start(dijkstrabiOpts).hints(chHints).build(), idx, "dijkstrabi|ch|prepare|" + hints.getWeighting()) { @Override public RoutingAlgorithmFactory createRoutingFactory() { AlgorithmOptions.start(astarbiOpts).hints(chHints).build(), idx, "astarbi|ch|prepare|" + hints.getWeighting()) { @Override public RoutingAlgorithmFactory createRoutingFactory() {
public String getWeighting() { return hints.getWeighting(); }
public String getWeighting() { return hints.getWeighting(); }
public String getWeighting() { return hints.getWeighting(); }
@Override public boolean matches( HintsMap reqMap ) { return getName().equals(reqMap.getWeighting()) && flagEncoder.toString().equals(reqMap.getVehicle()); }
@Override public boolean matches(HintsMap reqMap) { return getName().equals(reqMap.getWeighting()) && flagEncoder.toString().equals(reqMap.getVehicle()); }
@Override public boolean matches(HintsMap reqMap) { return getName().equals(reqMap.getWeighting()) && flagEncoder.toString().equals(reqMap.getVehicle()); }
@Override public boolean matches(HintsMap reqMap) { return getName().equals(reqMap.getWeighting()) && superWeighting.getFlagEncoder().toString().equals(reqMap.getVehicle()); }
@Override public boolean matches( HintsMap reqMap ) { return getName().equals(reqMap.getWeighting()) && superWeighting.getFlagEncoder().toString().equals(reqMap.getVehicle()); }
@Override public boolean matches( HintsMap map ) { return getName().equals(map.getWeighting()) && userWeighting.getFlagEncoder().toString().equals(map.getVehicle()); }
@Override public boolean matches(HintsMap reqMap) { return getName().equals(reqMap.getWeighting()) && superWeighting.getFlagEncoder().toString().equals(reqMap.getVehicle()); }
@Override public boolean matches(HintsMap map) { return getName().equals(map.getWeighting()) && userWeighting.getFlagEncoder().toString().equals(map.getVehicle()); }
@Override public boolean matches(HintsMap map) { return getName().equals(map.getWeighting()) && userWeighting.getFlagEncoder().toString().equals(map.getVehicle()); }
@Override public RoutingAlgorithmFactory getDecoratedAlgorithmFactory(RoutingAlgorithmFactory defaultAlgoFactory, HintsMap map) { boolean disableCH = map.getBool(DISABLE, false); if (!isEnabled() || disablingAllowed && disableCH) return defaultAlgoFactory; if (preparations.isEmpty()) throw new IllegalStateException("No preparations added to this decorator"); if (map.getWeighting().isEmpty()) map.setWeighting(getDefaultWeighting()); String entriesStr = ""; for (PrepareContractionHierarchies p : preparations) { if (p.getWeighting().matches(map)) return p; entriesStr += p.getWeighting() + ", "; } throw new IllegalArgumentException("Cannot find CH RoutingAlgorithmFactory for weighting map " + map + " in entries " + entriesStr); }