public enum TraversalMode extends Enum<TraversalMode>
Enum Constant and Description |
---|
EDGE_BASED |
NODE_BASED |
Modifier and Type | Method and Description |
---|---|
int |
createTraversalId(EdgeIteratorState edgeState,
boolean reverse)
Returns the identifier to access the map of the shortest path tree according to the traversal
mode.
|
int |
createTraversalId(RoutingCHEdgeIteratorState chEdgeState,
boolean reverse) |
boolean |
isEdgeBased() |
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
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 final int createTraversalId(EdgeIteratorState edgeState, boolean reverse)
edgeState
- the current EdgeIteratorState
reverse
- true
, if traversal in backward direction. Will be true only for
backward searches in bidirectional algorithms.public final int createTraversalId(RoutingCHEdgeIteratorState chEdgeState, boolean reverse)
public boolean isEdgeBased()
Copyright © 2012–2022. All rights reserved.