Package oracle.spatial.network.lod
Class DefaultSingleSourceShortestPaths
- java.lang.Object
-
- oracle.spatial.network.lod.DefaultSingleSourceShortestPaths
-
- All Implemented Interfaces:
SingleSourceShortestPaths
public class DefaultSingleSourceShortestPaths extends java.lang.Object implements SingleSourceShortestPaths
- Since:
- release specific (what release of product did this appear in)
-
-
Constructor Summary
Constructors Constructor Description DefaultSingleSourceShortestPaths(ShortestPath spAlgorithm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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).
-
-
-
Constructor Detail
-
DefaultSingleSourceShortestPaths
public DefaultSingleSourceShortestPaths(ShortestPath spAlgorithm)
-
-
Method Detail
-
shortestPaths
public LogicalSubPath[] shortestPaths(PointOnNet[] startPoint, PointOnNet[][] endPoints, LODNetworkConstraint constraint, int direction) throws LODNetworkException
Description copied from interface:SingleSourceShortestPaths
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).- Specified by:
shortestPaths
in interfaceSingleSourceShortestPaths
- Parameters:
startPoint
- start point candidatesendPoints
- array of end point candidatesconstraint
- network constraintdirection
- NetworkExplorer.DIRECTION_FORWARD or NetworkExplorer.DIRECTION_BACKWARD- Returns:
- Throws:
LODNetworkException
-
shortestPathsLight
public LogicalLightSubPath[] shortestPathsLight(PointOnNet[] startPoint, PointOnNet[][] endPoints, LODNetworkConstraint constraint, int direction) throws LODNetworkException
Description copied from interface:SingleSourceShortestPaths
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).- Specified by:
shortestPathsLight
in interfaceSingleSourceShortestPaths
- Parameters:
startPoint
- start point candidatesendPoints
- array of end point candidatesconstraint
- network constraintdirection
- NetworkExplorer.DIRECTION_FORWARD or NetworkExplorer.DIRECTION_BACKWARD- Returns:
- Throws:
LODNetworkException
-
setNetworkAnalyst
public void setNetworkAnalyst(NetworkAnalyst analyst)
Description copied from interface:SingleSourceShortestPaths
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. If network analyst is not needed by the shortest path algorithm, the algorithm can choose to do nothing with this method.- Specified by:
setNetworkAnalyst
in interfaceSingleSourceShortestPaths
-
clone
public DefaultSingleSourceShortestPaths clone()
- Specified by:
clone
in interfaceSingleSourceShortestPaths
- Overrides:
clone
in classjava.lang.Object
-
-