-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathscipp.h
33 lines (29 loc) · 1.34 KB
/
scipp.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
#ifndef SCIPP_H
#define SCIPP_H
#include "focalsearch.h"
#include "sipp.h"
#include "scipp_node.h"
template <typename NodeType = SCIPPNode>
class SCIPP : public SIPP<NodeType>, public FocalSearch<NodeType>
{
public:
SCIPP(double FocalW = 1.0, double HW = 1.0, bool BT = true) :
Astar<NodeType>(true, HW, BT), SIPP<NodeType>(HW, BT), FocalSearch<NodeType>(true, FocalW, HW, BT) {}
SCIPP(SCIPP& other) = default;
SCIPP& operator=(SCIPP& other) = default;
SCIPP(SCIPP&& other) = default;
SCIPP& operator=(SCIPP&& other) = default;
virtual ~SCIPP();
protected:
void splitBySoftConflicts(std::vector<std::pair<int, int>> &softConflictIntervals,
const NodeType & node, const NodeType & prevNode, std::pair<int, int> interval,
const ConflictAvoidanceTable &CAT) override;
bool canStay() override { return true; }
void addStartNode(NodeType &node, const Map &map, const ConflictAvoidanceTable &CAT) override;
void setHC(NodeType &neigh, const NodeType &cur,
const ConflictAvoidanceTable &CAT, bool isGoal) override;
void createNeighborsByEdges(const NodeType &cur, NodeType &neigh,
std::list<NodeType> &successors, int agentId,
const ConstraintsSet &constraints, const ConflictAvoidanceTable &CAT) override;
};
#endif // SCIPP_H