public abstract class AbstractWeighting extends Object implements Weighting
| Modifier and Type | Field and Description |
|---|---|
protected FlagEncoder |
flagEncoder |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractWeighting(FlagEncoder encoder) |
| 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.
|
boolean |
equals(Object obj) |
FlagEncoder |
getFlagEncoder() |
int |
hashCode() |
boolean |
matches(HintsMap reqMap)
Returns true if the specified weighting and encoder matches to this Weighting.
|
String |
toString() |
static String |
weightingToFileName(Weighting w)
Replaces all characters which are not numbers, characters or underscores with underscores
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcalcWeight, getMinWeight, getNameprotected final FlagEncoder flagEncoder
protected AbstractWeighting(FlagEncoder encoder)
public long calcMillis(EdgeIteratorState edgeState, boolean reverse, int prevOrNextEdgeId)
WeightingcalcMillis in interface Weightingpublic boolean matches(HintsMap reqMap)
Weightingpublic FlagEncoder getFlagEncoder()
getFlagEncoder in interface Weightingpublic static String weightingToFileName(Weighting w)
Copyright © 2012–2018. All rights reserved.