public class ShortestWeighting extends AbstractWeighting
accessEnc, speedEncINFINITE_U_TURN_COSTS| Constructor and Description |
|---|
ShortestWeighting(BooleanEncodedValue accessEnc,
DecimalEncodedValue speedEnc) |
ShortestWeighting(BooleanEncodedValue accessEnc,
DecimalEncodedValue speedEnc,
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 currDistToGoal)
Used only for the heuristic estimation in A*
|
String |
getName() |
calcEdgeMillis, calcTurnMillis, calcTurnWeight, edgeHasNoAccess, getTurnCostProvider, hasTurnCosts, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcalcEdgeWeightWithAccesspublic ShortestWeighting(BooleanEncodedValue accessEnc, DecimalEncodedValue speedEnc)
public ShortestWeighting(BooleanEncodedValue accessEnc, DecimalEncodedValue speedEnc, TurnCostProvider turnCostProvider)
public double getMinWeight(double currDistToGoal)
Weightingpublic double calcEdgeWeight(EdgeIteratorState edgeState, boolean reverse)
AbstractWeightingTurnCostProvider implementation to the constructor instead.calcEdgeWeight in interface WeightingcalcEdgeWeight in class AbstractWeightingedgeState - 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–2022. All rights reserved.