-
Notifications
You must be signed in to change notification settings - Fork 2
/
Customer.h
34 lines (28 loc) · 897 Bytes
/
Customer.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
34
//
// Created by ivanedo on 15-05-16.
//
#ifndef VRPTW_ACO_CUSTOMER_H
#define VRPTW_ACO_CUSTOMER_H
class Graph;
class Customer {
private:
const int id;
const double x;
const double y;
const int demand;
const int earliest_time; // 'Ready time' is the earliest time at which service may start at the given customer/depot.
const int latest_time; // 'Due date' is the latest time at which service may start at the given customer/depot.
const int service_time;
Graph *graph;
public:
Customer(const int id, const double x, const double y, const int demand, const int earliest_time, const int latest_time, const int service_time, Graph *graph);
int get_id();
double get_x();
double get_y();
int get_demand();
int get_earliest_time();
int get_latest_time();
int get_service_time();
void print();
};
#endif //VRPTW_ACO_CUSTOMER_H