public class CurvatureWeighting extends PriorityWeighting
SPEED_CONV
accessEnc, flagEncoder
INFINITE_U_TURN_COSTS
Constructor and Description |
---|
CurvatureWeighting(FlagEncoder flagEncoder,
PMap pMap) |
CurvatureWeighting(FlagEncoder flagEncoder,
PMap pMap,
TurnCostProvider turnCostProvider) |
Modifier and Type | Method and Description |
---|---|
double |
calcEdgeWeight(EdgeIteratorState edgeState,
boolean reverse)
In most cases subclasses should only override this method to change the edge-weight.
|
double |
getMinWeight(double distance)
Used only for the heuristic estimation in A*
|
String |
getName() |
protected double |
getRoadSpeed(EdgeIteratorState edge,
boolean reverse) |
calcEdgeMillis
calcTurnMillis, calcTurnWeight, equals, getFlagEncoder, hashCode, hasTurnCosts, toString
public CurvatureWeighting(FlagEncoder flagEncoder, PMap pMap)
public CurvatureWeighting(FlagEncoder flagEncoder, PMap pMap, TurnCostProvider turnCostProvider)
public double getMinWeight(double distance)
Weighting
getMinWeight
in interface Weighting
getMinWeight
in class PriorityWeighting
public double calcEdgeWeight(EdgeIteratorState edgeState, boolean reverse)
AbstractWeighting
TurnCostProvider
implementation to the constructor instead.calcEdgeWeight
in interface Weighting
calcEdgeWeight
in class PriorityWeighting
edgeState
- 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.protected double getRoadSpeed(EdgeIteratorState edge, boolean reverse)
public String getName()
getName
in interface Weighting
getName
in class FastestWeighting
Copyright © 2012–2020. All rights reserved.