-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathisearch.h
50 lines (42 loc) · 1.28 KB
/
isearch.h
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
#ifndef ISEARCH_H
#define ISEARCH_H
#include "ilogger.h"
#include "searchresult.h"
#include "environmentoptions.h"
#include "IOpenContainer.h"
#include "OVctList.h"
#include "OList.h"
#include "OSet.h"
#include "OPriorityQueue.h"
#include "OVctSet.h"
#include "OVctProirityQueue.h"
#include <list>
#include <vector>
#include <set>
#include <math.h>
#include <limits>
#include <chrono>
class ISearch
{
public:
ISearch();
virtual ~ISearch(void);
void CreateOpen(int type, bool allowduplicates, const Map &map);
virtual SearchResult startSearch(ILogger *Logger, const Map &map, const EnvironmentOptions &options);
protected:
virtual std::list<Node> findSuccessors(Node *curNode, const Map &map, const EnvironmentOptions &options);
virtual double computeHFromCellToCell(int i1, int j1, int i2, int j2, const EnvironmentOptions &options) = 0;
bool isClosed(int i, int j);
double Cost(Node fst, Node scn);
SearchResult sresult;
std::list<Node> lppath, hppath;
double hweight;
bool breakingties;
std::unordered_map <int, Node> Close;
IOpenContainer *Open;
Node goal;
Node start;
int width;
bool dupl;
};
#endif