Package oracle.spatial.network.lod
Class LODAnalysisInfo
- java.lang.Object
-
- oracle.spatial.network.lod.LODAnalysisInfo
-
- Direct Known Subclasses:
TspAnalysisInfo
public class LODAnalysisInfo extends java.lang.Object
An instance of this class carries the analysis information.- Since:
- 11gR1
-
-
Constructor Summary
Constructors Constructor Description LODAnalysisInfo()
LODAnalysisInfo(LinkCostCalculator[] lccs, NodeCostCalculator[] nccs, int direction)
Creates an LODAnalysisInfo object.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description double
getCurrentCost()
Deprecated.double[]
getCurrentCosts()
Returns the costs of the current node.int
getCurrentDepth()
Returns the path depth of the current node.LogicalNetLink
getCurrentLink()
Returns the current link.LogicalNetNode
getCurrentNode()
Returns the current node.java.lang.Object[]
getCurrentUserObjects()
Returns the user objects that have been accumulated so far.int
getDirection()
Returns the direction the network is being explored.LogicalNode
getEndNode()
Deprecated.use getEndPointsHeavyPointOnNet
getEndPoint()
Deprecated.use getEndPointsHeavyPointOnNet[]
getEndPoints()
Returns the end points.VisitedNode
getExpandedNode()
Returns the node currently being expanded.double
getNextCost()
Returns the path cost of next node.double[]
getNextCosts()
Returns the costs of next node.int
getNextDepth()
Returns the path depth of the next node.LogicalNetLink
getNextLink()
Returns the next link.LogicalNetNode
getNextNode()
Returns the next node.java.lang.Object
getNextUserObject()
Returns the next user object.LogicalNode
getStartNode()
Deprecated.use getStartPointsHeavyPointOnNet
getStartPoint()
Deprecated.use getStartPointsHeavyPointOnNet[]
getStartPoints()
Returns the start points.protected void
init(LinkCostCalculator[] lccs, NodeCostCalculator[] nccs, int direction)
void
reset()
void
setCurrentCost(double currentCost)
Deprecated.void
setCurrentCosts(double[] currentCosts)
Sets the current costs.void
setCurrentDepth(int currentDepth)
Sets the current depth.void
setCurrentLink(LogicalNetLink currentLink)
Sets the current link.void
setCurrentNode(LogicalNetNode currentNode)
Sets the current node.void
setCurrentUserObjects(java.lang.Object[] userObjects)
Sets the user objects that have been accumulated so far.void
setDirection(int direction)
Sets the direction the network is being explored.void
setEndNode(LogicalNode endNode)
Deprecated.user setEndPointsvoid
setEndPoint(HeavyPointOnNet endPoint)
Deprecated.user setEndPointsvoid
setEndPoints(HeavyPointOnNet[] endPoints)
Sets the end point.void
setExpandedNode(VisitedNode expandedNode)
Sets the node currently being expanded.void
setNextLink(LogicalNetLink nextLink)
Sets the next link.void
setNextNode(LogicalNetNode nextNode)
Sets the next node.void
setNextUserObject(java.lang.Object userObject)
Sets the next user object to be accumulated.protected void
setStartNode(LogicalNode startNode)
Deprecated.use setStartPointsvoid
setStartPoint(HeavyPointOnNet startPoint)
Deprecated.user setStartPointsvoid
setStartPoints(HeavyPointOnNet[] startPoints)
Sets the start point.
-
-
-
Constructor Detail
-
LODAnalysisInfo
public LODAnalysisInfo()
-
LODAnalysisInfo
public LODAnalysisInfo(LinkCostCalculator[] lccs, NodeCostCalculator[] nccs, int direction)
Creates an LODAnalysisInfo object.- Parameters:
lccs
- link cost calculatorsnccs
- node cost calculatorsdirection
- direction the network is being searched, which can take the following two values: NetworkExplorer.DIRECTION_FORWARD or NetworkExplorer.DIRECTION_BACKWARD. Forward direction means that the network search direction is the same as the traveling direction, i.e., the traveling direction is from current node to next node. Backward direction means that the network search direction is the reverse of the traveling direction, i.e., the traveling direction is from next node to current node.
-
-
Method Detail
-
init
protected void init(LinkCostCalculator[] lccs, NodeCostCalculator[] nccs, int direction)
-
reset
public void reset()
-
getStartNode
public LogicalNode getStartNode()
Deprecated.use getStartPointsReturns the start node.
-
getEndNode
public LogicalNode getEndNode()
Deprecated.use getEndPointsReturns the end node.
-
getStartPoint
public HeavyPointOnNet getStartPoint()
Deprecated.use getStartPointsReturns the start point.
-
getEndPoint
public HeavyPointOnNet getEndPoint()
Deprecated.use getEndPointsReturns the end point.
-
getStartPoints
public HeavyPointOnNet[] getStartPoints()
Returns the start points.
-
getEndPoints
public HeavyPointOnNet[] getEndPoints()
Returns the end points.
-
getCurrentNode
public LogicalNetNode getCurrentNode()
Returns the current node.
-
getNextNode
public LogicalNetNode getNextNode()
Returns the next node.
-
getCurrentLink
public LogicalNetLink getCurrentLink()
Returns the current link.
-
getNextLink
public LogicalNetLink getNextLink()
Returns the next link.
-
getExpandedNode
public VisitedNode getExpandedNode()
Returns the node currently being expanded.- Returns:
-
getCurrentDepth
public int getCurrentDepth()
Returns the path depth of the current node.
-
getNextDepth
public int getNextDepth()
Returns the path depth of the next node.
-
getCurrentCost
public double getCurrentCost()
Deprecated.Returns the path cost of the current node.
-
getCurrentCosts
public double[] getCurrentCosts()
Returns the costs of the current node.
-
getNextCost
public double getNextCost()
Returns the path cost of next node.
-
getNextCosts
public double[] getNextCosts()
Returns the costs of next node.
-
setStartNode
protected void setStartNode(LogicalNode startNode)
Deprecated.use setStartPointsSets the start node. This method is for internal use only.- Parameters:
startNode
-
-
setEndNode
public void setEndNode(LogicalNode endNode)
Deprecated.user setEndPointsSets the end node. This method is for internal use only.- Parameters:
endNode
-
-
setStartPoint
public void setStartPoint(HeavyPointOnNet startPoint)
Deprecated.user setStartPointsSets the start point. This method is for internal use only.- Parameters:
startPoint
-
-
setEndPoint
public void setEndPoint(HeavyPointOnNet endPoint)
Deprecated.user setEndPointsSets the end point. This method is for internal use only.- Parameters:
endPoint
-
-
setStartPoints
public void setStartPoints(HeavyPointOnNet[] startPoints)
Sets the start point. This method is for internal use only.- Parameters:
startPoints
-
-
setEndPoints
public void setEndPoints(HeavyPointOnNet[] endPoints)
Sets the end point. This method is for internal use only.- Parameters:
endPoints
-
-
setCurrentNode
public void setCurrentNode(LogicalNetNode currentNode)
Sets the current node. This method is for internal use only.- Parameters:
currentNode
-
-
setNextNode
public void setNextNode(LogicalNetNode nextNode)
Sets the next node. This method is for internal use only.- Parameters:
nextNode
-
-
setCurrentLink
public void setCurrentLink(LogicalNetLink currentLink)
Sets the current link. This method is for internal use only.- Parameters:
currentLink
-
-
setNextLink
public void setNextLink(LogicalNetLink nextLink)
Sets the next link. This method is for internal use only.- Parameters:
nextLink
-
-
setExpandedNode
public void setExpandedNode(VisitedNode expandedNode)
Sets the node currently being expanded.- Parameters:
expandedNode
-
-
setCurrentDepth
public void setCurrentDepth(int currentDepth)
Sets the current depth. This method is for internal use only.- Parameters:
currentDepth
-
-
setCurrentCost
public void setCurrentCost(double currentCost)
Deprecated.Sets the current cost. This method is for internal use only.- Parameters:
currentCost
-
-
setCurrentCosts
public void setCurrentCosts(double[] currentCosts)
Sets the current costs. This method is for internal use only.- Parameters:
currentCosts
-
-
getNextUserObject
public java.lang.Object getNextUserObject()
Returns the next user object.- Returns:
-
setNextUserObject
public void setNextUserObject(java.lang.Object userObject)
Sets the next user object to be accumulated.- Parameters:
userObject
-
-
setCurrentUserObjects
public void setCurrentUserObjects(java.lang.Object[] userObjects)
Sets the user objects that have been accumulated so far. This method is for internal use only.- Parameters:
userObjects
-
-
getCurrentUserObjects
public java.lang.Object[] getCurrentUserObjects()
Returns the user objects that have been accumulated so far.- Returns:
-
getDirection
public int getDirection()
Returns the direction the network is being explored.- Returns:
- NetworkExplorer.DIRECTION_FORWARD or NetworkExplorer.DIRECTION_BACKWARD
-
setDirection
public void setDirection(int direction)
Sets the direction the network is being explored.- Parameters:
direction
- NetworkExplorer.DIRECTION_FORWARD or NetworkExplorer.DIRECTION_BACKWARD
-
-