public class CurvatureWeighting extends PriorityWeighting
KEYSPEED_CONVflagEncoder| Constructor and Description |
|---|
CurvatureWeighting(FlagEncoder flagEncoder,
PMap pMap) |
| Modifier and Type | Method and Description |
|---|---|
double |
calcWeight(EdgeIteratorState edge,
boolean reverse,
int prevOrNextEdgeId)
This method calculates the weighting a certain edgeState should be associated.
|
double |
getMinWeight(double distance)
Used only for the heuristic estimation in A*
|
String |
getName() |
protected double |
getRoadSpeed(EdgeIteratorState edge,
boolean reverse) |
calcMillisequals, getFlagEncoder, hashCode, matches, toString, weightingToFileNamepublic CurvatureWeighting(FlagEncoder flagEncoder, PMap pMap)
public double getMinWeight(double distance)
WeightinggetMinWeight in interface WeightinggetMinWeight in class PriorityWeightingpublic double calcWeight(EdgeIteratorState edge, boolean reverse, int prevOrNextEdgeId)
WeightingcalcWeight in interface WeightingcalcWeight in class PriorityWeightingedge - 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.prevOrNextEdgeId - if reverse is false this has to be the previous edgeId, if true it
has to be the next edgeId in the direction from start to end.protected double getRoadSpeed(EdgeIteratorState edge, boolean reverse)
public String getName()
getName in interface WeightinggetName in class FastestWeightingCopyright © 2012–2018. All rights reserved.