Skip to content

Commit

Permalink
Move getMinWeight into AbstractAdjustedWeighting
Browse files Browse the repository at this point in the history
  • Loading branch information
easbar committed Dec 31, 2019
1 parent 03dd6d4 commit 210cddd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ public AbstractAdjustedWeighting(Weighting superWeighting) {
this.superWeighting = superWeighting;
}

@Override
public double getMinWeight(double distance) {
return superWeighting.getMinWeight(distance);
}

@Override
public long calcMillis(EdgeIteratorState edgeState, boolean reverse, int prevOrNextEdgeId) {
return superWeighting.calcMillis(edgeState, reverse, prevOrNextEdgeId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@ public void addEdges(Collection<EdgeIteratorState> edges) {
}
}

@Override
public double getMinWeight(double distance) {
return superWeighting.getMinWeight(distance);
}

@Override
public double calcWeight(EdgeIteratorState edgeState, boolean reverse, int prevOrNextEdgeId) {
double weight = superWeighting.calcWeight(edgeState, reverse, prevOrNextEdgeId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ public BlockAreaWeighting(Weighting superWeighting, GraphEdgeIdFinder.BlockArea
this.blockArea = blockArea;
}

@Override
public double getMinWeight(double distance) {
return superWeighting.getMinWeight(distance);
}

@Override
public double calcWeight(EdgeIteratorState edgeState, boolean reverse, int prevOrNextEdgeId) {
if (blockArea.contains(edgeState))
Expand Down

0 comments on commit 210cddd

Please sign in to comment.