Project

General

Profile

Statistics
| Branch: | Revision:

root / scout / libscout / src / helper_classes / Order.h @ 6ee555a3

History | View | Annotate | Download (839 Bytes)

1 4469dadd unknown
#ifndef _ORDER_
2
#define _ORDER_
3
4 2f025967 Priya
#include "../Behavior.h"
5
#include "../behaviors/navigationMap.h"
6
7 76cefba1 Priya
#define MAX_WAIT_TIME 120 //2 minutes in seconds
8
9 4469dadd unknown
typedef unsigned int Address;
10
11
class Order {
12 76cefba1 Priya
    int id;
13
    Address source, dest;
14
    Time start_time;
15
    Path path;
16 6761a531 Priya
    Duration est_time;
17 4469dadd unknown
public:
18 ca164875 Leon
    Order(int order_id, Address order_source, Address order_dest, 
19 2f025967 Priya
        Time order_start_time, Path order_path, Duration order_est_time);
20 6761a531 Priya
  
21
    Order() {};
22 76cefba1 Priya
23 4469dadd unknown
    int getid() const;
24 76cefba1 Priya
    Address get_source() const;
25
    Address get_dest() const;
26
    Time get_start_time() const;
27
    Path get_path() const;
28 2f025967 Priya
    Duration get_est_time() const;
29 76cefba1 Priya
    void set_path(Path order_path);
30 6761a531 Priya
    int get_priority() const;
31 9b4328d7 Priya
32 2f025967 Priya
    bool operator==(Order& order);
33 76cefba1 Priya
    
34 4469dadd unknown
};
35
36
class CompareOrder {
37 76cefba1 Priya
  public:
38
    bool operator()(Order& o1, Order& o2);   
39 4469dadd unknown
};
40 76cefba1 Priya
41
#endif