public class DefaultSingleSourceShortestPaths extends java.lang.Object implements SingleSourceShortestPaths
| Constructor and Description |
|---|
DefaultSingleSourceShortestPaths(ShortestPath spAlgorithm) |
| Modifier and Type | Method and Description |
|---|---|
DefaultSingleSourceShortestPaths |
clone() |
void |
setNetworkAnalyst(NetworkAnalyst analyst)
This method allows caller to pass the network analyst object to this shortest path 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[] |
shortestPaths(PointOnNet[] startPoint, PointOnNet[][] endPoints, LODNetworkConstraint constraint, int direction)
Returns the shortest paths from the start point (one of the start point candidates) to each set of end points (one of the end point candidates).
|
LogicalLightSubPath[] |
shortestPathsLight(PointOnNet[] startPoint, PointOnNet[][] endPoints, LODNetworkConstraint constraint, int direction)
Returns the light weight shortest paths from the start point (one of the start point candidates) to each set of end points (one of the end point candidates).
|
public DefaultSingleSourceShortestPaths(ShortestPath spAlgorithm)
public LogicalSubPath[] shortestPaths(PointOnNet[] startPoint, PointOnNet[][] endPoints, LODNetworkConstraint constraint, int direction) throws LODNetworkException
SingleSourceShortestPathsshortestPaths in interface SingleSourceShortestPathsstartPoint - start point candidatesendPoints - array of end point candidatesconstraint - network constraintdirection - NetworkExplorer.DIRECTION_FORWARD or NetworkExplorer.DIRECTION_BACKWARDLODNetworkExceptionpublic LogicalLightSubPath[] shortestPathsLight(PointOnNet[] startPoint, PointOnNet[][] endPoints, LODNetworkConstraint constraint, int direction) throws LODNetworkException
SingleSourceShortestPathsshortestPathsLight in interface SingleSourceShortestPathsstartPoint - start point candidatesendPoints - array of end point candidatesconstraint - network constraintdirection - NetworkExplorer.DIRECTION_FORWARD or NetworkExplorer.DIRECTION_BACKWARDLODNetworkExceptionpublic void setNetworkAnalyst(NetworkAnalyst analyst)
SingleSourceShortestPathssetNetworkAnalyst in interface SingleSourceShortestPathspublic DefaultSingleSourceShortestPaths clone()
clone in interface SingleSourceShortestPathsclone in class java.lang.Object