Package at.jku.ssw.fp.sect04_3
Interface SearchAlgosGeneric.Controller<N,C extends Collection<N>>
-
- Type Parameters:
N
- the type of the nodesC
- 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Supplier<C>
createFn()
Returns the supplier function to create the collection used in the search algorithm.Function<C,N>
nextNodeFn()
Returns the function to retrieve the next node to handle from the collection.BiConsumer<List<N>,C>
updateFn()
Returns the function to update the collection given a list of next nodes.
-
-
-
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
-
-