Interface SearchAlgosGeneric.Controller<N,​C extends Collection<N>>

  • Type Parameters:
    N - the type of the nodes
    C - the type of the collection used in the search algorithm
    Enclosing class:
    SearchAlgosGeneric

    public static interface SearchAlgosGeneric.Controller<N,​C extends Collection<N>>
    The interface for the controller of the search algorithm.
    • Method Detail

      • createFn

        Supplier<C> createFn()
        Returns the supplier function to create the collection used in the search algorithm.
        Returns:
        the supplier function for the collection
      • nextNodeFn

        Function<C,​N> nextNodeFn()
        Returns the function to retrieve the next node to handle from the collection.
        Returns:
        the function to retrieve the next node
      • updateFn

        BiConsumer<List<N>,​C> updateFn()
        Returns the function to update the collection given a list of next nodes.
        Returns:
        the function to update the collection