-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathInstance.h
52 lines (42 loc) · 1.39 KB
/
Instance.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#pragma once
#include <vector>
#include "Customer.h"
#include "ItemType.h"
#include "Item.h"
#include "Vehicle.h"
namespace validator {
/**
* The type Instance.
*/
class Instance {
public:
// Constructor
/**
* Instantiates a new Instance.
*
* @param name the instance name
* @param vehicle the vehicle data, homogeneous fleet
* @param itemTypes the list with all item types
* @param customers the list with all customers
* @param v_max the maximal number of available vehicles
* @param tw the consideration of time windows
* @param tw the consideration of split deliveries
*/
Instance(const std::string name, const Vehicle& vehicle, const std::vector<ItemType>& itemTypes, const std::vector<Customer>& customers, const unsigned int v_max, const bool tw)
: name(name), vehicle(vehicle), itemTypes(itemTypes), customers(customers), v_max(v_max), tw(tw){}
/** the instance name */
const std::string name;
/** the vehicle data, homogeneous fleet */
const Vehicle vehicle;
/** the list with all item types */
const std::vector<ItemType> itemTypes;
/** the list with all customers */
std::vector<Customer> customers;
/** the maximal number of available vehicles */
const unsigned int v_max;
/** the consideration of time windows */
const bool tw;
/** Contains all items and their position */
std::vector<Item> items;
};
}