-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhoot.hh
46 lines (34 loc) · 881 Bytes
/
hoot.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
* Code by Chris Mansley
*/
#ifndef HOOT_HH
#define HOOT_HH
/* Definition dependencies */
#include <boost/unordered_map.hpp>
#include <string>
#include <vector>
#include "mcplanner.hh"
#include "domain.hh"
#include "chopper.hh"
#include "hoo.hh"
class HOOT : public MCPlanner
{
public:
/** Constructor */
HOOT(Domain *d, Chopper *c, double epsilon);
/** Destructor */
~HOOT() { /* Possible mem clean up? */ }
/** Initialize the planner */
void initialize(std::string filename);
void print(State s);
private:
/** Algorithm Data Structures */
boost::unordered_map<std::vector<int>, HOO*> HOOS;
/** Update value */
void updateValue(int depth, SARS *sars, double qvalue);
/** Select next action (greedily or not) */
Action selectAction(State s, int depth, bool greedy);
/** Clear out data stuctures */
void reset();
};
#endif // HOOT_HH