public abstract class AbstractAdjustedWeighting extends Object implements Weighting
| Modifier and Type | Field and Description |
|---|---|
protected Weighting |
superWeighting |
| Constructor and Description |
|---|
AbstractAdjustedWeighting(Weighting superWeighting) |
| Modifier and Type | Method and Description |
|---|---|
long |
calcMillis(EdgeIteratorState edgeState,
boolean reverse,
int prevOrNextEdgeId)
This method calculates the time taken (in milli seconds) for the specified edgeState and
optionally include the turn costs (in seconds) of the previous (or next) edgeId via
prevOrNextEdgeId.
|
FlagEncoder |
getFlagEncoder()
Returns the flagEncoder of the superWeighting.
|
boolean |
matches(HintsMap reqMap)
Returns true if the specified weighting and encoder matches to this Weighting.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcalcWeight, getMinWeight, getNameprotected final Weighting superWeighting
public AbstractAdjustedWeighting(Weighting superWeighting)
public long calcMillis(EdgeIteratorState edgeState, boolean reverse, int prevOrNextEdgeId)
WeightingcalcMillis in interface Weightingpublic FlagEncoder getFlagEncoder()
getFlagEncoder in interface Weightingpublic boolean matches(HintsMap reqMap)
WeightingCopyright © 2012–2018. All rights reserved.