-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbottlingplant.h
More file actions
32 lines (28 loc) · 863 Bytes
/
Copy pathbottlingplant.h
File metadata and controls
32 lines (28 loc) · 863 Bytes
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
#ifndef __BOTTLINGPLANT_H__
#define __BOTTLINGPLANT_H__
#include "MPRNG.h"
#include "nameserver.h"
#include "truck.h"
#include <vector>
_Task BottlingPlant {
void main();
//pass in
Printer& prt;
NameServer& nameServer;
unsigned int numVendingMachines;
unsigned int maxShippedPerFlavour;
unsigned int maxStockPerFlavour;
unsigned int timeBetweenShipments;
std::vector<unsigned int>stock;
Truck* mytruck;
unsigned int totalcount;
bool shutdown;//bool to indicate shut down
public:
_Event Shutdown {}; // shutdown plant
BottlingPlant(Printer &prt,NameServer &nameServer,unsigned int numVendingMachines,
unsigned int maxShippedPerFlavour,unsigned int maxStockPerFlavour,
unsigned int timeBetweenShipments);
~BottlingPlant();
void getShipment(unsigned int cargo[]);
};
#endif