public class MotorcycleFlagEncoder extends CarFlagEncoder
badSurfaceSpeed, badSurfaceSpeedMap, defaultSpeedMap, trackTypeSpeedMapabsoluteBarriers, accessEnc, avgSpeedEnc, encodedValueLookup, ferries, intendedValues, LONG_TRIP_FERRY_SPEED, maxPossibleSpeed, oneways, potentialBarriers, restrictedValues, restrictions, roundaboutEnc, SHORT_TRIP_FERRY_SPEED, speedBits, speedDefault, speedFactor, UNKNOWN_DURATION_FERRY_SPEED| Constructor and Description |
|---|
MotorcycleFlagEncoder() |
MotorcycleFlagEncoder(int speedBits,
double speedFactor,
int maxTurnCosts) |
MotorcycleFlagEncoder(PMap properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyWayTags(ReaderWay way,
EdgeIteratorState edge)
Second parsing step.
|
protected double |
correctErrors(double bendiness)
A really small bendiness or a bendiness greater than 1 indicates an error in the calculation.
|
void |
createEncodedValues(List<EncodedValue> registerNewEncodedValue,
String prefix,
int index)
Define the place of the speedBits in the edge flags for car.
|
protected double |
discriminateSlowStreets(double bendiness,
double speed)
Streets that slow are not fun and probably in a town.
|
EncodingManager.Access |
getAccess(ReaderWay way)
Decide whether a way is routable for a given mode of travel.
|
int |
getVersion() |
IntsRef |
handleWayTags(IntsRef edgeFlags,
ReaderWay way,
EncodingManager.Access accept)
Analyze properties of a way and create the edge flags.
|
protected double |
increaseBendinessImpact(double bendiness)
A good bendiness should become a greater impact.
|
boolean |
supports(Class<?> feature)
Returns true if the feature class is supported like TurnWeighting or PriorityWeighting.
|
String |
toString() |
applyBadSurfaceSpeed, getSpeed, getTransportationMode, isBackwardOneway, isForwardOneway, isOneway, setSpeedTwoDirectionsapplyMaxSpeed, blockBarriersByDefault, blockFords, blockPrivate, defineNodeBits, equals, flagsDefault, getAccessEnc, getAllShared, getAverageSpeedEnc, getBooleanEncodedValue, getConditionalTagInspector, getDecimalEncodedValue, getEncodedValue, getEnumEncodedValue, getFerrySpeed, getIntEncodedValue, getMaxSpeed, getMaxSpeed, getMaxTurnCosts, getPropertiesString, handleNodeTags, hasEncodedValue, hashCode, init, isBlockFords, isRegistered, parseSpeed, setConditionalTagInspector, setEncodedValueLookup, setSpeed, supportsTurnCostspublic MotorcycleFlagEncoder()
public MotorcycleFlagEncoder(PMap properties)
public MotorcycleFlagEncoder(int speedBits,
double speedFactor,
int maxTurnCosts)
public int getVersion()
getVersion in interface FlagEncodergetVersion in class CarFlagEncoderpublic void createEncodedValues(List<EncodedValue> registerNewEncodedValue, String prefix, int index)
createEncodedValues in class CarFlagEncoderpublic EncodingManager.Access getAccess(ReaderWay way)
AbstractFlagEncodergetAccess in class CarFlagEncoderpublic IntsRef handleWayTags(IntsRef edgeFlags, ReaderWay way, EncodingManager.Access accept)
AbstractFlagEncoderhandleWayTags in class CarFlagEncoderpublic void applyWayTags(ReaderWay way, EdgeIteratorState edge)
AbstractFlagEncoderapplyWayTags in class AbstractFlagEncoderprotected double discriminateSlowStreets(double bendiness,
double speed)
protected double correctErrors(double bendiness)
protected double increaseBendinessImpact(double bendiness)
public boolean supports(Class<?> feature)
FlagEncodersupports in interface FlagEncodersupports in class AbstractFlagEncoderpublic String toString()
toString in class CarFlagEncoderCopyright © 2012–2020. All rights reserved.