public class NetworkAnalyst
extends java.lang.Object
NetworkAnalyst analyst = LODNetworkManager.getNetworkAnalyst(networkIO);where networkIO is an NetworkIO object for the network of interest.
Users can define their own link cost calculators or node cost calculators. Note that if you choose to use your own link or node cost calculators, you must set both link and node cost calculators in pairs, that is, there must be the same number of link cost calculators as that of the node cost calculators, and the ith link cost calculator must correspond to the ith node cost calculator.
Modifier and Type | Field and Description |
---|---|
static int |
ACCURACY_LEVEL_HIGH |
static int |
ACCURACY_LEVEL_HIGHEST |
static int |
ACCURACY_LEVEL_LOW |
static int |
ACCURACY_LEVEL_LOWEST |
static int |
ACCURACY_LEVEL_MEDIUM |
static int |
BREADTH_FIRST_SEARCH
Constant for bread-first-search
|
static int |
DEPTH_FIRST_SEARCH
Constant for depth-first-search
|
Constructor and Description |
---|
NetworkAnalyst(NetworkIO reader, NetworkAnalysisConfig config)
Constructs an instance of NetworkAnalyst.
|
Modifier and Type | Method and Description |
---|---|
LogicalSubPath[] |
allDetourShortestPathsWithCostLimit(PointOnNet[] startPoints, PointOnNet[] endPoints, double maxCost, LODNetworkConstraint constraint)
Finds all paths from the start points to the end points with the following properties: The cost of the path is smaller than or equal to the given cost bound The subpath from the start points to any intermediate node on the path is the shortest possible path from the start points to that node.
|
LogicalSubPath[] |
allDetourShortestPathsWithDepthLimit(PointOnNet[] startPoints, PointOnNet[] endPoints, int maxDepth, LODNetworkConstraint constraint)
Finds all paths from the start points to the end points with the following properties: The depth of the path is smaller than or equal to the given depth bound The subpath from the start points to any intermediate node on the path is the shortest possible path from the start points to that node.
|
ClusterResult |
bisectClustering(PointOnNet[] points, int numClusters, int userDataCategory, int xCoordUserDataIndex, int yCoordUserDataIndex, int geometryUserDataIndex) |
OrderedLongSet[] |
findConnectedComponents(int linkLevel)
Finds the connected components for the given link level.
|
int |
findConnectedComponentsInPartition(int partitionId, int linkLevel, int startComponentId, java.util.ArrayList<oracle.spatial.network.lod.AnalysisUtility.NodeComponent> nodeComponentArray)
Find the connected components within a partition, with all the external nodes and boundary links included.
|
OrderedLongSet |
findConnectedNodes(int searchMethod, long nodeId, int linkLevel, LODNetworkConstraint constraint, LODGoalNode goalNode)
|
OrderedLongSet |
findConnectedNodes(int searchMethod, PointOnNet[] points, int linkLevel, LODNetworkConstraint constraint, LODGoalNode goalNode)
Finds the nodes connected to the given points.
|
Feature[] |
findReachableFeatures(int searchMethod, PointOnNet[] startPoints, int linkLevel, int[] featureLayerIds, LODNetworkConstraint constraint, FeatureFilter featureFilter)
Finds the nodes reachable from the given node.
|
OrderedLongSet |
findReachableNodes(int searchMethod, long startNodeId, int linkLevel, LODNetworkConstraint constraint, LODGoalNode goalNode)
|
OrderedLongSet |
findReachableNodes(int searchMethod, PointOnNet[] startPoints, int linkLevel, LODNetworkConstraint constraint, LODGoalNode goalNode)
Finds the nodes reachable from the given points.
|
Feature[] |
findReachingFeatures(int searchMethod, PointOnNet[] startPoints, int linkLevel, int[] featureLayerIds, LODNetworkConstraint constraint, FeatureFilter featureFilter)
Finds the nodes that can reach the given node.
|
OrderedLongSet |
findReachingNodes(int searchMethod, long endNodeId, int linkLevel, LODNetworkConstraint constraint, LODGoalNode goalNode)
|
OrderedLongSet |
findReachingNodes(int searchMethod, PointOnNet[] endPoints, int linkLevel, LODNetworkConstraint constraint, LODGoalNode goalNode)
Finds the nodes that can reach the given points.
|
LODGoalNode[] |
getGoalNodeFilters()
Returns the default goal node filters to be applied to all analysis functions.
|
KShortestPaths |
getKShortestPathsAlgorithm()
Returns the default k-shortest paths algorithm.
|
LinkCostCalculator |
getLinkCostCalculator()
Returns the primary link cost calculator.
|
LinkCostCalculator[] |
getLinkCostCalculators()
Returns the link cost calculators.
|
LinkLevelSelector |
getLinkLevelSelector()
Returns the link level selector to be used by all analysis functions.
|
LODNetworkConstraint[] |
getNetworkConstraints()
Returns the default network constraints to be applied to all analysis functions.
|
NetworkExplorer |
getNetworkExplorer()
Returns the network explorer used by this network analyst.
|
NodeCostCalculator |
getNodeCostCalculator()
Returns the primary node cost calculator.
|
NodeCostCalculator[] |
getNodeCostCalculators()
Returns the node cost calculators.
|
PairwiseCostCalculator |
getPairwiseCostCalculator()
Returns the default pairwise cost calculator.
|
PairwiseShortestPaths |
getPairwiseShortestPathsAlgorithm()
Returns the default pairwise shortest paths algorithm.
|
ShortestPath |
getShortestPathAlgorithm()
Returns the default shortest path algorithm.
|
TSP |
getTspAlgorithm()
Returns the default TSP algorithm.
|
boolean |
isReachable(Feature[] start, Feature[] end, int linkLevel, LODNetworkConstraint constraint)
Checks whether there is a path from the start features to the end features using the given link level for long-haul search.
|
boolean |
isReachable(long startNodeId, long endNodeId, int linkLevel, LODNetworkConstraint constraint)
Checks whether there is a path from the start node to the end node using the given link level for long-haul search.
|
boolean |
isReachable(PointOnNet[] startPoints, PointOnNet[] endPoints, int linkLevel, LODNetworkConstraint constraint)
Checks whether there is a path from the start node to the end node using the given link level for long-haul search.
|
ClusterResult |
kMeansClustering(PointOnNet[] points, int numClusters, int maxSize, int minSize, int userDataCategory, int xCoordUserDataIndex, int yCoordUserDataIndex, int geometryUserDataIndex) |
PathFeature[] |
kShortestPaths(Feature[] start, Feature[] end, int k, LODNetworkConstraint constraint, KShortestPaths algorithm)
Finds the top k shortest paths from the start feature candidates to the end feature candidates.
|
LogicalSubPath[] |
kShortestPaths(PointOnNet[] startPoint, PointOnNet[] endPoint, int k, LODNetworkConstraint constraint)
Returns K shortest loopless paths from the start point candidates to the end point candidates.
|
LogicalSubPath[] |
kShortestPaths(PointOnNet[] startPoint, PointOnNet[] endPoint, int k, LODNetworkConstraint constraint, KShortestPaths kspAlgorithm)
Returns K shortest loopless paths from the start point candiates to the end point candidates.
|
long[] |
mcst(int linkLevel, LODNetworkConstraint constraint)
Deprecated.
|
long[] |
mcst(int linkLevel, LODNetworkConstraint constraint, NetworkUpdate tmpNetworkUpdate)
Deprecated.
|
SpanningTree |
mst(int linkLevel, LODNetworkConstraint constraint)
Returns the minimum-spanning-tree for the network on the given link level.
|
SpanningTree |
mst(int linkLevel, LODNetworkConstraint constraint, MinimumSpanningTree algorithm)
Returns the minimum-spanning-tree for the network on the given link level.
|
FeaturePath[] |
nearestFeatures(Feature[] start, int numberOfFeatures, int[] featureLayerIds, LODNetworkConstraint constraint, FeatureFilter featureFilter)
Finds the nearest features from the start feature candidates.
|
FeaturePath[] |
nearestFeatures(PointOnNet[] startPoints, int numberOfFeatures, int[] featureLayerIds, LODNetworkConstraint constraint, FeatureFilter featureFilter)
Finds the nearest features from the start point candidates.
|
LogicalSubPath[] |
nearestNeighbors(PointOnNet[] startPoints, int numberOfNeighbors, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter)
Finds the nearest neighbors from the start point candidates.
|
LogicalSubPath[] |
nearestNeighbors(PointOnNet startPoint, int numberOfNeighbors, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter)
Finds the nearest neighbors from the start point.
|
LogicalSubPath[] |
nearestNeighbors(PointOnNet startPoint, int numberOfNeighbors, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter)
Finds the nearest neighbors from the start point.
|
LogicalSubPath[] |
nearestNeighbors(PointOnNet startPoint, int numberOfNeighbors, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter)
Finds the nearest neighbors from the start point.
|
LogicalLightSubPath[] |
nearestNeighborsLight(PointOnNet[] startPoints, int numberOfNeighbors, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter)
Finds the nearest neighbors from the start point candidates.
|
PathToPoint[] |
nearestPoints(PointOnNet[] startPoints, PointOnNet[][] targetPoints, int k, LODNetworkConstraint constraint, boolean returnFullPath)
Returns the top k nearest target points from the start points.
|
FeaturePath[] |
nearestReachingFeatures(Feature[] end, int numberOfFeatures, int[] featureLayerIds, LODNetworkConstraint constraint, FeatureFilter featureFilter)
Finds the nearest reaching features to the end feature candidates.
|
FeaturePath[] |
nearestReachingFeatures(PointOnNet[] endPoints, int numberOfFeatures, int[] featureLayerIds, LODNetworkConstraint constraint, FeatureFilter featureFilter)
Finds the nearest reaching features to the end point candidates.
|
LogicalSubPath[] |
nearestReachingNeighbors(PointOnNet[] endPoints, int numberOfNeighbors, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter)
Finds the nearest reaching neighbors to the end point candidates.
|
LogicalSubPath[] |
nearestReachingNeighbors(PointOnNet endPoint, int numberOfNeighbors, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter)
Finds the nearest reaching neighbors to the end point.
|
LogicalSubPath[] |
nearestReachingNeighbors(PointOnNet endPoint, int numberOfNeighbors, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter)
Finds the nearest reaching neighbors to the end point.
|
LogicalSubPath[] |
nearestReachingNeighbors(PointOnNet endPoint, int numberOfNeighbors, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter)
Finds the nearest reaching neighbors to the end point.
|
LogicalLightSubPath[] |
nearestReachingNeighborsLight(PointOnNet[] endPoints, int numberOfNeighbors, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter)
Finds the nearest reaching neighbors to the end point candidates.
|
PathToPoint[] |
nearestReachingPoints(PointOnNet[] startPoints, PointOnNet[][] targetPoints, int k, LODNetworkConstraint constraint, boolean returnFullPath)
Returns the top k nearest reaching target points to the start points.
|
NetworkBuffer |
networkBuffer(PointOnNet[] startPoints, double cost, LODNetworkConstraint constraint)
Computes network buffer within the given cost from the start point candidates.
|
NetworkBuffer |
reachingNetworkBuffer(PointOnNet[] endPoints, double cost, LODNetworkConstraint constraint)
Computes network buffer within the given cost to the end point candidates.
|
void |
resetCostCalculators()
Restores the default settings of link cost calculators and node cost calculators, which uses the DefaultLinkCostCalculator as the primary link cost calculator and the DefaultNodeCostCalculator as the primary node cost calculator.
|
PathFeature[] |
reverseKShortestPaths(Feature[] end, Feature[] start, int k, LODNetworkConstraint constraint, KShortestPaths algorithm)
Finds the top k shortest paths from the start feature candidates to the end feature candidates, using reverse search direction.
|
LogicalSubPath[] |
reverseKShortestPaths(PointOnNet[] endPoint, PointOnNet[] startPoint, int k, LODNetworkConstraint constraint)
Returns K shortest loopless paths from the start point candidates to the end point candidates, using reverse search direction.
|
LogicalSubPath[] |
reverseKShortestPaths(PointOnNet[] endPoint, PointOnNet[] startPoint, int k, LODNetworkConstraint constraint, KShortestPaths kspAlgorithm)
Returns reverse K shortest loopless paths from the start point candiates to the end point candidates, using reverse search direction.
|
PathFeature |
reverseShortestPath(Feature[] end, Feature[] start, LODNetworkConstraint constraint, ShortestPath algorithm)
Finds the shortest path from the start feature candidates to the end feature candidates, using reverse search direction.
|
LogicalSubPath |
reverseShortestPath(PointOnNet[] endPoints, PointOnNet[] startPoints, LODNetworkConstraint constraint, ShortestPath algorithm)
Finds the shortest path using the input algorithm, using reverse search direction.
|
void |
setKShortestPathsAlgorithm(KShortestPaths kspAlgorithm)
Sets the default k-shortest paths algorithm.
|
void |
setLinkCostCalculator(LinkCostCalculator calculator)
Sets the primary link cost calculator, and removes all secondary link cost calculators.
|
void |
setLinkCostCalculators(LinkCostCalculator[] calculators)
Sets the link cost calculators.
|
void |
setNetworkExplorer(NetworkExplorer ne) |
void |
setNetworkUpdate(java.util.HashMap<java.lang.Integer,NetworkUpdate> networkUpdates)
Sets the network update objects.
|
void |
setNetworkUpdates(java.util.HashMap<java.lang.Integer,NetworkUpdate> networkUpdates)
Sets the network update objects.
|
void |
setNodeCostCalculator(NodeCostCalculator calculator)
Sets the primary node cost calculator, and removes all secondary node cost calculators.
|
void |
setNodeCostCalculators(NodeCostCalculator[] calculators)
Sets the node cost calculators.
|
void |
setPairwiseCostCalculator(PairwiseCostCalculator pwcc)
Sets the default pairwise cost calculator.
|
void |
setPairwiseShortestPathsAlgorithm(PairwiseShortestPaths pwspAlgorithm)
Sets the default pairwise shortest paths algorithm.
|
void |
setShortestPathAlgorithm(ShortestPath spAlgorithm)
Sets the default shortest path algorithm.
|
void |
setTspAlgorithm(TSP tspAlgorithm)
Sets the default TSP algorithm.
|
PathFeature |
shortestPath(Feature[] start, Feature[] end, LODNetworkConstraint constraint, ShortestPath algorithm)
Finds the shortest path from the start feature candidates to the end feature candidates.
|
LogicalSubPath |
shortestPath(PointOnNet[] startPoints, PointOnNet[] endPoints, LODNetworkConstraint constraint, ShortestPath algorithm)
Finds the shortest path using the input algorithm.
|
PathFeature |
shortestPathAStar(Feature[] start, Feature[] end, LODNetworkConstraint constraint, HeuristicCostFunction hcf, LinkLevelSelector lls)
Finds the shortest path from the start feature candidates to the end feature candidates.
|
LogicalSubPath |
shortestPathAStar(PointOnNet[] startPoints, PointOnNet[] endPoints, LODNetworkConstraint constraint, HeuristicCostFunction hcf, LinkLevelSelector lls)
Finds the shortest path using A* algorithm.
|
LogicalSubPath |
shortestPathAStar(PointOnNet startPoint, PointOnNet endPoint, int searchLinkLevel, LODNetworkConstraint constraint, HeuristicCostFunction hcf, double[] costThresholds)
Finds the shortest path using A* algorithm with dynamic link level selector.
|
LogicalSubPath |
shortestPathAStar(PointOnNet startPoint, PointOnNet endPoint, LODNetworkConstraint constraint, HeuristicCostFunction hcf, double[] costThresholds)
Finds the shortest path using A* algorithm using dynamic link level selector.
|
LogicalSubPath |
shortestPathAStar(PointOnNet startPoint, PointOnNet endPoint, LODNetworkConstraint constraint, HeuristicCostFunction hcf, LinkLevelSelector lls)
Finds the shortest path using A* algorithm.
|
PathFeature |
shortestPathDijkstra(Feature[] start, Feature[] end, LODNetworkConstraint constraint, LinkLevelSelector lls)
Finds the shortest path from the start feature candidates to the end feature candidates.
|
LogicalSubPath |
shortestPathDijkstra(PointOnNet[] startPoints, PointOnNet[] endPoints, int searchLinkLevel, int maxHighLevelNodesToConsider, LODNetworkConstraint constraint)
Finds the shortest path using Dijkstra algorithm where the long-haul path is computed on the given link level.
|
LogicalSubPath |
shortestPathDijkstra(PointOnNet[] startPoints, PointOnNet[] endPoints, int searchLinkLevel, LODNetworkConstraint constraint)
Finds the shortest path using Dijkstra algorithm where the long-haul path is computed on the given link level.
|
LogicalSubPath |
shortestPathDijkstra(PointOnNet[] startPoints, PointOnNet[] endPoints, LODNetworkConstraint constraint, LinkLevelSelector lls)
Finds the shortest path using Dijkstra algorithm with the given link level selector.
|
LogicalSubPath |
shortestPathDijkstra(PointOnNet startPoint, PointOnNet endPoint, int searchLinkLevel, LODNetworkConstraint constraint)
Finds the shortest path using Dijkstra algorithm where the long-haul path is computed on the given link level.
|
LogicalSubPath |
shortestPathDijkstra(PointOnNet startPoint, PointOnNet endPoint, LODNetworkConstraint constraint)
Finds the shortest path on the minimum link level using Dijkstra algorithm.
|
LogicalSubPath |
shortestPathDijkstraMaxLevel(PointOnNet startPoint, PointOnNet endPoint, LODNetworkConstraint constraint)
Finds the shortest path using Dijkstra algorithm where the long-haul path is computed on the maximum link level.
|
LogicalSubPath |
shortestPathHierarchical(PointOnNet[] startPoints, PointOnNet[] endPoints, int searchLinkLevel, int maxHighLevelNodesToConsider, LODNetworkConstraint constraint, ShortestPath algorithm)
Finds the shortest path from the start point candidates to the end point candidates.
|
LogicalSubPath[] |
traceIn(PointOnNet[] endPoints, double cost, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter, boolean returnBoundaryPointsOnly)
Finds the nodes and partial links within the given cost to the end point candidates.
|
LogicalSubPath[] |
traceIn(PointOnNet endPoint, double cost, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter)
Finds the nodes and partial links within the given cost to the end point.
|
LogicalSubPath[] |
traceIn(PointOnNet endPoint, double cost, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter)
Finds the nodes and partial links within the given cost to the end point.
|
LogicalSubPath[] |
traceIn(PointOnNet endPoint, double cost, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter)
Finds the nodes and partial links within the given cost to the end point.
|
LogicalLightSubPath[] |
traceInLight(PointOnNet[] startPoints, double cost, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter, boolean returnBoundaryPointsOnly)
Finds the nodes and partial links within the given cost to the end point candidates.
|
LogicalSubPath[] |
traceOut(PointOnNet[] startPoints, double cost, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter, boolean returnBoundaryPointsOnly)
Finds the nodes and partial links within the given cost from the start point candidates.
|
LogicalSubPath[] |
traceOut(PointOnNet startPoint, double cost, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter)
Finds the nodes and partial links within the given cost from the start point.
|
LogicalSubPath[] |
traceOut(PointOnNet startPoint, double cost, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter)
Finds the nodes and partial links within the given cost from the start point.
|
LogicalSubPath[] |
traceOut(PointOnNet startPoint, double cost, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter)
Finds the nodes and partial links within the given cost from the start point.
|
LogicalLightSubPath[] |
traceOutLight(PointOnNet[] startPoints, double cost, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter, boolean returnBoundaryPointsOnly)
Finds the nodes and partial links within the given cost from the start points.
|
TspPathFeature |
tsp(Feature[][] featuresToVisit, TSP.TourFlag tourFlag, LODNetworkConstraint constraint, TSP algorithm)
Returns the traveling salesman tour covering the input features.
|
TspPathFeature |
tsp(Feature[][] featuresToVisit, TSP.TourFlag tourFlag, LODNetworkConstraint networkConstraint, TspConstraint tspConstraint, TSP algorithm)
Returns the traveling salesman tour covering the input features.
|
TspPath |
tsp(PointOnNet[][] pointsToVisit, TSP.TourFlag tourFlag, int linkLevel, LODNetworkConstraint constraint)
Returns the traveling salesman tour covering the given points.
|
TspPath |
tsp(PointOnNet[][] pointsToVisit, TSP.TourFlag tourFlag, int linkLevel, LODNetworkConstraint constraint, TSP algorithm)
Returns the traveling salesman tour covering the input points.
|
TspPath |
tsp(PointOnNet[][] pointsToVisit, TSP.TourFlag tourFlag, LODNetworkConstraint networkConstraint)
Returns the traveling salesman tour covering the input points.
|
TspPath |
tsp(PointOnNet[][] pointsToVisit, TSP.TourFlag tourFlag, LODNetworkConstraint networkConstraint, TSP algorithm)
Returns the traveling salesman tour covering the input points.
|
TspPath |
tsp(PointOnNet[][] pointsToVisit, TSP.TourFlag tourFlag, LODNetworkConstraint networkConstraint, TspConstraint tspConstraint)
Returns the traveling salesman tour covering the input points.
|
TspPath |
tsp(PointOnNet[][] pointsToVisit, TSP.TourFlag tourFlag, LODNetworkConstraint networkConstraint, TspConstraint tspConstraint, TSP algorithm)
Returns the traveling salesman tour covering the input points.
|
TspPath[] |
vrpNoDepot(PointOnNet[][] points, int numVehicles, LODNetworkConstraint networkConstraint, TspConstraint tspConstraint, int userDataCategory, int xUserDataIndex, int yUserDataIndex, int geometryUserDataIndex) |
TspPath[] |
vrpNoDepot(PointOnNet[][] points, int numVehicles, LODNetworkConstraint networkConstraint, TspConstraint tspConstraint, VRP vrpAlgo) |
TspPath[] |
vrpSingleDepot(PointOnNet[][] points, int numVehicles, PointOnNet[] depot, LODNetworkConstraint networkConstraint, TspConstraint tspConstraint, int userDataCategory, int xUserDataIndex, int yUserDataIndex, int geometryUserDataIndex) |
TspPath[] |
vrpSingleDepot(PointOnNet[][] points, int numVehicles, PointOnNet[] depot, LODNetworkConstraint networkConstraint, TspConstraint tspConstraint, VRP vrpAlgo) |
LogicalSubPath[] |
withinCost(PointOnNet[] startPoints, double cost, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter, boolean returnBoundaryNodesOnly)
Finds the nodes within the given cost from the start point candidates.
|
LogicalSubPath[] |
withinCost(PointOnNet startPoint, double cost, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter)
Finds the nodes within the given cost from the start point.
|
LogicalSubPath[] |
withinCost(PointOnNet startPoint, double cost, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter)
Finds the nodes within the given cost from the start point.
|
LogicalSubPath[] |
withinCost(PointOnNet startPoint, double cost, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter)
Finds the nodes within the given cost from the start point.
|
FeaturePath[] |
withinCostFeatures(Feature[] start, double cost, int[] featureLayerIds, LODNetworkConstraint constraint, FeatureFilter featureFilter)
Finds features within the given cost from the start features.
|
FeaturePath[] |
withinCostFeatures(PointOnNet[] startPoints, double cost, int[] featureLayerIds, LODNetworkConstraint constraint, FeatureFilter featureFilter)
Finds features within the given cost from the start features.
|
LogicalLightSubPath[] |
withinCostLight(PointOnNet[] startPoints, double cost, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter, boolean returnBoundaryNodesOnly)
Finds the nodes within the given cost from the start point candidates.
|
PathToPoint[] |
withinCostPoints(PointOnNet[] startPoints, PointOnNet[][] targetPoints, double cost, LODNetworkConstraint constraint, boolean returnFullPath) |
JGeometry |
withinCostPolygon(Feature[] startFeatures, double cost, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter)
Returns the polygon covering the nodes, links or partial links that are within the given cost from the start feature candidates.
|
JGeometry |
withinCostPolygon(PointOnNet[] startPoints, double cost, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter)
Returns the polygon covering the nodes, links or partial links that are within the given cost from the start point candidates.
|
JGeometry |
withinCostPolygon(PointOnNet[] startPoints, double cost, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter, int accuracyLevel)
Returns the polygon covering the nodes, links or partial links that are within the given cost from the start point candidates.
|
LogicalSubPath[] |
withinReachingCost(PointOnNet[] endPoints, double cost, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter, boolean returnBoundaryNodesOnly)
Finds the nodes within the given cost to the end point candidates.
|
LogicalSubPath[] |
withinReachingCost(PointOnNet endPoint, double cost, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter)
Finds the nodes within the given cost to the end point.
|
LogicalSubPath[] |
withinReachingCost(PointOnNet endPoint, double cost, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter)
Finds the nodes within the given cost to the end point.
|
LogicalSubPath[] |
withinReachingCost(PointOnNet endPoint, double cost, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter)
Finds the nodes within the given cost to the end point.
|
FeaturePath[] |
withinReachingCostFeatures(Feature[] endFeatures, double cost, int[] featureLayerIds, LODNetworkConstraint constraint, FeatureFilter featureFilter)
Finds features within the given cost to the end features.
|
FeaturePath[] |
withinReachingCostFeatures(PointOnNet[] endPoints, double cost, int[] featureLayerIds, LODNetworkConstraint constraint, FeatureFilter featureFilter)
Finds features within the given cost to the end features.
|
LogicalLightSubPath[] |
withinReachingCostLight(PointOnNet[] endPoints, double cost, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter, boolean returnBoundaryNodesOnly)
Finds the nodes within the given cost to the end points.
|
PathToPoint[] |
withinReachingCostPoints(PointOnNet[] startPoints, PointOnNet[][] targetPoints, double cost, LODNetworkConstraint constraint, boolean returnFullPath) |
JGeometry |
withinReachingCostPolygon(Feature[] endFeatures, double cost, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter)
Returns the polygon covering the nodes, links or partial links that are within the given cost to the end feature candidates.
|
JGeometry |
withinReachingCostPolygon(PointOnNet[] endPoints, double cost, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter)
Returns the polygon covering the nodes, links or partial links that are within the given cost to the end point candidates.
|
JGeometry |
withinReachingCostPolygon(PointOnNet[] endPoints, double cost, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter, int accuracyLevel)
Returns the polygon covering the nodes, links or partial links that are within the given cost to the end point candidates.
|
public static final int BREADTH_FIRST_SEARCH
public static final int DEPTH_FIRST_SEARCH
public static final int ACCURACY_LEVEL_LOWEST
public static final int ACCURACY_LEVEL_LOW
public static final int ACCURACY_LEVEL_MEDIUM
public static final int ACCURACY_LEVEL_HIGH
public static final int ACCURACY_LEVEL_HIGHEST
public NetworkAnalyst(NetworkIO reader, NetworkAnalysisConfig config) throws LODNetworkException
reader
- network reader for the network to be analyzedLODNetworkException
public NetworkExplorer getNetworkExplorer()
public void setNetworkExplorer(NetworkExplorer ne)
public void setNetworkUpdates(java.util.HashMap<java.lang.Integer,NetworkUpdate> networkUpdates)
networkUpdates
- network update objects for different link levelspublic void setNetworkUpdate(java.util.HashMap<java.lang.Integer,NetworkUpdate> networkUpdates)
networkUpdates
- network update objects for different link levelspublic LODGoalNode[] getGoalNodeFilters()
public LODNetworkConstraint[] getNetworkConstraints()
public LinkLevelSelector getLinkLevelSelector()
public ShortestPath getShortestPathAlgorithm()
public void setShortestPathAlgorithm(ShortestPath spAlgorithm)
spAlgorithm
-public KShortestPaths getKShortestPathsAlgorithm()
public void setKShortestPathsAlgorithm(KShortestPaths kspAlgorithm)
kspAlgorithm
-public PairwiseShortestPaths getPairwiseShortestPathsAlgorithm()
public void setPairwiseShortestPathsAlgorithm(PairwiseShortestPaths pwspAlgorithm)
pwspAlgorithm
-public PairwiseCostCalculator getPairwiseCostCalculator()
public void setPairwiseCostCalculator(PairwiseCostCalculator pwcc)
pwcc
-public TSP getTspAlgorithm()
public void setTspAlgorithm(TSP tspAlgorithm)
tspAlgorithm
-public void resetCostCalculators()
public void setLinkCostCalculator(LinkCostCalculator calculator)
calculator
- link cost calculatorpublic LinkCostCalculator getLinkCostCalculator()
public void setNodeCostCalculator(NodeCostCalculator calculator)
calculator
- node cost calculatorpublic NodeCostCalculator getNodeCostCalculator()
public void setLinkCostCalculators(LinkCostCalculator[] calculators)
calculators
- link cost calculatorspublic LinkCostCalculator[] getLinkCostCalculators()
public void setNodeCostCalculators(NodeCostCalculator[] calculators)
calculators
- node cost calculatorspublic NodeCostCalculator[] getNodeCostCalculators()
public LogicalSubPath[] nearestNeighbors(PointOnNet startPoint, int numberOfNeighbors, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) throws LODNetworkException
startPoint
- start point on the networknumberOfNeighbors
- number of neighbors to be returnedconstraint
- network constraintgoalNodeFilter
- goal node implementationLODNetworkException
public LogicalSubPath[] nearestNeighbors(PointOnNet startPoint, int numberOfNeighbors, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) throws LODNetworkException
startPoint
- start point on the networknumberOfNeighbors
- number of neighbors to be returnedtargetLinkLevel
- maximum outgoing link level of the neighborsconstraint
- network constraintgoalNodeFilter
- goal node implementationLODNetworkException
public LogicalSubPath[] nearestNeighbors(PointOnNet startPoint, int numberOfNeighbors, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) throws LODNetworkException
startPoint
- start point on the networknumberOfNeighbors
- number of neighbors to be returnedsearchLinkLevel
- the link level to search for neighborstargetLinkLevel
- maximum outgoing link level of the neighborsconstraint
- network constraintgoalNodeFilter
- goal node implementationLODNetworkException
public LogicalSubPath[] nearestNeighbors(PointOnNet[] startPoints, int numberOfNeighbors, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) throws LODNetworkException
startPoints
- start point candidates on the networknumberOfNeighbors
- number of neighbors to be returnedsearchLinkLevel
- the link level to search for neighborstargetLinkLevel
- maximum outgoing link level of the neighborsconstraint
- network constraintgoalNodeFilter
- goal node implementationLODNetworkException
public LogicalLightSubPath[] nearestNeighborsLight(PointOnNet[] startPoints, int numberOfNeighbors, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) throws LODNetworkException
startPoints
- start point candidates on the networknumberOfNeighbors
- number of neighbors to be returnedsearchLinkLevel
- the link level to search for neighborstargetLinkLevel
- maximum outgoing link level of the neighborsconstraint
- network constraintgoalNodeFilter
- goal node implementationLODNetworkException
public LogicalSubPath[] nearestReachingNeighbors(PointOnNet endPoint, int numberOfNeighbors, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) throws LODNetworkException
endPoint
- end point on the networknumberOfNeighbors
- number of neighbors to be returnedconstraint
- network constraintgoalNodeFilter
- goal node implementationLODNetworkException
public LogicalSubPath[] nearestReachingNeighbors(PointOnNet endPoint, int numberOfNeighbors, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) throws LODNetworkException
endPoint
- end point on the networknumberOfNeighbors
- number of neighbors to be returnedtargetLinkLevel
- maximum incoming link level of the neighborsconstraint
- network constraintgoalNodeFilter
- goal node implementationLODNetworkException
public LogicalSubPath[] nearestReachingNeighbors(PointOnNet endPoint, int numberOfNeighbors, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) throws LODNetworkException
endPoint
- end point on the networknumberOfNeighbors
- number of neighbors to be returnedsearchLinkLevel
- the preferred link level to search for neighborstargetLinkLevel
- maximum incoming link level of the neighborsconstraint
- network constraintgoalNodeFilter
- goal node implementationLODNetworkException
public LogicalSubPath[] nearestReachingNeighbors(PointOnNet[] endPoints, int numberOfNeighbors, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) throws LODNetworkException
endPoints
- end point candidates on the networknumberOfNeighbors
- number of neighbors to be returnedsearchLinkLevel
- the preferred link level to search for neighborstargetLinkLevel
- maximum incoming link level of the neighborsconstraint
- network constraintgoalNodeFilter
- goal node implementationLODNetworkException
public LogicalLightSubPath[] nearestReachingNeighborsLight(PointOnNet[] endPoints, int numberOfNeighbors, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) throws LODNetworkException
endPoints
- end point candidates on the networknumberOfNeighbors
- number of neighbors to be returnedsearchLinkLevel
- the preferred link level to search for neighborstargetLinkLevel
- maximum incoming link level of the neighborsconstraint
- network constraintgoalNodeFilter
- goal node implementationLODNetworkException
public LogicalSubPath[] withinCost(PointOnNet startPoint, double cost, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) throws LODNetworkException
startPoint
- start pointcost
- cost boundconstraint
- network constraintgoalNodeFilter
- goal node implementationLODNetworkException
public LogicalSubPath[] withinCost(PointOnNet startPoint, double cost, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) throws LODNetworkException
startPoint
- start pointcost
- cost boundtargetLinkLevel
- maximum outgoing link level of the targetsconstraint
- network constraintgoalNodeFilter
- goal node implementationLODNetworkException
public LogicalSubPath[] withinCost(PointOnNet startPoint, double cost, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) throws LODNetworkException
startPoint
- start pointcost
- cost boundsearchLinkLevel
- the link level to search for targetstargetLinkLevel
- maximum outgoing link level of the targetsconstraint
- network constraintgoalNodeFilter
- goal node implementationLODNetworkException
public LogicalSubPath[] withinCost(PointOnNet[] startPoints, double cost, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter, boolean returnBoundaryNodesOnly) throws LODNetworkException
startPoints
- start point candidatescost
- cost boundsearchLinkLevel
- the link level to search for targetstargetLinkLevel
- maximum outgoing link level of the targetsconstraint
- network constraintgoalNodeFilter
- goal node implementationreturnBoundaryNodesOnly
- whether to return the boundary nodes onlyLODNetworkException
public LogicalLightSubPath[] withinCostLight(PointOnNet[] startPoints, double cost, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter, boolean returnBoundaryNodesOnly) throws LODNetworkException
startPoints
- start point candidatescost
- cost boundsearchLinkLevel
- the link level to search for targetstargetLinkLevel
- maximum outgoing link level of the targetsconstraint
- network constraintgoalNodeFilter
- goal node implementationreturnBoundaryNodesOnly
- whether to return the boundary nodes onlyLODNetworkException
public LogicalSubPath[] withinReachingCost(PointOnNet endPoint, double cost, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) throws LODNetworkException
endPoint
- end pointcost
- cost boundconstraint
- network constraintgoalNodeFilter
- goal node implementationLODNetworkException
public LogicalSubPath[] withinReachingCost(PointOnNet endPoint, double cost, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) throws LODNetworkException
endPoint
- end pointcost
- cost boundtargetLinkLevel
- maximum incoming link level of the targetsconstraint
- network constraintgoalNodeFilter
- goal node implementationLODNetworkException
public LogicalSubPath[] withinReachingCost(PointOnNet endPoint, double cost, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) throws LODNetworkException
endPoint
- end pointcost
- cost boundsearchLinkLevel
- the link level to search for targetstargetLinkLevel
- maximum incoming link level of the targetsconstraint
- network constraintgoalNodeFilter
- goal node implementationLODNetworkException
public LogicalSubPath[] withinReachingCost(PointOnNet[] endPoints, double cost, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter, boolean returnBoundaryNodesOnly) throws LODNetworkException
endPoints
- end point candidatescost
- cost boundsearchLinkLevel
- the link level to search for targetstargetLinkLevel
- maximum incoming link level of the targetsconstraint
- network constraintgoalNodeFilter
- goal node implementationreturnBoundaryNodesOnly
- whether to return the boundary nodes onlyLODNetworkException
public LogicalLightSubPath[] withinReachingCostLight(PointOnNet[] endPoints, double cost, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter, boolean returnBoundaryNodesOnly) throws LODNetworkException
endPoints
- end pointscost
- cost boundsearchLinkLevel
- the link level to search for targetstargetLinkLevel
- maximum incoming link level of the targetsconstraint
- network constraintgoalNodeFilter
- goal node implementationreturnBoundaryNodesOnly
- whether to return the boundary nodes onlyLODNetworkException
public JGeometry withinCostPolygon(PointOnNet[] startPoints, double cost, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) throws LODNetworkException
startPoints
- start point candidatescost
- cost rangeconstraint
- network constraintgoalNodeFilter
- goal node filterLODNetworkException
public JGeometry withinCostPolygon(PointOnNet[] startPoints, double cost, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter, int accuracyLevel) throws LODNetworkException
startPoints
- start point candidatescost
- cost rangeconstraint
- network constraintgoalNodeFilter
- goal node filteraccuracyLevel
- Use one of the constants: ACCURACY_LEVEL_LOWEST, ACCURACY_LEVEL_LOW, ACCURACY_LEVEL_MEDIUM, ACCURACY_LEVEL_HIGH, or ACCURACY_LEVEL_HIGHEST.LODNetworkException
public JGeometry withinReachingCostPolygon(PointOnNet[] endPoints, double cost, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) throws LODNetworkException
endPoints
- end point candidatescost
- cost rangeconstraint
- network constraintgoalNodeFilter
- goal node filterLODNetworkException
public JGeometry withinReachingCostPolygon(PointOnNet[] endPoints, double cost, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter, int accuracyLevel) throws LODNetworkException
endPoints
- end point candidatescost
- cost rangeconstraint
- network constraintgoalNodeFilter
- goal node filteraccuracyLevel
- Use one of the constants: ACCURACY_LEVEL_LOWEST, ACCURACY_LEVEL_LOW, ACCURACY_LEVEL_MEDIUM, ACCURACY_LEVEL_HIGH, or ACCURACY_LEVEL_HIGHEST.LODNetworkException
public LogicalSubPath[] traceOut(PointOnNet startPoint, double cost, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) throws LODNetworkException
startPoint
- start pointcost
- cost boundconstraint
- network constraintgoalNodeFilter
- goal node implementationLODNetworkException
public LogicalSubPath[] traceOut(PointOnNet startPoint, double cost, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) throws LODNetworkException
startPoint
- start pointcost
- cost boundtargetLinkLevel
- maximum outgoing link level of the targetsconstraint
- network constraintgoalNodeFilter
- goal node implementationLODNetworkException
public LogicalSubPath[] traceOut(PointOnNet startPoint, double cost, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) throws LODNetworkException
startPoint
- start pointcost
- cost boundsearchLinkLevel
- the link level to search ontargetLinkLevel
- maximum outgoing link level of the targetsconstraint
- network constraintgoalNodeFilter
- goal node implementationLODNetworkException
public LogicalSubPath[] traceOut(PointOnNet[] startPoints, double cost, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter, boolean returnBoundaryPointsOnly) throws LODNetworkException
startPoints
- start pointscost
- cost boundsearchLinkLevel
- the link level to search ontargetLinkLevel
- maximum outgoing link level of the targetsconstraint
- network constraintgoalNodeFilter
- goal node implementationreturnBoundaryPointsOnly
- whether to return boundary points onlyLODNetworkException
public LogicalLightSubPath[] traceOutLight(PointOnNet[] startPoints, double cost, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter, boolean returnBoundaryPointsOnly) throws LODNetworkException
startPoints
- start pointscost
- cost boundsearchLinkLevel
- the link level to search ontargetLinkLevel
- maximum outgoing link level of the targetsconstraint
- network constraintgoalNodeFilter
- goal node implementationreturnBoundaryPointsOnly
- whether to return boundary points onlyLODNetworkException
public LogicalSubPath[] traceIn(PointOnNet endPoint, double cost, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) throws LODNetworkException
endPoint
- end pointcost
- cost boundconstraint
- network constraintgoalNodeFilter
- goal node implementationLODNetworkException
public LogicalSubPath[] traceIn(PointOnNet endPoint, double cost, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) throws LODNetworkException
endPoint
- end pointcost
- cost boundtargetLinkLevel
- maximum incoming link level of the targetsconstraint
- network constraintgoalNodeFilter
- goal node implementationLODNetworkException
public LogicalSubPath[] traceIn(PointOnNet endPoint, double cost, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) throws LODNetworkException
endPoint
- end pointcost
- cost boundsearchLinkLevel
- the link level to search ontargetLinkLevel
- maximum incoming link level of the targetsconstraint
- network constraintgoalNodeFilter
- goal node implementationLODNetworkException
public LogicalSubPath[] traceIn(PointOnNet[] endPoints, double cost, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter, boolean returnBoundaryPointsOnly) throws LODNetworkException
endPoints
- end point candidatescost
- cost boundsearchLinkLevel
- the link level to search ontargetLinkLevel
- maximum incoming link level of the targetsconstraint
- network constraintgoalNodeFilter
- goal node implementationreturnBoundaryPointsOnly
- whether to return boundary points onlyLODNetworkException
public LogicalLightSubPath[] traceInLight(PointOnNet[] startPoints, double cost, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter, boolean returnBoundaryPointsOnly) throws LODNetworkException
startPoints
- start point candidatescost
- cost boundsearchLinkLevel
- the link level to search ontargetLinkLevel
- maximum outgoing link level of the targetsconstraint
- network constraintgoalNodeFilter
- goal node implementationreturnBoundaryPointsOnly
- whether to return boundary points onlyLODNetworkException
public OrderedLongSet findConnectedNodes(int searchMethod, long nodeId, int linkLevel, LODNetworkConstraint constraint, LODGoalNode goalNode) throws LODNetworkException
searchMethod
- search method. It can take the following values:
nodeId
- node IDlinkLevel
- link level to search onLODNetworkException
public OrderedLongSet findConnectedNodes(int searchMethod, PointOnNet[] points, int linkLevel, LODNetworkConstraint constraint, LODGoalNode goalNode) throws LODNetworkException
searchMethod
- search method. It can take the following values:
points
-linkLevel
- link level to search onconstraint
-goalNode
-LODNetworkException
public OrderedLongSet findReachableNodes(int searchMethod, long startNodeId, int linkLevel, LODNetworkConstraint constraint, LODGoalNode goalNode) throws LODNetworkException
searchMethod
- search method. It can take the following values:
startNodeId
- start node IDlinkLevel
- link level to search onLODNetworkException
public OrderedLongSet findReachableNodes(int searchMethod, PointOnNet[] startPoints, int linkLevel, LODNetworkConstraint constraint, LODGoalNode goalNode) throws LODNetworkException
searchMethod
- search method. It can take the following values:
startPoints
- start pointsLODNetworkException
public OrderedLongSet findReachingNodes(int searchMethod, long endNodeId, int linkLevel, LODNetworkConstraint constraint, LODGoalNode goalNode) throws LODNetworkException
searchMethod
- search method. It can take the following values:
endNodeId
- end node IDlinkLevel
- maximum link level to search onLODNetworkException
public OrderedLongSet findReachingNodes(int searchMethod, PointOnNet[] endPoints, int linkLevel, LODNetworkConstraint constraint, LODGoalNode goalNode) throws LODNetworkException
searchMethod
- search method. It can take the following values:
endPoints
- end pointslinkLevel
- link level to search onLODNetworkException
public boolean isReachable(long startNodeId, long endNodeId, int linkLevel, LODNetworkConstraint constraint) throws LODNetworkException
startNodeId
- start node IDendNodeId
- end node IDlinkLevel
- maximum link level to search onLODNetworkException
public boolean isReachable(PointOnNet[] startPoints, PointOnNet[] endPoints, int linkLevel, LODNetworkConstraint constraint) throws LODNetworkException
startPoints
- start pointsendPoints
- end pointslinkLevel
- maximum link level to search onLODNetworkException
public OrderedLongSet[] findConnectedComponents(int linkLevel) throws LODNetworkException
linkLevel
- maximum link level to search onLODNetworkException
public int findConnectedComponentsInPartition(int partitionId, int linkLevel, int startComponentId, java.util.ArrayList<oracle.spatial.network.lod.AnalysisUtility.NodeComponent> nodeComponentArray) throws LODNetworkException
partitionId
- ID of the partition in which the connected component is computedlinkLevel
- link level on which the connected component is computedstartComponentId
- start component ID to be used. All component IDs being assigned to the nodes in the partition must be no smaller than the start component ID.nodeComponentArray
- empty list where the result node ID - component ID pair is written intoLODNetworkException
public LogicalSubPath shortestPath(PointOnNet[] startPoints, PointOnNet[] endPoints, LODNetworkConstraint constraint, ShortestPath algorithm) throws LODNetworkException
startPoints
- start point candidates on the networkendPoints
- end point on candidates the networkconstraint
- network constraintalgorithm
- shortest path algorithm, such as Dijkstra or A*LODNetworkException
public LogicalSubPath reverseShortestPath(PointOnNet[] endPoints, PointOnNet[] startPoints, LODNetworkConstraint constraint, ShortestPath algorithm) throws LODNetworkException
startPoints
- start point candidates on the networkendPoints
- end point on candidates the networkconstraint
- network constraintalgorithm
- shortest path algorithm, such as Dijkstra or A*LODNetworkException
public LogicalSubPath shortestPathDijkstra(PointOnNet startPoint, PointOnNet endPoint, LODNetworkConstraint constraint) throws LODNetworkException
startPoint
- start point on the networkendPoint
- end point on the networkconstraint
- network constraintLODNetworkException
public LogicalSubPath shortestPathDijkstraMaxLevel(PointOnNet startPoint, PointOnNet endPoint, LODNetworkConstraint constraint) throws LODNetworkException
startPoint
- start pointendPoint
- end pointconstraint
- network constraintLODNetworkException
public LogicalSubPath shortestPathDijkstra(PointOnNet startPoint, PointOnNet endPoint, int searchLinkLevel, LODNetworkConstraint constraint) throws LODNetworkException
startPoint
- start point on the networkendPoint
- end point on the networkconstraint
- network constraintLODNetworkException
public LogicalSubPath shortestPathDijkstra(PointOnNet[] startPoints, PointOnNet[] endPoints, int searchLinkLevel, LODNetworkConstraint constraint) throws LODNetworkException
startPoints
- candidate start points on the networkendPoints
- candidate end points on the networkconstraint
- network constraintLODNetworkException
public LogicalSubPath shortestPathDijkstra(PointOnNet[] startPoints, PointOnNet[] endPoints, int searchLinkLevel, int maxHighLevelNodesToConsider, LODNetworkConstraint constraint) throws LODNetworkException
startPoints
- candidate start points on the networkendPoints
- candidate end points on the networkconstraint
- network constraintLODNetworkException
public LogicalSubPath shortestPathDijkstra(PointOnNet[] startPoints, PointOnNet[] endPoints, LODNetworkConstraint constraint, LinkLevelSelector lls) throws LODNetworkException
startPoints
- candidate start points on the networkendPoints
- candidate end points on the networkconstraint
-lls
-LODNetworkException
public LogicalSubPath shortestPathAStar(PointOnNet startPoint, PointOnNet endPoint, LODNetworkConstraint constraint, HeuristicCostFunction hcf, double[] costThresholds) throws LODNetworkException
startPoint
- start point on the networkendPoint
- end point on the networkconstraint
- network constrainthcf
- Heuristic cost function implementationLODNetworkException
public LogicalSubPath shortestPathAStar(PointOnNet startPoint, PointOnNet endPoint, int searchLinkLevel, LODNetworkConstraint constraint, HeuristicCostFunction hcf, double[] costThresholds) throws LODNetworkException
startPoint
- start point on the networkendPoint
- end point on the networksearchLinkLevel
- prefered link level to compute long-haul pathconstraint
- network constrainthcf
- Heuristic cost function implementationLODNetworkException
public LogicalSubPath shortestPathAStar(PointOnNet startPoint, PointOnNet endPoint, LODNetworkConstraint constraint, HeuristicCostFunction hcf, LinkLevelSelector lls) throws LODNetworkException
startPoint
- start point on the networkendPoint
- end point on the networkconstraint
- network constrainthcf
- Heuristic cost function implementationlls
- link level selector to be used in A* algorithmLODNetworkException
public LogicalSubPath shortestPathAStar(PointOnNet[] startPoints, PointOnNet[] endPoints, LODNetworkConstraint constraint, HeuristicCostFunction hcf, LinkLevelSelector lls) throws LODNetworkException
startPoints
- start point candidates on the networkendPoints
- end point on candidates the networkconstraint
- network constrainthcf
- Heuristic cost function implementationlls
- link level selector to be used in A* algorithmLODNetworkException
public LogicalSubPath shortestPathHierarchical(PointOnNet[] startPoints, PointOnNet[] endPoints, int searchLinkLevel, int maxHighLevelNodesToConsider, LODNetworkConstraint constraint, ShortestPath algorithm) throws LODNetworkException
startPoints
- start point candidates on the networkendPoints
- end point candidates on the networkmaxHighLevelNodesToConsider
- maximum high level nodes to considerconstraint
- network constraintalgorithm
- basic single-level shortest path algorithm, such as Dijkstra or A*.LODNetworkException
public SpanningTree mst(int linkLevel, LODNetworkConstraint constraint) throws LODNetworkException
linkLevel
- link levelLODNetworkException
public SpanningTree mst(int linkLevel, LODNetworkConstraint constraint, MinimumSpanningTree algorithm) throws LODNetworkException
linkLevel
-constraint
-algorithm
-LODNetworkException
public long[] mcst(int linkLevel, LODNetworkConstraint constraint) throws LODNetworkException
mst(int, LODNetworkConstraint, MinimumSpanningTree)
linkLevel
- link levelLODNetworkException
public long[] mcst(int linkLevel, LODNetworkConstraint constraint, NetworkUpdate tmpNetworkUpdate) throws LODNetworkException
mst(int, LODNetworkConstraint, MinimumSpanningTree)
linkLevel
- link leveltmpNetworkUpdate
- temporary network update. This parameter is ignored. Please use the setNetworkUpdates(...) method to set dynamic network updates instead.LODNetworkException
public TspPath tsp(PointOnNet[][] pointsToVisit, TSP.TourFlag tourFlag, int linkLevel, LODNetworkConstraint constraint) throws LODNetworkException
pointsToVisit
- points to visit on the tourtourFlag
- a flag indicating whether the tour should be open or closed, and if the tour is open, whether the tour should have fixed start or end point.constraint
- network constraintLODNetworkException
public TspPath tsp(PointOnNet[][] pointsToVisit, TSP.TourFlag tourFlag, int linkLevel, LODNetworkConstraint constraint, TSP algorithm) throws LODNetworkException
pointsToVisit
- points to visit on the tour.tourFlag
- a flag indicating whether the tour should be open or closed, and if the tour is open, whether the tour should have fixed start or end point.constraint
- network constraintalgorithm
- tsp algorithmLODNetworkException
public TspPath tsp(PointOnNet[][] pointsToVisit, TSP.TourFlag tourFlag, LODNetworkConstraint networkConstraint) throws LODNetworkException
pointsToVisit
- points to visit on the tourtourFlag
- a flag indicating whether the tour should be open or closed, and if the tour is open, whether the tour should have fixed start or end point.networkConstraint
- network constraintLODNetworkException
public TspPath tsp(PointOnNet[][] pointsToVisit, TSP.TourFlag tourFlag, LODNetworkConstraint networkConstraint, TspConstraint tspConstraint) throws LODNetworkException
pointsToVisit
- points to visit on the tourtourFlag
- a flag indicating whether the tour should be open or closed, and if the tour is open, whether the tour should have fixed start or end point.networkConstraint
- network constrainttspConstraint
- TSP constraintLODNetworkException
public TspPath tsp(PointOnNet[][] pointsToVisit, TSP.TourFlag tourFlag, LODNetworkConstraint networkConstraint, TSP algorithm) throws LODNetworkException
pointsToVisit
- points to visit on the tour.tourFlag
- a flag indicating whether the tour should be open or closed, and if the tour is open, whether the tour should have fixed start or end point.networkConstraint
- network constraintalgorithm
- tsp algorithmLODNetworkException
public TspPath tsp(PointOnNet[][] pointsToVisit, TSP.TourFlag tourFlag, LODNetworkConstraint networkConstraint, TspConstraint tspConstraint, TSP algorithm) throws LODNetworkException
pointsToVisit
- points to visit on the tour.tourFlag
- a flag indicating whether the tour should be open or closed, and if the tour is open, whether the tour should have fixed start or end point.networkConstraint
- network constraintalgorithm
- tsp algorithmLODNetworkException
public LogicalSubPath[] kShortestPaths(PointOnNet[] startPoint, PointOnNet[] endPoint, int k, LODNetworkConstraint constraint) throws LODNetworkException
startPoint
- start point candidatesendPoint
- end point candidatesk
- number of loopless paths to be returnedconstraint
- network constraintLODNetworkException
public LogicalSubPath[] kShortestPaths(PointOnNet[] startPoint, PointOnNet[] endPoint, int k, LODNetworkConstraint constraint, KShortestPaths kspAlgorithm) throws LODNetworkException
startPoint
- start point candidatesendPoint
- end point candidatesk
- number of loopless paths to be returnedconstraint
- network constraintkspAlgorithm
- K-shortest paths algorithmLODNetworkException
public LogicalSubPath[] reverseKShortestPaths(PointOnNet[] endPoint, PointOnNet[] startPoint, int k, LODNetworkConstraint constraint) throws LODNetworkException
startPoint
- start point candidatesendPoint
- end point candidatesk
- number of loopless paths to be returnedconstraint
- network constraintLODNetworkException
public LogicalSubPath[] reverseKShortestPaths(PointOnNet[] endPoint, PointOnNet[] startPoint, int k, LODNetworkConstraint constraint, KShortestPaths kspAlgorithm) throws LODNetworkException
startPoint
- start point candidatesendPoint
- end point candidatesk
- number of loopless paths to be returnedconstraint
- network constraintkspAlgorithm
- K-shortest paths algorithmLODNetworkException
public NetworkBuffer networkBuffer(PointOnNet[] startPoints, double cost, LODNetworkConstraint constraint) throws LODNetworkException
startPoints
- start point candidatescost
- cost range of the network bufferconstraint
- network constraintLODNetworkException
public NetworkBuffer reachingNetworkBuffer(PointOnNet[] endPoints, double cost, LODNetworkConstraint constraint) throws LODNetworkException
endPoints
- end point candidatescost
- cost range of the network bufferconstraint
- network constraintLODNetworkException
public LogicalSubPath[] allDetourShortestPathsWithCostLimit(PointOnNet[] startPoints, PointOnNet[] endPoints, double maxCost, LODNetworkConstraint constraint) throws LODNetworkException
startPoints
- start point candidatesendPoints
- end point candidatesmaxCost
- cost boundconstraint
- network constraintLODNetworkException
public LogicalSubPath[] allDetourShortestPathsWithDepthLimit(PointOnNet[] startPoints, PointOnNet[] endPoints, int maxDepth, LODNetworkConstraint constraint) throws LODNetworkException
startPoints
- start point candidatesendPoints
- end point candidatesmaxDepth
- depth boundconstraint
- network constraintLODNetworkException
public PathFeature shortestPath(Feature[] start, Feature[] end, LODNetworkConstraint constraint, ShortestPath algorithm) throws LODNetworkException
start
- start feature candidatesend
- end feature candidatesconstraint
- network constraintalgorithm
- shortest path algorithmLODNetworkException
public PathFeature shortestPathAStar(Feature[] start, Feature[] end, LODNetworkConstraint constraint, HeuristicCostFunction hcf, LinkLevelSelector lls) throws LODNetworkException
start
- start feature candidatesend
- end feature candidatesconstraint
- network constrainthcf
- heuristic cost functionlls
- link level selectorLODNetworkException
public PathFeature shortestPathDijkstra(Feature[] start, Feature[] end, LODNetworkConstraint constraint, LinkLevelSelector lls) throws LODNetworkException
start
- start feature candidatesend
- end feature candidatesconstraint
- network constraintlls
- link level selectorLODNetworkException
public PathFeature[] kShortestPaths(Feature[] start, Feature[] end, int k, LODNetworkConstraint constraint, KShortestPaths algorithm) throws LODNetworkException
start
- start feature candidatesend
- end feature candidatesk
- number of paths to returnconstraint
- network constraintalgorithm
- shortest path algorithmLODNetworkException
public PathFeature[] reverseKShortestPaths(Feature[] end, Feature[] start, int k, LODNetworkConstraint constraint, KShortestPaths algorithm) throws LODNetworkException
end
- end feature candidatesstart
- start feature candidatesk
- number of paths to returnconstraint
- network constraintalgorithm
- shortest path algorithmLODNetworkException
public PathFeature reverseShortestPath(Feature[] end, Feature[] start, LODNetworkConstraint constraint, ShortestPath algorithm) throws LODNetworkException
start
- start feature candidatesend
- end feature candidatesconstraint
- network constraintalgorithm
- shortest path algorithmLODNetworkException
public PathToPoint[] nearestPoints(PointOnNet[] startPoints, PointOnNet[][] targetPoints, int k, LODNetworkConstraint constraint, boolean returnFullPath) throws LODNetworkException
startPoints
- start point candidatestargetPoints
- target points to choose fromk
- number of points to be returnedconstraint
-returnFullPath
- whether to return full paths to the target points or the light weight paths.LODNetworkException
public PathToPoint[] nearestReachingPoints(PointOnNet[] startPoints, PointOnNet[][] targetPoints, int k, LODNetworkConstraint constraint, boolean returnFullPath) throws LODNetworkException
startPoints
- start point candidatestargetPoints
- target points to choose fromk
- number of points to be returnedconstraint
-returnFullPath
- whether to return full paths to the target points or the light weight paths.LODNetworkException
public PathToPoint[] withinCostPoints(PointOnNet[] startPoints, PointOnNet[][] targetPoints, double cost, LODNetworkConstraint constraint, boolean returnFullPath) throws LODNetworkException
LODNetworkException
public PathToPoint[] withinReachingCostPoints(PointOnNet[] startPoints, PointOnNet[][] targetPoints, double cost, LODNetworkConstraint constraint, boolean returnFullPath) throws LODNetworkException
LODNetworkException
public FeaturePath[] nearestFeatures(Feature[] start, int numberOfFeatures, int[] featureLayerIds, LODNetworkConstraint constraint, FeatureFilter featureFilter) throws LODNetworkException
start
- start feature candidatesnumberOfFeatures
- number of features to returnfeatureLayerIds
- feature layer IDsconstraint
- network constraintLODNetworkException
public FeaturePath[] nearestFeatures(PointOnNet[] startPoints, int numberOfFeatures, int[] featureLayerIds, LODNetworkConstraint constraint, FeatureFilter featureFilter) throws LODNetworkException
startPoints
- start point candidatesnumberOfFeatures
- number of features to returnfeatureLayerIds
- feature layer IDsconstraint
- network constraintLODNetworkException
public FeaturePath[] nearestReachingFeatures(Feature[] end, int numberOfFeatures, int[] featureLayerIds, LODNetworkConstraint constraint, FeatureFilter featureFilter) throws LODNetworkException
end
- end feature candidatesnumberOfFeatures
- number of features to returnfeatureLayerIds
- feature layer IDsconstraint
- network constraintLODNetworkException
public FeaturePath[] nearestReachingFeatures(PointOnNet[] endPoints, int numberOfFeatures, int[] featureLayerIds, LODNetworkConstraint constraint, FeatureFilter featureFilter) throws LODNetworkException
endPoints
- end point candidatesnumberOfFeatures
- number of features to returnfeatureLayerIds
- feature layer IDsconstraint
- network constraintLODNetworkException
public FeaturePath[] withinCostFeatures(Feature[] start, double cost, int[] featureLayerIds, LODNetworkConstraint constraint, FeatureFilter featureFilter) throws LODNetworkException
start
- start feature candidatescost
- cost rangefeatureLayerIds
- feature layer IDsconstraint
- network constraintLODNetworkException
public FeaturePath[] withinCostFeatures(PointOnNet[] startPoints, double cost, int[] featureLayerIds, LODNetworkConstraint constraint, FeatureFilter featureFilter) throws LODNetworkException
startPoints
- start point candidatescost
- cost rangefeatureLayerIds
- feature layer IDsconstraint
- network constraintLODNetworkException
public FeaturePath[] withinReachingCostFeatures(Feature[] endFeatures, double cost, int[] featureLayerIds, LODNetworkConstraint constraint, FeatureFilter featureFilter) throws LODNetworkException
endFeatures
- end feature candidatescost
- cost rangefeatureLayerIds
- feature layer IDsconstraint
- network constraintLODNetworkException
public FeaturePath[] withinReachingCostFeatures(PointOnNet[] endPoints, double cost, int[] featureLayerIds, LODNetworkConstraint constraint, FeatureFilter featureFilter) throws LODNetworkException
endPoints
- end point candidatescost
- cost rangefeatureLayerIds
- feature layer IDsconstraint
- network constraintLODNetworkException
public JGeometry withinCostPolygon(Feature[] startFeatures, double cost, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) throws LODNetworkException
startFeatures
- start feature candidatescost
- cost rangeconstraint
- network constraintgoalNodeFilter
- goal node filterLODNetworkException
public JGeometry withinReachingCostPolygon(Feature[] endFeatures, double cost, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) throws LODNetworkException
endFeatures
- end feature candidatescost
- cost rangeconstraint
- network constraintgoalNodeFilter
- goal node filterLODNetworkException
public TspPathFeature tsp(Feature[][] featuresToVisit, TSP.TourFlag tourFlag, LODNetworkConstraint constraint, TSP algorithm) throws LODNetworkException
featuresToVisit
- features to visit on the tour.tourFlag
- a flag indicating whether the tour should be open or closed, and if the tour is open, whether the tour should have fixed start or end point.constraint
- network constraintalgorithm
- tsp algorithmLODNetworkException
public TspPathFeature tsp(Feature[][] featuresToVisit, TSP.TourFlag tourFlag, LODNetworkConstraint networkConstraint, TspConstraint tspConstraint, TSP algorithm) throws LODNetworkException
featuresToVisit
- features to visit on the tour.tourFlag
- a flag indicating whether the tour should be open or closed, and if the tour is open, whether the tour should have fixed start or end point.networkConstraint
- network constrainttspConstraint
- tsp constraintalgorithm
- tsp algorithmLODNetworkException
public boolean isReachable(Feature[] start, Feature[] end, int linkLevel, LODNetworkConstraint constraint) throws LODNetworkException
start
- start feature candidatesend
- end feature candidateslinkLevel
- maximum link level to search onLODNetworkException
public Feature[] findReachableFeatures(int searchMethod, PointOnNet[] startPoints, int linkLevel, int[] featureLayerIds, LODNetworkConstraint constraint, FeatureFilter featureFilter) throws LODNetworkException
searchMethod
- search method. It can take the following values:
startPoints
- start pointsLODNetworkException
public Feature[] findReachingFeatures(int searchMethod, PointOnNet[] startPoints, int linkLevel, int[] featureLayerIds, LODNetworkConstraint constraint, FeatureFilter featureFilter) throws LODNetworkException
searchMethod
- search method. It can take the following values:
startPoints
- start pointsLODNetworkException
public ClusterResult bisectClustering(PointOnNet[] points, int numClusters, int userDataCategory, int xCoordUserDataIndex, int yCoordUserDataIndex, int geometryUserDataIndex) throws LODNetworkException
LODNetworkException
public ClusterResult kMeansClustering(PointOnNet[] points, int numClusters, int maxSize, int minSize, int userDataCategory, int xCoordUserDataIndex, int yCoordUserDataIndex, int geometryUserDataIndex) throws LODNetworkException
LODNetworkException
public TspPath[] vrpNoDepot(PointOnNet[][] points, int numVehicles, LODNetworkConstraint networkConstraint, TspConstraint tspConstraint, VRP vrpAlgo) throws LODNetworkException
LODNetworkException
public TspPath[] vrpSingleDepot(PointOnNet[][] points, int numVehicles, PointOnNet[] depot, LODNetworkConstraint networkConstraint, TspConstraint tspConstraint, VRP vrpAlgo) throws LODNetworkException
LODNetworkException
public TspPath[] vrpNoDepot(PointOnNet[][] points, int numVehicles, LODNetworkConstraint networkConstraint, TspConstraint tspConstraint, int userDataCategory, int xUserDataIndex, int yUserDataIndex, int geometryUserDataIndex) throws LODNetworkException
LODNetworkException
public TspPath[] vrpSingleDepot(PointOnNet[][] points, int numVehicles, PointOnNet[] depot, LODNetworkConstraint networkConstraint, TspConstraint tspConstraint, int userDataCategory, int xUserDataIndex, int yUserDataIndex, int geometryUserDataIndex) throws LODNetworkException
LODNetworkException