public interface FlagEncoder extends TurnCostEncoder
TurnCostEncoder.NoTurnCostsEncoder
Modifier and Type | Field and Description |
---|---|
static int |
K_ROUNDABOUT
Reports whether this edge is part of a roundabout.
|
Modifier and Type | Method and Description |
---|---|
InstructionAnnotation |
getAnnotation(long flags,
Translation tr) |
double |
getDouble(long flags,
int key)
Returns arbitrary double value identified by the specified key.
|
long |
getLong(long flags,
int key)
Returns arbitrary long value identified by the specified key.
|
double |
getMaxSpeed() |
double |
getReverseSpeed(long flags) |
double |
getSpeed(long flags) |
int |
getVersion() |
boolean |
isBackward(long flags)
Reports whether the edge is available in backward direction (i.e.
|
boolean |
isBool(long flags,
int key)
Returns arbitrary boolean value identified by the specified key.
|
boolean |
isForward(long flags)
Reports whether the edge is available in forward direction (i.e.
|
boolean |
isRegistered() |
long |
setAccess(long flags,
boolean forward,
boolean backward)
Sets the access of the edge.
|
long |
setBool(long flags,
int key,
boolean value) |
long |
setDouble(long flags,
int key,
double value) |
long |
setLong(long flags,
int key,
long value) |
long |
setProperties(double speed,
boolean forward,
boolean backward)
Sets speed and access properties.
|
long |
setReverseSpeed(long flags,
double speed)
Sets the reverse speed in the flags.
|
long |
setSpeed(long flags,
double speed)
Sets the speed in km/h.
|
boolean |
supports(Class<?> feature)
Returns true if the feature class is supported like TurnWeighting or PriorityWeighting.
|
getTurnCost, getTurnFlags, isTurnRestricted
static final int K_ROUNDABOUT
int getVersion()
double getMaxSpeed()
double getSpeed(long flags)
long setSpeed(long flags, double speed)
double getReverseSpeed(long flags)
long setReverseSpeed(long flags, double speed)
long setAccess(long flags, boolean forward, boolean backward)
long setProperties(double speed, boolean forward, boolean backward)
boolean isForward(long flags)
boolean isBackward(long flags)
boolean isBool(long flags, int key)
long setBool(long flags, int key, boolean value)
long getLong(long flags, int key)
long setLong(long flags, int key, long value)
double getDouble(long flags, int key)
long setDouble(long flags, int key, double value)
boolean supports(Class<?> feature)
InstructionAnnotation getAnnotation(long flags, Translation tr)
boolean isRegistered()
Copyright © 2012–2018. All rights reserved.