|
Oracle® Spatial Java API Reference 11g Release 2 (11.2) E11829-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.spatial.network.lod.NetworkAnalyst
public class NetworkAnalyst
This class is the single entry point to all the network analysis operations supported by NDM LOD. To get an instance of this class, use
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.
Field Summary | |
---|---|
static int |
BREADTH_FIRST_SEARCH Constant for bread-first-search |
static int |
DEPTH_FIRST_SEARCH Constant for depth-first-search |
Method Summary | |
---|---|
OrderedLongSet[] |
findConnectedComponents(int linkLevel) Finds the connected components for the specified link level. |
int |
findConnectedComponentsInPartition(int partitionId, int linkLevel, int startComponentId, java.util.ArrayList<oracle.spatial.network.lod.AnalysisUtility.NodeComponent> nodeComponentArray) Finds the connected components for the specified link level. |
OrderedLongSet |
findConnectedNodes(int searchMethod, long nodeId, int linkLevel, LODNetworkConstraint constraint, LODGoalNode goalNode) Finds the nodes connected to the specified node. |
OrderedLongSet |
findReachableNodes(int searchMethod, long startNodeId, int linkLevel, LODNetworkConstraint constraint, LODGoalNode goalNode) Finds the nodes reachable from the specified node. |
OrderedLongSet |
findReachingNodes(int searchMethod, long endNodeId, int linkLevel, LODNetworkConstraint constraint, LODGoalNode goalNode) Finds the nodes that can reach the specified node. |
LinkCostCalculator |
getLinkCostCalculator() Deprecated. use getLinkCostCalculators() |
LinkCostCalculator[] |
getLinkCostCalculators() Returns the link cost calculators. |
NetworkExplorer |
getNetworkExplorer() Returns the network explorer used by this network analyst. |
NodeCostCalculator |
getNodeCostCalculator() Deprecated. use getNodeCostCalculators() |
NodeCostCalculator[] |
getNodeCostCalculators() Returns the node cost calculators. |
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 specified link level for long-haul search. |
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, NetworkUpdate tmpNetworkUpdate) Returns the link IDs of the minimum-spanning-tree. |
LogicalSubPath[] |
nearestNeighbors(PointOnNet[] startPoints, int numberOfNeighbors, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) Finds the nearest neighbors from the specified start point candidates. |
LogicalSubPath[] |
nearestNeighbors(PointOnNet startPoint, int numberOfNeighbors, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) Finds the nearest neighbors from the specified start point. |
LogicalSubPath[] |
nearestNeighbors(PointOnNet startPoint, int numberOfNeighbors, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) Finds the nearest neighbors from the specified start point. |
LogicalSubPath[] |
nearestNeighbors(PointOnNet startPoint, int numberOfNeighbors, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) Finds the nearest neighbors from the specified start point. |
LogicalLightSubPath[] |
nearestNeighborsLight(PointOnNet[] startPoints, int numberOfNeighbors, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) Finds the nearest neighbors from the specified start point candidates. |
LogicalSubPath[] |
nearestReachingNeighbors(PointOnNet[] endPoints, int numberOfNeighbors, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) Finds the nearest reaching neighbors to the specified end point candidates. |
LogicalSubPath[] |
nearestReachingNeighbors(PointOnNet endPoint, int numberOfNeighbors, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) Finds the nearest reaching neighbors to the specified end point. |
LogicalSubPath[] |
nearestReachingNeighbors(PointOnNet endPoint, int numberOfNeighbors, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) Finds the nearest reaching neighbors to the specified end point. |
LogicalSubPath[] |
nearestReachingNeighbors(PointOnNet endPoint, int numberOfNeighbors, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) Finds the nearest reaching neighbors to the specified end point. |
LogicalLightSubPath[] |
nearestReachingNeighborsLight(PointOnNet[] endPoints, int numberOfNeighbors, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) Finds the nearest reaching neighbors to the specified end point candidates. |
NetworkBuffer |
networkBuffer(PointOnNet[] startPoints, double cost, LODNetworkConstraint constraint) Computes network buffer within the specified cost from the start point candidates. |
NetworkBuffer |
reachingNetworkBuffer(PointOnNet[] endPoints, double cost, LODNetworkConstraint constraint) Computes network buffer within the specified 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. |
void |
setLinkCostCalculator(LinkCostCalculator calculator) Deprecated. use setLinkCostCalculators() |
void |
setLinkCostCalculators(LinkCostCalculator[] calculators) Sets the link cost calculators. |
void |
setNetworkUpdate(java.util.HashMap<java.lang.Integer,NetworkUpdate> networkUpdates) Deprecated. use setNetworkUpdates instead |
void |
setNetworkUpdates(java.util.HashMap<java.lang.Integer,NetworkUpdate> networkUpdates) Sets the network update objects. |
void |
setNodeCostCalculator(NodeCostCalculator calculator) Deprecated. use setNodeCostCalculators() |
void |
setNodeCostCalculators(NodeCostCalculator[] calculators) Sets the node cost calculators. |
LogicalSubPath |
shortestPathAStar(PointOnNet[] startPoints, PointOnNet[] endPoints, LODNetworkConstraint constraint, HeuristicCostFunction hcf, LinkLevelSelector lls) Finds the shortest path using A* algorithm with dynamic link level selector. |
LogicalSubPath |
shortestPathAStar(PointOnNet startPoint, PointOnNet endPoint, int searchLinkLevel, 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, 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 using dynamic link level selector of this NetworkAnalyst. |
LogicalSubPath |
shortestPathDijkstra(PointOnNet[] startPoints, PointOnNet[] endPoints, int searchLinkLevel, int maxHighLevelNodesToConsider, LODNetworkConstraint constraint) Finds the shortest path using Dijkstra algorithm with static link level selector. |
LogicalSubPath |
shortestPathDijkstra(PointOnNet[] startPoints, PointOnNet[] endPoints, int searchLinkLevel, LODNetworkConstraint constraint) Finds the shortest path using Dijkstra algorithm with static link level selector. |
LogicalSubPath |
shortestPathDijkstra(PointOnNet startPoint, PointOnNet endPoint, int searchLinkLevel, LODNetworkConstraint constraint) Finds the shortest path using Dijkstra algorithm with static link level selector. |
LogicalSubPath |
shortestPathDijkstra(PointOnNet startPoint, PointOnNet endPoint, LODNetworkConstraint constraint) Finds the shortest path using Dijkstra algorithm and the analyst's link level selector specified by the user. |
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 a point on the start link to the end node. |
LogicalSubPath[] |
traceIn(PointOnNet[] endPoints, double cost, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter, boolean returnBoundaryPointsOnly) Finds the nodes and partial links within the specified 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 specified 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 specified cost to the end point. |
LogicalSubPath[] |
traceIn(PointOnNet endPoint, double cost, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) Finds the nodes and partial links within the specified 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 specified 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 specified 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 specified 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 specified cost from the start point. |
LogicalSubPath[] |
traceOut(PointOnNet startPoint, double cost, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) Finds the nodes and partial links within the specified 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 specified cost from the start points. |
TspPath |
tsp(PointOnNet[][] pointsToVisit, TSP.TourFlag tourFlag, int linkLevel, LODNetworkConstraint constraint) Returns the traveling salesman tour for the specified points. |
TspPath |
tsp(PointOnNet[][] pointsToVisit, TSP.TourFlag tourFlag, int linkLevel, LODNetworkConstraint constraint, TSP algorithm) Returns the traveling salesman tour for the specified points. |
LogicalSubPath[] |
withinCost(PointOnNet[] startPoints, double cost, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter, boolean returnBoundaryNodesOnly) Finds the nodes within the specified 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 specified cost from the start point. |
LogicalSubPath[] |
withinCost(PointOnNet startPoint, double cost, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) Finds the nodes within the specified cost from the start point. |
LogicalSubPath[] |
withinCost(PointOnNet startPoint, double cost, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) Finds the nodes within the specified cost from the start point. |
LogicalLightSubPath[] |
withinCostLight(PointOnNet[] startPoints, double cost, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter, boolean returnBoundaryNodesOnly) Finds the nodes within the specified cost from the start point 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. |
LogicalSubPath[] |
withinReachingCost(PointOnNet[] endPoints, double cost, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter, boolean returnBoundaryNodesOnly) Finds the nodes within the specified 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 specified cost to the end point. |
LogicalSubPath[] |
withinReachingCost(PointOnNet endPoint, double cost, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) Finds the nodes within the specified cost to the end point. |
LogicalSubPath[] |
withinReachingCost(PointOnNet endPoint, double cost, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) Finds the nodes within the specified cost to the end point. |
LogicalLightSubPath[] |
withinReachingCostLight(PointOnNet[] endPoints, double cost, int searchLinkLevel, int targetLinkLevel, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter, boolean returnBoundaryNodesOnly) Finds the nodes within the specified cost to the end points. |
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int BREADTH_FIRST_SEARCH
public static final int DEPTH_FIRST_SEARCH
Method Detail |
---|
public NetworkExplorer getNetworkExplorer()
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 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 withinReachingCostPolygon(PointOnNet[] endPoints, double cost, LODNetworkConstraint constraint, LODGoalNode goalNodeFilter) throws LODNetworkException
endPoints
- end point candidatescost
- cost rangeconstraint
- network constraintgoalNodeFilter
- goal node filterLODNetworkException
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
- maximum link level to search onLODNetworkException
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
- maximum link level to search onLODNetworkException
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 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 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
linkLevel
- maximum link level to search onLODNetworkException
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 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 constraintLODNetworkException
public long[] mcst(int linkLevel, LODNetworkConstraint constraint, NetworkUpdate tmpNetworkUpdate) throws LODNetworkException
linkLevel
- link leveltmpNetworkUpdate
- temporary network updateLODNetworkException
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.linkLevel
- link levelconstraint
- 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.linkLevel
- link levelconstraint
- network constraintalgorithm
- tsp algorithmLODNetworkException
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 constraintLODNetworkException
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
|
Oracle® Spatial Java API Reference 11g Release 2 (11.2) E11829-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |