public class RoutingCHEdgeIteratorStateImpl extends Object implements RoutingCHEdgeIteratorState
Constructor and Description |
---|
RoutingCHEdgeIteratorStateImpl(CHStorage store,
BaseGraph baseGraph,
com.graphhopper.storage.BaseGraph.EdgeIteratorStateImpl baseEdgeState,
Weighting weighting) |
Modifier and Type | Method and Description |
---|---|
int |
getAdjNode() |
int |
getBaseNode() |
int |
getEdge()
The CH edge ID of this edge state.
|
int |
getOrigEdge()
The original/base/query graph edge ID of the edge this CH edge state represents or
EdgeIterator.NO_EDGE
if this is edge state is a shortcut |
int |
getOrigEdgeKeyFirst()
For shortcuts of an edge-based CH graph this is the key of the first original edge of this edge state
*in the direction of the shortcut*, i.e.
|
int |
getOrigEdgeKeyLast() |
int |
getSkippedEdge1()
The CH edge ID of the first skipped edge/shortcut of this edge state
|
int |
getSkippedEdge2()
The CH edge ID of the second skipped edge/shortcut of this edge state
|
double |
getWeight(boolean reverse) |
boolean |
isShortcut() |
public RoutingCHEdgeIteratorStateImpl(CHStorage store, BaseGraph baseGraph, com.graphhopper.storage.BaseGraph.EdgeIteratorStateImpl baseEdgeState, Weighting weighting)
public int getEdge()
RoutingCHEdgeIteratorState
RoutingCHEdgeIteratorState.getOrigEdge()
getEdge
in interface RoutingCHEdgeIteratorState
public int getOrigEdge()
RoutingCHEdgeIteratorState
EdgeIterator.NO_EDGE
if this is edge state is a shortcutgetOrigEdge
in interface RoutingCHEdgeIteratorState
public int getOrigEdgeKeyFirst()
RoutingCHEdgeIteratorState
getOrigEdgeKeyFirst
in interface RoutingCHEdgeIteratorState
public int getOrigEdgeKeyLast()
getOrigEdgeKeyLast
in interface RoutingCHEdgeIteratorState
#getOrigEdgeKeyFirst(), but for the last edge, i.e. the one the shortcut points to.
For shortcuts of an edge-based CH graph this is the key of the last original edge of this edge state, otherwise
it is the key of the original/base/query graph edge this CH edge state represents.
public int getBaseNode()
getBaseNode
in interface RoutingCHEdgeIteratorState
public int getAdjNode()
getAdjNode
in interface RoutingCHEdgeIteratorState
public boolean isShortcut()
isShortcut
in interface RoutingCHEdgeIteratorState
public int getSkippedEdge1()
RoutingCHEdgeIteratorState
getSkippedEdge1
in interface RoutingCHEdgeIteratorState
public int getSkippedEdge2()
RoutingCHEdgeIteratorState
getSkippedEdge2
in interface RoutingCHEdgeIteratorState
public double getWeight(boolean reverse)
getWeight
in interface RoutingCHEdgeIteratorState
Copyright © 2012–2023. All rights reserved.