Interface Traverser<E>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      double getDistance​(E fromNode, E toNode)
      Retrieves the distance between the current and previous node in the GraphParams object.
      Iterator<E> getSuccessors​(E previousNode, E currentNode)
      Retrieves the next set of nodes in the graph based on the given GraphParams.
    • Method Detail

      • getSuccessors

        Iterator<E> getSuccessors​(E previousNode,
                                  E currentNode)
        Retrieves the next set of nodes in the graph based on the given GraphParams. In a tree this would be the child nodes of the current node.
        Parameters:
        params - a parameter object that contains information on the previous and current graph traversal
        Returns:
        An iterator that will return the next nodes to visit in the graph traversal.
        See Also:
        GraphParams
      • getDistance

        double getDistance​(E fromNode,
                           E toNode)
        Retrieves the distance between the current and previous node in the GraphParams object. This generally will be used to determine what time to schedule the current node at.
        Parameters:
        params - the object containing the previous and current node
        Returns:
        the distance between the nodes