|
Oracle® Spatial Java API Reference 11g Release 1 (11.1) B28401-01 |
||||||||
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.
Field Summary | |
---|---|
static int |
BREADTH_FIRST_SEARCH |
static int |
DEPTH_FIRST_SEARCH |
Method Summary | |
---|---|
OrderedLongSet[] |
findConnectedComponents(int linkLevel) 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() Returns the link cost calculator. |
NodeCostCalculator |
getNodeCostCalculator() Returns the node cost calculator. |
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[] |
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. |
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. |
void |
resetCostCalculators() Restores the default settings of link cost calculator and node cost calculator. |
void |
setLinkCostCalculator(LinkCostCalculator calculator) Sets the link cost calculator. |
void |
setNetworkUpdate(java.util.HashMap<java.lang.Integer,NetworkUpdate> networkUpdates) Sets the network update objects. |
void |
setNodeCostCalculator(NodeCostCalculator calculator) Sets the node cost calculator. |
LogicalSubPath |
shortestPathDijkstra(PointOnNet startPoint, PointOnNet endPoint, int searchLinkLevel, LODNetworkConstraint constraint) Finds the shortest path from a point on the start link to the end node. |
LogicalSubPath |
shortestPathDijkstra(PointOnNet startPoint, PointOnNet endPoint, LODNetworkConstraint constraint) Finds the shortest path from the start point to the end point. |
LogicalSubPath |
shortestPathDijkstraMaxLevel(PointOnNet startPoint, PointOnNet endPoint, LODNetworkConstraint constraint) Finds the shortest path from the start node to the end node using the highest possible link level. |
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. |
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. |
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. |
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. |
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 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 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[] 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[] 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 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[] 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[] 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 for neighborstargetLinkLevel
- maximum outgoing link level of the targetsconstraint
- network constraintgoalNodeFilter
- goal node implementationLODNetworkException
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 for neighborstargetLinkLevel
- maximum incoming link level of the targetsconstraint
- network constraintgoalNodeFilter
- goal node implementationLODNetworkException
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 void setNetworkUpdate(java.util.HashMap<java.lang.Integer,NetworkUpdate> networkUpdates)
networkUpdates
- network update objects for different link levels
|
Oracle® Spatial Java API Reference 11g Release 1 (11.1) B28401-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |