Package search
Class GoalCheckers
java.lang.Object
search.GoalCheckers
public class GoalCheckers extends Object
Sample implementations of checkers that a tree node corresponds to
a search goal.
-
Constructor Summary
Constructors Constructor Description GoalCheckers()
-
Method Summary
Modifier and Type Method Description static <Node> GoalChecker<Node>
firstGoal(Predicate<Node> checker)
Implementation that checks whether a tree node corresponds to a search goal, built on a predicate on search tree nodes.static <S, N extends SearchTreeNode<N, S>>
Supplier<GoalChecker<N>>goalCheckerFactory(Predicate<S> pred)
Implementation that checks whether a tree node corresponds to a search goal, built on a predicate on search states.static <S, N extends SearchTreeNode<N, S>>
Predicate<N>liftPredicate(Predicate<S> pred)
Converts a predicate on search states into a predicate on search tree nodes.
-
Constructor Details
-
GoalCheckers
public GoalCheckers()
-
-
Method Details
-
firstGoal
Implementation that checks whether a tree node corresponds to a search goal, built on a predicate on search tree nodes. -
goalCheckerFactory
public static <S, N extends SearchTreeNode<N, S>> Supplier<GoalChecker<N>> goalCheckerFactory(Predicate<S> pred)Implementation that checks whether a tree node corresponds to a search goal, built on a predicate on search states. -
liftPredicate
Converts a predicate on search states into a predicate on search tree nodes.
-