Package search
Interface GoalChecker<Node>
- Type Parameters:
Node
- Type representing nodes in the search tree.
- All Superinterfaces:
Predicate<Node>
public interface GoalChecker<Node> extends Predicate<Node>
Methods required of objects which check that a tree node
corresponds to a search goal.
This interface extends a
Predicate
, and its check method does correspond to
checking each node as it is removed from the frontier for
expansion.
However these object can also allow the search process to delay
selecting the found node until the end of a complete search; in
this usage the get
method should return the desired
search result.-
Method Summary
Modifier and Type Method Description Node
get()
When a search exhausts the frontier, this method can return the result, or else should throw aSearchFailureException
.
-
Method Details
-
get
When a search exhausts the frontier, this method can return the result, or else should throw aSearchFailureException
.- Throws:
SearchFailureException
-