Modifier and Type | Method and Description |
---|---|
DecimalEncodedValue |
RestrictionTagParser.getTurnCostEnc() |
Constructor and Description |
---|
RestrictionTagParser(List<String> vehicleTypes,
DecimalEncodedValue turnCostEnc) |
Modifier and Type | Class and Description |
---|---|
class |
DecimalEncodedValueImpl
This class holds a signed decimal value and stores it as an integer value via a conversion factor and a certain
number of bits that determine the maximum value.
|
Modifier and Type | Method and Description |
---|---|
static DecimalEncodedValue |
MaxAxleLoad.create()
Currently enables to store 0.5 to max=0.5*2⁷ tons and infinity.
|
static DecimalEncodedValue |
MaxWidth.create()
Currently enables to store 0.1 to max=0.1*2⁷m and infinity.
|
static DecimalEncodedValue |
MaxHeight.create()
Currently enables to store 0.1 to max=0.1*2⁷m and infinity.
|
static DecimalEncodedValue |
MaxSlope.create() |
static DecimalEncodedValue |
AverageSlope.create() |
static DecimalEncodedValue |
MaxLength.create()
Currently enables to store 0.1 to max=0.1*2⁷m and infinity.
|
static DecimalEncodedValue |
Curvature.create() |
static DecimalEncodedValue |
MaxWeight.create()
Currently enables to store 0.1 to max=0.1*2⁸ tons and infinity.
|
static DecimalEncodedValue |
MaxSpeed.create() |
static DecimalEncodedValue |
TurnCost.create(String name,
int maxTurnCosts)
This creates an EncodedValue specifically for the turn costs
|
static DecimalEncodedValue |
VehicleSpeed.create(String name,
int speedBits,
double speedFactor,
boolean storeTwoDirections) |
static DecimalEncodedValue |
VehiclePriority.create(String name,
int speedBits,
double speedFactor,
boolean storeTwoDirections) |
DecimalEncodedValue |
EncodedValueLookup.getDecimalEncodedValue(String key) |
Modifier and Type | Method and Description |
---|---|
double |
VirtualEdgeIteratorState.get(DecimalEncodedValue property) |
double |
VirtualEdgeIteratorState.getReverse(DecimalEncodedValue property) |
EdgeIteratorState |
VirtualEdgeIteratorState.set(DecimalEncodedValue property,
double value) |
EdgeIteratorState |
VirtualEdgeIteratorState.set(DecimalEncodedValue property,
double fwd,
double bwd) |
EdgeIteratorState |
VirtualEdgeIteratorState.setReverse(DecimalEncodedValue property,
double value) |
Modifier and Type | Field and Description |
---|---|
protected DecimalEncodedValue |
VehicleTagParser.avgSpeedEnc |
protected DecimalEncodedValue |
BikeCommonTagParser.priorityEnc |
protected DecimalEncodedValue |
FootTagParser.priorityWayEncoder |
Modifier and Type | Method and Description |
---|---|
DecimalEncodedValue |
VehicleTagParser.getAverageSpeedEnc() |
DecimalEncodedValue |
VehicleEncodedValues.getAverageSpeedEnc() |
DecimalEncodedValue |
EncodingManager.getDecimalEncodedValue(String key) |
DecimalEncodedValue |
VehicleEncodedValues.getPriorityEnc() |
DecimalEncodedValue |
VehicleTagParser.getTurnCostEnc() |
DecimalEncodedValue |
VehicleEncodedValues.getTurnCostEnc() |
Modifier and Type | Field and Description |
---|---|
protected DecimalEncodedValue |
OSMMaxSpeedParser.carMaxSpeedEnc |
Modifier and Type | Method and Description |
---|---|
void |
RestrictionSetter.setRestrictions(List<Pair<GraphRestriction,RestrictionType>> restrictions,
DecimalEncodedValue turnCostEnc)
Adds all the turn restriction entries to the graph that are needed to enforce the given restrictions, for
a single turn cost encoded value.
|
Constructor and Description |
---|
OSMMaxAxleLoadParser(DecimalEncodedValue maxAxleLoadEncoder) |
OSMMaxHeightParser(DecimalEncodedValue heightEncoder) |
OSMMaxLengthParser(DecimalEncodedValue lengthEncoder) |
OSMMaxSpeedParser(DecimalEncodedValue carMaxSpeedEnc) |
OSMMaxWeightParser(DecimalEncodedValue weightEncoder) |
OSMMaxWidthParser(DecimalEncodedValue widthEncoder) |
Modifier and Type | Method and Description |
---|---|
static void |
OSMValueExtractor.extractMeter(IntsRef edgeFlags,
ReaderWay way,
DecimalEncodedValue valueEncoder,
List<String> keys) |
static void |
OSMValueExtractor.extractTons(IntsRef edgeFlags,
ReaderWay way,
DecimalEncodedValue valueEncoder,
List<String> keys) |
Modifier and Type | Field and Description |
---|---|
protected DecimalEncodedValue |
PriorityWeighting.priorityEnc |
protected DecimalEncodedValue |
AbstractWeighting.speedEnc |
Modifier and Type | Method and Description |
---|---|
DecimalEncodedValue |
DefaultTurnCostProvider.getTurnCostEnc() |
Modifier and Type | Field and Description |
---|---|
protected DecimalEncodedValue |
CustomWeightingHelper.avg_speed_enc |
protected DecimalEncodedValue |
CustomWeightingHelper.priority_enc |
Modifier and Type | Method and Description |
---|---|
static CustomWeighting |
CustomModelParser.createWeighting(BooleanEncodedValue accessEnc,
DecimalEncodedValue speedEnc,
DecimalEncodedValue priorityEnc,
EncodedValueLookup lookup,
TurnCostProvider turnCostProvider,
CustomModel customModel) |
void |
CustomWeightingHelper.init(EncodedValueLookup lookup,
DecimalEncodedValue avgSpeedEnc,
DecimalEncodedValue priorityEnc,
Map<String,JsonFeature> areas) |
Constructor and Description |
---|
CustomWeighting(BooleanEncodedValue baseAccessEnc,
DecimalEncodedValue baseSpeedEnc,
TurnCostProvider turnCostProvider,
com.graphhopper.routing.weighting.custom.CustomWeighting.Parameters parameters) |
Modifier and Type | Method and Description |
---|---|
double |
TurnCostStorage.get(DecimalEncodedValue turnCostEnc,
int fromEdge,
int viaNode,
int toEdge) |
double |
TurnCostStorage.Iterator.getCost(DecimalEncodedValue encodedValue) |
void |
TurnCostStorage.set(DecimalEncodedValue turnCostEnc,
int fromEdge,
int viaNode,
int toEdge,
double cost)
Sets the turn cost at the viaNode when going from "fromEdge" to "toEdge"
WARNING: It is tacitly assumed that for every encoder, this method is only called once per turn cost relation.
|
Modifier and Type | Method and Description |
---|---|
static void |
GHUtility.addRandomTurnCosts(Graph graph,
long seed,
BooleanEncodedValue accessEnc,
DecimalEncodedValue turnCostEnc,
int maxTurnCost,
TurnCostStorage turnCostStorage) |
static void |
GHUtility.buildRandomGraph(Graph graph,
Random random,
int numNodes,
double meanDegree,
boolean allowLoops,
boolean allowZeroDistance,
BooleanEncodedValue accessEnc,
DecimalEncodedValue speedEnc,
Double speed,
double pNonZeroLoop,
double pBothDir,
double pRandomDistanceOffset) |
double |
GHUtility.DisabledEdgeIterator.get(DecimalEncodedValue property) |
double |
EdgeIteratorState.get(DecimalEncodedValue property) |
double |
GHUtility.DisabledEdgeIterator.getReverse(DecimalEncodedValue property) |
double |
EdgeIteratorState.getReverse(DecimalEncodedValue property) |
static void |
GHUtility.printGraphForUnitTest(Graph g,
BooleanEncodedValue accessEnc,
DecimalEncodedValue speedEnc) |
static void |
GHUtility.printGraphForUnitTest(Graph g,
BooleanEncodedValue accessEnc,
DecimalEncodedValue speedEnc,
BBox bBox) |
EdgeIteratorState |
GHUtility.DisabledEdgeIterator.set(DecimalEncodedValue property,
double value) |
EdgeIteratorState |
EdgeIteratorState.set(DecimalEncodedValue property,
double value) |
EdgeIteratorState |
GHUtility.DisabledEdgeIterator.set(DecimalEncodedValue property,
double fwd,
double bwd) |
EdgeIteratorState |
EdgeIteratorState.set(DecimalEncodedValue property,
double fwd,
double bwd) |
EdgeIteratorState |
GHUtility.DisabledEdgeIterator.setReverse(DecimalEncodedValue property,
double value) |
EdgeIteratorState |
EdgeIteratorState.setReverse(DecimalEncodedValue property,
double value) |
static EdgeIteratorState |
GHUtility.setSpeed(double averageSpeed,
boolean fwd,
boolean bwd,
BooleanEncodedValue accessEnc,
DecimalEncodedValue avSpeedEnc,
EdgeIteratorState edge) |
static void |
GHUtility.setSpeed(double fwdSpeed,
double bwdSpeed,
BooleanEncodedValue accessEnc,
DecimalEncodedValue speedEnc,
Collection<EdgeIteratorState> edges) |
static void |
GHUtility.setSpeed(double fwdSpeed,
double bwdSpeed,
BooleanEncodedValue accessEnc,
DecimalEncodedValue speedEnc,
EdgeIteratorState... edges) |
static IntsRef |
GHUtility.setSpeed(double fwdSpeed,
double bwdSpeed,
BooleanEncodedValue accessEnc,
DecimalEncodedValue speedEnc,
IntsRef edgeFlags) |
Constructor and Description |
---|
DecimalDetails(String name,
DecimalEncodedValue ev) |
DecimalDetails(String name,
DecimalEncodedValue ev,
String infinityJsonValue,
double precision) |
Copyright © 2012–2022. All rights reserved.