Class LODAnalysisInfo

  • Direct Known Subclasses:
    TspAnalysisInfo

    public class LODAnalysisInfo
    extends java.lang.Object
    An instance of this class carries the analysis information.
    Since:
    11gR1
    • Constructor Detail

      • LODAnalysisInfo

        public LODAnalysisInfo()
      • LODAnalysisInfo

        public LODAnalysisInfo​(LinkCostCalculator[] lccs,
                               NodeCostCalculator[] nccs,
                               int direction)
        Creates an LODAnalysisInfo object.
        Parameters:
        lccs - link cost calculators
        nccs - node cost calculators
        direction - 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

      • reset

        public void reset()
      • getStartNode

        public LogicalNode getStartNode()
        Deprecated.
        use getStartPoints
        Returns the start node.
      • getEndNode

        public LogicalNode getEndNode()
        Deprecated.
        use getEndPoints
        Returns the end node.
      • getStartPoint

        public HeavyPointOnNet getStartPoint()
        Deprecated.
        use getStartPoints
        Returns the start point.
      • getEndPoint

        public HeavyPointOnNet getEndPoint()
        Deprecated.
        use getEndPoints
        Returns 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 setStartPoints
        Sets the start node. This method is for internal use only.
        Parameters:
        startNode -
      • setEndNode

        public void setEndNode​(LogicalNode endNode)
        Deprecated.
        user setEndPoints
        Sets the end node. This method is for internal use only.
        Parameters:
        endNode -
      • setStartPoint

        public void setStartPoint​(HeavyPointOnNet startPoint)
        Deprecated.
        user setStartPoints
        Sets the start point. This method is for internal use only.
        Parameters:
        startPoint -
      • setEndPoint

        public void setEndPoint​(HeavyPointOnNet endPoint)
        Deprecated.
        user setEndPoints
        Sets 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