Наследование: NodeExpander
Пример #1
0
 public BreadthFirstSearch(QueueSearch search)
 {
     // Goal test is to be applied to each node when it is generated
     // rather than when it is selected for expansion.
     search.setCheckGoalBeforeAddingToFrontier(true);
     this._search = search;
 }
Пример #2
0
 public UniformCostSearch(QueueSearch search)
 {
     this.search = search;
     if (search is GraphSearch)
     {
         ((GraphSearch)search)
                 .setReplaceFrontierNodeAtStateCostFunction(_g);
     }
 }
Пример #3
0
 public GreedyBestFirstSearch(QueueSearch search, HeuristicFunction hf) : base(search, new GreedyBestFirstEvaluationFunction(hf))
 {
     
 }
Пример #4
0
 public DepthFirstSearch(QueueSearch search)
 {
     this.search = search;
 }
Пример #5
0
 public BestFirstSearch(QueueSearch search, EvaluationFunction ef)
 {
     this.search = search;
     evaluationFunction = ef;
 }
Пример #6
0
        public AStarSearch(QueueSearch search, HeuristicFunction hf) : base(search, new AStarEvaluationFunction(hf))
        {

        }