Assignment Search Framework
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
a_star.h
Go to the documentation of this file.
1 /*
2  * a_star.h
3  *
4  * LICENSE HERE
5  *
6  * Created on: 2016-09-22
7  * Author: Rick Valenzano
8  */
9 
10 #ifndef A_STAR_H_
11 #define A_STAR_H_
12 
13 #include "best_first_search.h"
14 
15 template<class state_t, class action_t>
16 class AStar: public BestFirstSearch<state_t, action_t>
17 {
18 public:
19  AStar();
20  virtual ~AStar();
21 
22 protected:
23  virtual double nodeEval(const state_t &state, double g_cost, double h_cost);
24 };
25 
26 template<class state_t, class action_t>
28 {
29 }
30 
31 template<class state_t, class action_t>
33 {
34 }
35 
36 template<class state_t, class action_t>
37 inline double AStar<state_t, action_t>::nodeEval(const state_t& state, double g_cost, double h_cost)
38 {
39  return g_cost + h_cost;
40 }
41 
42 #endif /* A_STAR_H_ */
AStar()
Definition: a_star.h:27
virtual ~AStar()
Definition: a_star.h:32
virtual double nodeEval(const state_t &state, double g_cost, double h_cost)
Definition: a_star.h:37
Definition: a_star.h:16
Definition: best_first_search.h:50