public interface KShortestPaths
| Modifier and Type | Method and Description |
|---|---|
LogicalSubPath[] |
kShortestPaths(PointOnNet[] startPoint, PointOnNet[] endPoint, int k, LODNetworkConstraint constraint, int direction)
Returns the k shortest paths from the start point to the end point.
|
void |
setLinkLevelSelector(LinkLevelSelector lls)
Sets link level selector.
|
void |
setNetworkAnalyst(NetworkAnalyst analyst)
This method allows caller to pass the network analyst object to this k shortest paths algorithm implementation, so that the algorithm can call the analysis functions provided by the network analyst, or access the network explorer associated with the network analyst.
|
LogicalSubPath[] kShortestPaths(PointOnNet[] startPoint, PointOnNet[] endPoint, int k, LODNetworkConstraint constraint, int direction) throws LODNetworkException
startPoint - candidate start pointsendPoint - candidate end pointsk - max number of paths to be returnedconstraint - network constraintdirection - NetworkExplorer.DIRECTION_FORWARD or NetworkExplorer.DIRECTION_BACKWARDLODNetworkExceptionvoid setLinkLevelSelector(LinkLevelSelector lls)
lls - link level selectorvoid setNetworkAnalyst(NetworkAnalyst analyst)