Assignment Search Framework
Main Page
Related Pages
Classes
Files
File List
File Members
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>
27
inline
AStar<state_t, action_t>::AStar
()
28
{
29
}
30
31
template
<
class
state_t,
class
action_t>
32
inline
AStar<state_t, action_t>::~AStar
()
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::AStar
AStar()
Definition:
a_star.h:27
AStar::~AStar
virtual ~AStar()
Definition:
a_star.h:32
AStar::nodeEval
virtual double nodeEval(const state_t &state, double g_cost, double h_cost)
Definition:
a_star.h:37
AStar
Definition:
a_star.h:16
best_first_search.h
BestFirstSearch
Definition:
best_first_search.h:50
algorithms
best_first_search
a_star.h
Generated on Mon Oct 3 2016 13:01:02 for Assignment Search Framework by
1.8.7