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.ObjectAn 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 doublegetCurrentCost()Deprecated.double[]getCurrentCosts()Returns the costs of the current node.intgetCurrentDepth()Returns the path depth of the current node.LogicalNetLinkgetCurrentLink()Returns the current link.LogicalNetNodegetCurrentNode()Returns the current node.java.lang.Object[]getCurrentUserObjects()Returns the user objects that have been accumulated so far.intgetDirection()Returns the direction the network is being explored.LogicalNodegetEndNode()Deprecated.use getEndPointsHeavyPointOnNetgetEndPoint()Deprecated.use getEndPointsHeavyPointOnNet[]getEndPoints()Returns the end points.VisitedNodegetExpandedNode()Returns the node currently being expanded.doublegetNextCost()Returns the path cost of next node.double[]getNextCosts()Returns the costs of next node.intgetNextDepth()Returns the path depth of the next node.LogicalNetLinkgetNextLink()Returns the next link.LogicalNetNodegetNextNode()Returns the next node.java.lang.ObjectgetNextUserObject()Returns the next user object.LogicalNodegetStartNode()Deprecated.use getStartPointsHeavyPointOnNetgetStartPoint()Deprecated.use getStartPointsHeavyPointOnNet[]getStartPoints()Returns the start points.protected voidinit(LinkCostCalculator[] lccs, NodeCostCalculator[] nccs, int direction)voidreset()voidsetCurrentCost(double currentCost)Deprecated.voidsetCurrentCosts(double[] currentCosts)Sets the current costs.voidsetCurrentDepth(int currentDepth)Sets the current depth.voidsetCurrentLink(LogicalNetLink currentLink)Sets the current link.voidsetCurrentNode(LogicalNetNode currentNode)Sets the current node.voidsetCurrentUserObjects(java.lang.Object[] userObjects)Sets the user objects that have been accumulated so far.voidsetDirection(int direction)Sets the direction the network is being explored.voidsetEndNode(LogicalNode endNode)Deprecated.user setEndPointsvoidsetEndPoint(HeavyPointOnNet endPoint)Deprecated.user setEndPointsvoidsetEndPoints(HeavyPointOnNet[] endPoints)Sets the end point.voidsetExpandedNode(VisitedNode expandedNode)Sets the node currently being expanded.voidsetNextLink(LogicalNetLink nextLink)Sets the next link.voidsetNextNode(LogicalNetNode nextNode)Sets the next node.voidsetNextUserObject(java.lang.Object userObject)Sets the next user object to be accumulated.protected voidsetStartNode(LogicalNode startNode)Deprecated.use setStartPointsvoidsetStartPoint(HeavyPointOnNet startPoint)Deprecated.user setStartPointsvoidsetStartPoints(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
-
-