public class ShortestWeighting extends AbstractWeighting
flagEncoder| Constructor and Description |
|---|
ShortestWeighting(FlagEncoder flagEncoder) |
| Modifier and Type | Method and Description |
|---|---|
double |
calcWeight(EdgeIteratorState edgeState,
boolean reverse,
int prevOrNextEdgeId)
This method calculates the weighting a certain edgeState should be associated.
|
double |
getMinWeight(double currDistToGoal)
Used only for the heuristic estimation in A*
|
String |
getName() |
calcMillis, equals, getFlagEncoder, hashCode, matches, toString, weightingToFileNamepublic ShortestWeighting(FlagEncoder flagEncoder)
public double getMinWeight(double currDistToGoal)
Weightingpublic double calcWeight(EdgeIteratorState edgeState, boolean reverse, int prevOrNextEdgeId)
WeightingedgeState - 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.public String getName()
Copyright © 2012–2018. All rights reserved.