public enum TraversalMode extends Enum<TraversalMode>
Enum Constant and Description |
---|
EDGE_BASED_2DIR
The bidirectional edged-based traversal mode with turn restriction and cost support.
|
EDGE_BASED_2DIR_UTURN
Not recommended as it leads to strange routes that outsmart the turn costs.
|
NODE_BASED
The simplest traversal mode but without turn restrictions or cost support.
|
Modifier and Type | Method and Description |
---|---|
int |
createTraversalId(EdgeIteratorState iterState,
boolean reverse)
Returns the identifier to access the map of the shortest path tree according to the traversal
mode.
|
int |
createTraversalId(int baseNode,
int adjNode,
int edgeId,
boolean reverse)
If you have an EdgeIteratorState the other createTraversalId is preferred!
|
static TraversalMode |
fromString(String name) |
boolean |
hasUTurnSupport() |
boolean |
isEdgeBased() |
int |
reverseEdgeKey(int edgeKey) |
static TraversalMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TraversalMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TraversalMode NODE_BASED
public static final TraversalMode EDGE_BASED_2DIR
public static final TraversalMode EDGE_BASED_2DIR_UTURN
public static TraversalMode[] values()
for (TraversalMode c : TraversalMode.values()) System.out.println(c);
public static TraversalMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static TraversalMode fromString(String name)
public final int createTraversalId(EdgeIteratorState iterState, boolean reverse)
iterState
- the current EdgeIteratorState
reverse
- true
, if traversal in backward direction. Will be true only for
backward searches in bidirectional algorithms.public final int createTraversalId(int baseNode, int adjNode, int edgeId, boolean reverse)
public int reverseEdgeKey(int edgeKey)
public boolean isEdgeBased()
public final boolean hasUTurnSupport()
Copyright © 2012–2019. All rights reserved.