-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
108 lines (94 loc) · 3.51 KB
/
main.cpp
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#include <iostream>
using namespace std;
#include "src/Passenger.h"
#include "src/Buses.h"
#include "src/TimeSimulation.h"
#include "src/EventClass.h"
#include "src/UI.h"
int main()
{
// SimulationTime arrivaltime(2,00);
// SimulationTime arrivaltime2(12,23);
// SimulationTime arrivaltime3(19,11);
// SimulationTime arrivaltime4(4,78);
//
//
// NormalPassenger normalPassenger(arrivaltime4, 20, 1, 5);
//
// NormalPassenger np1(arrivaltime, 15, 2, 5);
// NormalPassenger np2(arrivaltime3, 13, 1, 4);
// NormalPassenger np3(arrivaltime2, 12, 3, 8);
// NormalPassenger np4(arrivaltime, 16, 5, 7);
//
// normalPassenger.enqueuenormalpassenger(normalPassenger);
// normalPassenger.enqueuenormalpassenger(np1);
// normalPassenger.enqueuenormalpassenger(np2);
// normalPassenger.enqueuenormalpassenger(np3);
// normalPassenger.enqueuenormalpassenger(np4);
// normalPassenger.dequeuenormalpassenger();
//normalPassenger.display();
// cout << "\n_____________________________" << endl;
// SimulationTime arrivaltime5(2,00);
// SimulationTime arrivaltime6(12,23);
// SimulationTime arrivaltime7(19,11);
// SimulationTime arrivaltime8(4,78);
//
// int prio = 0;
// SpecialCategoriesPassengers specialCategoriesPassengers(arrivaltime5, 15, 2, 5);
// SpecialCategoriesPassengers p1(arrivaltime6, 12, 2, 11);
// SpecialCategoriesPassengers p2(arrivaltime7, 14, 3, 9);
// SpecialCategoriesPassengers p3(arrivaltime8, 11, 6, 7);
// specialCategoriesPassengers.enqueuePassenger(p3, prio );
// specialCategoriesPassengers.enqueuePassenger(p1, prio );
// specialCategoriesPassengers.enqueuePassenger(p2, prio );
// specialCategoriesPassengers.display();
cout << "\n_____________________________" << endl;
// SimulationTime arrivaltime(2,00);
// SimulationTime arrivaltime2(12,23);
// SimulationTime arrivaltime3(19,11);
// SimulationTime arrivaltime4(4,78);
// WheelchairPassengers wheelchairPassengers(arrivaltime,15,1,4);
// WheelchairPassengers wp1(arrivaltime2,15,1,4);
// WheelchairPassengers wp2(arrivaltime3,15,1,4);
// WheelchairPassengers wp3(arrivaltime4,15,1,4);
// wheelchairPassengers.enqueueWheelchairpassenger(wheelchairPassengers);
// wheelchairPassengers.enqueueWheelchairpassenger(wp1);
// wheelchairPassengers.enqueueWheelchairpassenger(wp2);
// wheelchairPassengers.enqueueWheelchairpassenger(wp3);
// wheelchairPassengers.display();
//_________________________________________
// WBus wBus(30, 5, 2);
// wBus.setNumberOfWBuses(5);
// wBus.enqueueWBUS(wBus);
// wBus.display();
//
// wBus.dequeueWBUS();
// cout<<"after dequeue bus: "<< endl;
// wBus.display();
// cout << "______________________" << endl;
// MBus mBus(15, 5, 2);
// mBus.setNumberOfMixedBuses(4);
// mBus.enqueueMBUS(mBus);
// mBus.display();
//
// mBus.dequeueMBUS();
// cout<<"after dequeue bus: "<< endl;
// mBus.display();
///////////////////////////////////////////////////
/*Station station(10);
Bus bus1(30, 5, 2);
Bus bus2(25, 4, 3);
station .addBusToStation(bus1);
station .addBusToStation(bus2);
station .displayBusesAtStation();
station .generateRandomNumbersAndMoveToFinishList();
station.displayBusesAtStation();
// station.moveBusesBackward();
//station.moveBusesForward(); */
//______________________________________________________
//SimulationTime testTime1(00,00);
//testTime1.advanceTime(240);
//testTime1.displayTime();
UI ui;
ui.start();
}