AIMA.Core.Search.Framework.Problem.getGoalTest C# (CSharp) Method

getGoalTest() public method

public getGoalTest ( ) : GoalTest
return GoalTest
        public GoalTest getGoalTest()
        {
            return goalTest;
        }

Usage Example

Example #1
0
 public static bool isGoalState(Problem p, Node n)
 {
     bool isGoal = false;
     GoalTest gt = p.getGoalTest();
     if (gt.isGoalState(n.getState()))
     {
         if (gt is SolutionChecker)
         {
             isGoal = ((SolutionChecker)gt).isAcceptableSolution(
                     SearchUtils.actionsFromNodes(n.getPathFromRoot()), n
                             .getState());
         }
         else
         {
             isGoal = true;
         }
     }
     return isGoal;
 }
All Usage Examples Of AIMA.Core.Search.Framework.Problem::getGoalTest