-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplanner.hh
50 lines (36 loc) · 918 Bytes
/
planner.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
47
48
49
50
/*
* Code by Chris Mansley
*/
#ifndef PLANNER_HH
#define PLANNER_HH
/* Definition dependencies */
#include "state.hh"
#include "action.hh"
#include "domain.hh"
#include "chopper.hh"
class Planner
{
public:
/** Constructor */
Planner(Domain *d, Chopper *c, double e) : domain(d), chopper(c), epsilon(e) { }
/** Destructor */
virtual ~Planner( ) { }
/** Initialize planner */
virtual void initialize(std::string filename) = 0;
/** Plan for one state */
virtual Action plan(State s) = 0;
/** Restrict planner by queries */
virtual void setMaxQueries(int queries) = 0;
/** Print data structure */
virtual void print(State s) = 0;
protected:
/** Storage for domain */
Domain *domain;
/** Storage for discretizer */
Chopper *chopper;
/** Algorithm tolerence */
double epsilon;
/** Maximum number of generative model queries */
int maxQueries;
};
#endif // PLANNER_HH