Project

General

Profile

Statistics
| Branch: | Revision:

root / scout / libscout / src / helper_classes / Order.h @ 4469dadd

History | View | Annotate | Download (509 Bytes)

1
#ifndef _ORDER_
2
#define _ORDER_
3

    
4
typedef unsigned int Address;
5
typedef unsigned int Path;
6

    
7
class Order {
8
    int orderID;
9
    Address orderSource, orderDest;
10
    int orderDeadline, orderStartTime;
11
    Path orderPath;
12
    int orderEstTime;
13
public:
14
    Order();
15
    Order(int ID, Address source, Address dest, int deadline, int start_time, Path path, int est_time);
16
    int getpriority() const;
17
    int getid() const;
18
};
19

    
20
class CompareOrder {
21
    public:
22
        bool operator()(Order& o1, Order& o2);
23
};
24
#endif