Package com.graphhopper.routing.util
Enum Class TraversalMode
- All Implemented Interfaces:
Serializable
,Comparable<TraversalMode>
,Constable
- Author:
- Peter Karich
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionfinal int
createTraversalId
(RoutingCHEdgeIteratorState chEdgeState, boolean reverse) final int
createTraversalId
(EdgeIteratorState edgeState, boolean reverse) Returns the identifier to access the map of the shortest path tree according to the traversal mode.boolean
static TraversalMode
Returns the enum constant of this class with the specified name.static TraversalMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NODE_BASED
-
EDGE_BASED
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
createTraversalId
Returns the identifier to access the map of the shortest path tree according to the traversal mode. E.g. returning the adjacent node id in node-based behavior whilst returning the edge id in edge-based behavior- Parameters:
edgeState
- the currentEdgeIteratorState
reverse
-true
, if traversal in backward direction. Will be true only for backward searches in bidirectional algorithms.- Returns:
- the identifier to access the shortest path tree
-
createTraversalId
-
isEdgeBased
public boolean isEdgeBased()
-