public class GPXExtension extends Object
A GPXEntry can either be at an undirected real (tower) node or at a directed virtual node.
If this is at a directed virtual node then incoming paths from any previous GPXExtension
should arrive through getIncomingVirtualEdge() and outgoing paths to any following
GPXExtension should start with getOutgoingVirtualEdge(). This is achieved by
penalizing other edges for routing. Note that virtual nodes are always connected to their
adjacent nodes via 2 virtual edges (not counting reverse virtual edges).
| Constructor and Description |
|---|
GPXExtension(com.graphhopper.util.GPXEntry entry,
com.graphhopper.storage.index.QueryResult queryResult)
Creates an undirected candidate for a real node.
|
GPXExtension(com.graphhopper.util.GPXEntry entry,
com.graphhopper.storage.index.QueryResult queryResult,
com.graphhopper.routing.VirtualEdgeIteratorState incomingVirtualEdge,
com.graphhopper.routing.VirtualEdgeIteratorState outgoingVirtualEdge)
Creates a directed candidate for a virtual node.
|
| Modifier and Type | Method and Description |
|---|---|
com.graphhopper.util.GPXEntry |
getEntry() |
com.graphhopper.util.EdgeIteratorState |
getIncomingVirtualEdge()
Returns the virtual edge that should be used by incoming paths.
|
com.graphhopper.util.EdgeIteratorState |
getOutgoingVirtualEdge()
Returns the virtual edge that should be used by outgoing paths.
|
com.graphhopper.storage.index.QueryResult |
getQueryResult() |
boolean |
isDirected()
Returns whether this GPXExtension is directed.
|
String |
toString() |
public GPXExtension(com.graphhopper.util.GPXEntry entry,
com.graphhopper.storage.index.QueryResult queryResult)
public GPXExtension(com.graphhopper.util.GPXEntry entry,
com.graphhopper.storage.index.QueryResult queryResult,
com.graphhopper.routing.VirtualEdgeIteratorState incomingVirtualEdge,
com.graphhopper.routing.VirtualEdgeIteratorState outgoingVirtualEdge)
public com.graphhopper.util.GPXEntry getEntry()
public com.graphhopper.storage.index.QueryResult getQueryResult()
public boolean isDirected()
public com.graphhopper.util.EdgeIteratorState getIncomingVirtualEdge()
IllegalStateException - if this GPXExtension is not directed.public com.graphhopper.util.EdgeIteratorState getOutgoingVirtualEdge()
IllegalStateException - if this GPXExtension is not directed.Copyright © 2012–2018. All rights reserved.