-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathagent.cpp
65 lines (48 loc) · 809 Bytes
/
agent.cpp
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
51
52
53
54
55
56
57
58
59
60
61
62
63
#include "agent.h"
int Agent::getStart_i() const
{
return start_i;
}
int Agent::getStart_j() const
{
return start_j;
}
int Agent::getGoal_i() const
{
return goal_i;
}
int Agent::getGoal_j() const
{
return goal_j;
}
int Agent::getCur_i() const
{
return cur_i;
}
int Agent::getCur_j() const
{
return cur_j;
}
int Agent::getId() const
{
return id;
}
int Agent::getSubgraph() const {
return subgraph;
}
Node Agent::getStartPosition() const {
return Node(start_i, start_j);
}
Node Agent::getGoalPosition() const {
return Node(goal_i, goal_j);
}
Node Agent::getCurPosition() const {
return Node(cur_i, cur_j);
}
void Agent::setCurPosition(int i, int j) {
cur_i = i;
cur_j = j;
}
void Agent::setSubgraph(int Subgraph) {
subgraph = Subgraph;
}