Interface NodeGoalTester<N,​A>

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      boolean isGoal​(N node)
      Check if the current node is a goal for the problem.
      default boolean isGoal​(org.api4.java.datastructure.graph.IPath<N,​A> path)
      Check if the current node is a goal for the problem.
    • Method Detail

      • isGoal

        boolean isGoal​(N node)
        Check if the current node is a goal for the problem.
        Parameters:
        node - The node to check.
        Returns:
        true if it is a goal, false otherwise.
      • isGoal

        default boolean isGoal​(org.api4.java.datastructure.graph.IPath<N,​A> path)
        Description copied from interface: PathGoalTester
        Check if the current node is a goal for the problem.
        Specified by:
        isGoal in interface PathGoalTester<N,​A>
        Parameters:
        path - The path to check.
        Returns:
        true if it is a goal, false otherwise.