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 Details

  • Method Details

    • firstGoal

      public 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.
    • 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

      public 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.