Revision 2f025967
ID | 2f0259679a0994dd9893ecace84dab0fa118eaeb |
Got scheduler to compile. onto wh robots
scout/libscout/src/helper_classes/Order.h | ||
---|---|---|
1 | 1 |
#ifndef _ORDER_ |
2 | 2 |
#define _ORDER_ |
3 | 3 |
|
4 |
#include "../Behavior.h" |
|
5 |
#include "../behaviors/navigationMap.h" |
|
6 |
|
|
4 | 7 |
#define MAX_WAIT_TIME 120 //2 minutes in seconds |
5 | 8 |
|
6 | 9 |
typedef unsigned int Address; |
7 |
typedef unsigned int Path; |
|
8 |
typedef double Time; |
|
9 | 10 |
|
10 | 11 |
class Order { |
11 | 12 |
int id; |
... | ... | |
15 | 16 |
Time est_time; |
16 | 17 |
public: |
17 | 18 |
Order(int order_id, Address order_source, Address order_dest, |
18 |
Time order_start_time, Path order_path, Time order_est_time);
|
|
19 |
Time order_start_time, Path order_path, Duration order_est_time);
|
|
19 | 20 |
|
20 | 21 |
int getid() const; |
21 | 22 |
Address get_source() const; |
22 | 23 |
Address get_dest() const; |
23 | 24 |
Time get_start_time() const; |
24 | 25 |
Path get_path() const; |
25 |
Time get_est_time() const;
|
|
26 |
Duration get_est_time() const;
|
|
26 | 27 |
void set_path(Path order_path); |
27 | 28 |
|
28 |
bool operator==(Order& o1, Order& o2);
|
|
29 |
bool operator==(Order& order);
|
|
29 | 30 |
|
30 | 31 |
}; |
31 | 32 |
|
Also available in: Unified diff