public class BlockAreaWeighting extends AbstractAdjustedWeighting
superWeightingINFINITE_U_TURN_COSTS| Constructor and Description |
|---|
BlockAreaWeighting(Weighting superWeighting,
GraphEdgeIdFinder.BlockArea blockArea) |
| Modifier and Type | Method and Description |
|---|---|
double |
calcEdgeWeight(EdgeIteratorState edgeState,
boolean reverse)
This method calculates the weight of a given
EdgeIteratorState. |
String |
getName() |
calcEdgeMillis, calcTurnMillis, calcTurnWeight, getFlagEncoder, getMinWeight, hasTurnCosts, toStringpublic BlockAreaWeighting(Weighting superWeighting, GraphEdgeIdFinder.BlockArea blockArea)
public double calcEdgeWeight(EdgeIteratorState edgeState, boolean reverse)
WeightingEdgeIteratorState. E.g. a high value indicates that the edge
should be avoided during shortest path search. Make sure that this method is very fast and optimized as this is
called potentially millions of times for one route or a lot more for nearly any preprocessing phase.calcEdgeWeight in interface WeightingcalcEdgeWeight in class AbstractAdjustedWeightingedgeState - the edge for which the weight should be calculatedreverse - if the specified edge is specified in reverse direction e.g. from the reverse
case of a bidirectional search.public String getName()
Copyright © 2012–2020. All rights reserved.