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
SingleSourceShortestPaths
shortestPaths
in interface SingleSourceShortestPaths
startPoint
- start point candidatesendPoints
- array of end point candidatesconstraint
- network constraintdirection
- NetworkExplorer.DIRECTION_FORWARD or NetworkExplorer.DIRECTION_BACKWARDLODNetworkException
public LogicalLightSubPath[] shortestPathsLight(PointOnNet[] startPoint, PointOnNet[][] endPoints, LODNetworkConstraint constraint, int direction) throws LODNetworkException
SingleSourceShortestPaths
shortestPathsLight
in interface SingleSourceShortestPaths
startPoint
- start point candidatesendPoints
- array of end point candidatesconstraint
- network constraintdirection
- NetworkExplorer.DIRECTION_FORWARD or NetworkExplorer.DIRECTION_BACKWARDLODNetworkException
public void setNetworkAnalyst(NetworkAnalyst analyst)
SingleSourceShortestPaths
setNetworkAnalyst
in interface SingleSourceShortestPaths
public DefaultSingleSourceShortestPaths clone()
clone
in interface SingleSourceShortestPaths
clone
in class java.lang.Object