Interface NodeGoalTester<N,A>
-
- All Superinterfaces:
PathGoalTester<N,A>
public interface NodeGoalTester<N,A> extends PathGoalTester<N,A>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleanisGoal(N node)Check if the current node is a goal for the problem.default booleanisGoal(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:
trueif it is a goal,false otherwise.
-
isGoal
default boolean isGoal(org.api4.java.datastructure.graph.IPath<N,A> path)
Description copied from interface:PathGoalTesterCheck if the current node is a goal for the problem.- Specified by:
isGoalin interfacePathGoalTester<N,A>- Parameters:
path- The path to check.- Returns:
trueif it is a goal,false otherwise.
-
-