-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.cpp
676 lines (630 loc) · 24.6 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
// Importing libraries
#include <unistd.h>
#include <vector>
#include <algorithm>
#include <ctime>
// Importing Classes
#include "classes/AllPlanes.h"
#include "classes/AllGates.h"
#include "classes/AllCheckinCounters.h"
#include "classes/AllBelts.h"
///////// Global variables /////////
// Getting current time of the system
time_t t = time(0);
tm * currTime = localtime(&t);
AllPlanes allPlanes(*currTime);
AllGates allGates;
AllCheckinCounters allCheckinCounters;
AllBelts allBelts;
////////////////////////////////////
///////// Utility Functions /////////
void reAssignResources(){
allPlanes.resetPlanes();
allGates.resetGates();
allCheckinCounters.resetCheckinCounters();
allBelts.resetBelts();
allPlanes.assignGates(*currTime, allGates.gates);
allPlanes.assignCounters(*currTime, allCheckinCounters.checkinCounters);
allPlanes.assignBelts(*currTime, allBelts.belts);
}
/////////////////////////////////////
//////////// Screens ////////////////
void showAirPortFacilitiesScreen(string s){
system("clear");
cout << "\n\n" << endl;
cout << "Current Time: " << currTime->tm_hour * 100 + currTime->tm_min << endl;
cout << "\n\tID\t Occupied By Plane" << endl;
if(s == "gate"){
for(int i = 0; i < allGates.gates.size(); i++){
cout << "\t" << allGates.gates[i].getId() << "\t ";
if(allGates.gates[i].getOccupied()){
cout << allGates.gates[i].getOccupiedByPlane();
}
else{
cout << "Not Occupied";
}
cout << endl;
}
}
if(s == "checkinCounter"){
for(int i = 0; i < allCheckinCounters.checkinCounters.size(); i++){
cout << "\t" << allCheckinCounters.checkinCounters[i].getId() << "\t ";
if(allCheckinCounters.checkinCounters[i].getOccupied()){
cout << allCheckinCounters.checkinCounters[i].getOccupiedByPlane();
}
else{
cout << "Not Occupied";
}
cout << endl;
}
}
cout << "\n\nPress Enter to continue" << endl;
getchar();
getchar();
}
void showPlaneScreen(){
system("clear");
cout << "\n\n" << endl;
cout << "Current Time: " << currTime->tm_hour * 100 + currTime->tm_min << endl;
// Arrivals
cout << "\t\t\t\t\t ______________________________" << endl;
cout << "\t\t\t\t\t Arrivals" << endl;
cout << "\t\t\t\t\t ______________________________" << endl;
cout << "\nPlane Id\tArriving From\tActual Arrival\tScheduled Arrival\tStatus\t\t\tGate\t\tBelt" << endl;
for(int i = 0; i < allPlanes.planes.size(); i++){
if(allPlanes.planes[i].getStatus() != "counter open" &&allPlanes.planes[i].getActualArrival() > currTime->tm_hour * 100 - 300 && allPlanes.planes[i].getActualArrival() <= currTime->tm_hour * 100 + currTime->tm_min + 400){
cout << allPlanes.planes[i].getId() << "\t\t " << allPlanes.planes[i].getFrom() << "\t\t" << allPlanes.planes[i].getActualArrival() << "\t\t "<< allPlanes.planes[i].getScheduledArrival() << "\t\t "<< allPlanes.planes[i].getStatus();
if(allPlanes.planes[i].getGateId() != -1){
if(allPlanes.planes[i].getStatus() == "gate assigned"){
cout << " ";
}
else if(allPlanes.planes[i].getStatus() == "notAvailable"){
cout << " ";
}
else{
cout << "\t\t\t";
}
cout << allPlanes.planes[i].getGateId() << "\t\t";
}
else{
cout << "Not Assigned ";
}
if(allPlanes.planes[i].getBeltId() != -1){
cout << allPlanes.planes[i].getBeltId();
}
else{
cout << "Not Assigned ";
}
cout << endl;
}
}
cout << "\n\n" << endl;
cout << "\t\t\t\t\t ______________________________" << endl;
cout << "\t\t\t\t\t Departures" << endl;
cout << "\t\t\t\t\t ______________________________" << endl;
cout << "\nPlane Id\tDeparting To\tActual Departure\tScheduled Departure\tStatus\t\t Gate\t Checkin Counter" << endl;
for(int i = 0; i < allPlanes.planes.size(); i++){
if(allPlanes.planes[i].getActualDeparture() > currTime->tm_hour * 100 + currTime->tm_min && allPlanes.planes[i].getActualDeparture() <= currTime->tm_hour * 100 + currTime->tm_min + 400){
cout << allPlanes.planes[i].getId() << "\t\t " << allPlanes.planes[i].getFrom() << "\t\t" << allPlanes.planes[i].getActualDeparture() << "\t\t "<< allPlanes.planes[i].getScheduledDeparture() << "\t\t "<< allPlanes.planes[i].getStatus();
if(allPlanes.planes[i].getGateId() != -1){
if(allPlanes.planes[i].getStatus() == "gate assigned"){
cout << " ";
}
else if(allPlanes.planes[i].getStatus() == "notAvailable"){
cout << " ";
}
else if(allPlanes.planes[i].getStatus() == "counter open"){
cout << " ";
}
else{
cout << "\t\t ";
}
cout << allPlanes.planes[i].getGateId() << "\t\t";
}
else{
cout << "Not Assigned ";
}
if(allPlanes.planes[i].getCounterId() != -1){
cout << " \t" << allPlanes.planes[i].getCounterId();
}
else{
cout << "Not Assigned ";
}
cout << endl;
}
}
cout << "\n\nPress Enter to continue" << endl;
getchar();
getchar();
}
void deleteScreen(string s){
system("clear");
cout << "\n\n" << endl;
int id;
linkA:
cout << "\tEnter the id for which the entry is to be deleted: ";
cin >> id;
if(s == "plane"){
auto it = allPlanes.planes.begin();
auto it2 = allPlanes.planes.begin();
for(int i = 0; i < allPlanes.planes.size(); i++){
it2++;
if(allPlanes.planes[i].getId() == id){
allPlanes.planes.erase(it + i);
cout << "\nDeleted" << endl;
break;
}
}
if(it2 == allPlanes.planes.end()){
cout << "\n\n\tId not found" << endl;
sleep(2);
goto linkA;
}
}
if(s == "gate"){
auto it = allGates.gates.begin();
auto it2 = allGates.gates.begin();
for(int i = 0; i < allGates.gates.size(); i++){
it2++;
if(allGates.gates[i].getId() == id){
allGates.gates.erase(it + i);
cout << "\nDeleted" << endl;
break;
}
}
if(it2 == allGates.gates.end()){
cout << "\n\n\tId not found" << endl;
sleep(2);
goto linkA;
}
}
if(s == "belt"){
auto it = allBelts.belts.begin();
auto it2 = allBelts.belts.begin();
for(int i = 0; i < allBelts.belts.size(); i++){
it2++;
if(allBelts.belts[i].getId() == id){
allBelts.belts.erase(it + i);
cout << "\nDeleted" << endl;
break;
}
}
if(it2 == allBelts.belts.end()){
cout << "\n\n\tId not found" << endl;
sleep(2);
goto linkA;
}
}
if(s == "checkinCounter"){
auto it = allCheckinCounters.checkinCounters.begin();
auto it2 = allCheckinCounters.checkinCounters.begin();
for(int i = 0; i < allCheckinCounters.checkinCounters.size(); i++){
it2++;
if(allCheckinCounters.checkinCounters[i].getId() == id){
allCheckinCounters.checkinCounters.erase(it + i);
cout << "\nDeleted" << endl;
break;
}
}
if(it2 == allCheckinCounters.checkinCounters.end()){
cout << "\n\n\tId not found" << endl;
sleep(2);
goto linkA;
}
}
reAssignResources();
sleep(2);
}
void updateFlightScreen(){
link1:
system("clear");
cout << "\n\n" << endl;
int id;
cout << "\t\t\tEnter an id for the plane: ";
cin >> id;
for(int i = 0; i < allPlanes.planes.size(); i++){
if(allPlanes.planes[i].getId() == id){
cout << "\n\n\tFlight details for flight: " << allPlanes.planes[i].getId() << endl;
cout << "Actual arrival: " << allPlanes.planes[i].getActualArrival() << endl;
cout << "Scheduled arrival: " << allPlanes.planes[i].getScheduledArrival() << endl;
cout << "Actual departure: " << allPlanes.planes[i].getActualDeparture() << endl;
cout << "Scheduled departure: " << allPlanes.planes[i].getScheduledDeparture() << endl;
cout << "Coming From: " << allPlanes.planes[i].getFrom() << endl;
cout << "Going To" << allPlanes.planes[i].getTo() << endl;
cout << "Gate: " << (allPlanes.planes[i].getGateId() == -1 ? "Not Assigned" : to_string(allPlanes.planes[i].getGateId()))<< endl;
cout << "Belt: " << (allPlanes.planes[i].getBeltId() == -1 ? "Not Assigned" : to_string(allPlanes.planes[i].getBeltId()))<< endl;
cout << "CheckinCounter: " << (allPlanes.planes[i].getCounterId() == -1 ? "Not Assigned" : to_string(allPlanes.planes[i].getCounterId()))<< endl << endl;
int option = -1;
cout << "\n\t\tDo yo want to update actual arrival (1-yes/ 0-no): ";
cin >> option;
if(option == 1){
int arr;
cout << "\t\tEnter value: ";
cin >> arr;
allPlanes.planes[i].setActualArrival(arr);
}
cout << "\n\t\tDo yo want to update scheduled arrival (1-yes/ 0-no): ";
cin >> option;
if(option == 1){
int arr;
linkA:
cout << "\t\tEnter value: ";
cin >> arr;
// there must be atleast 5 hrs of gap between arrival and departure
if(abs(arr - allPlanes.planes[i].getScheduledDeparture()) < 500){
cout << "There must be atleast 5 hours gap between schArr and schDep" << endl;
goto linkA;
}
allPlanes.planes[i].setScheduledArrival(arr);
// reAssignResources();
}
cout << "\n\t\tDo yo want to update actual departure (1-yes/ 0-no): ";
cin >> option;
if(option == 1){
int dep;
cout << "\t\tEnter value: ";
cin >> dep;
allPlanes.planes[i].setActualDeparture(dep);
}
cout << "\n\t\tDo yo want to update scheduled departure (1-yes/ 0-no): ";
cin >> option;
if(option == 1){
int dep;
linkB:
cout << "\t\tEnter value: ";
cin >> dep;
// there must be atleast 5 hrs of gap between arrival and departure
if(abs(dep - allPlanes.planes[i].getScheduledArrival()) < 500){
cout << "There must be atleast 5 hours gap between schArr and schDep" << endl;
goto linkB;
}
allPlanes.planes[i].setScheduledDeparture(dep);
// reAssignResources();
}
cout << "\n\t\tDo yo want to update the TO location (1-yes/ 0-no): ";
cin >> option;
if(option == 1){
string value;
cout << "\t\tEnter value: ";
cin >> value;
allPlanes.planes[i].setTo(value);
}
cout << "\n\t\tDo yo want to update the FROM location (1-yes/ 0-no): ";
cin >> option;
if(option == 1){
string value;
cout << "\t\tEnter value: ";
cin >> value;
allPlanes.planes[i].setFrom(value);
}
if(allPlanes.planes[i].getGateId() != -1){
cout << "\n\t\tDo you want to change gate (1-yes/ 0-no): ";
cin >> option;
if(option == 1){
for(int j = 0; j < allGates.gates.size(); j++){
if(allGates.gates[j].getOccupiedByPlane() == allPlanes.planes[i].getId()){
allGates.gates[j].setIsUnderMaintainance(false);
allGates.gates[j].setOccupied(false);
allGates.gates[j].setOccupiedByPlane(-1);
break;
}
}
int value;
linkC:
cout << "\t\tEnter value: ";
cin >> value;
for(int j = 0; j < allGates.gates.size(); j++){
if(allGates.gates[j].getId() == value){
if(allGates.gates[j].getOccupied() == true){
cout << "Gate is already occupied" << endl;
goto linkC;
break;
}
else{
allPlanes.planes[i].setGateId(allGates.gates[j].assignPlane(allPlanes.planes[i]));
break;
}
}
if(j == allGates.gates.size() - 1 && allGates.gates[j].getId() != value){
cout << "Gate doesn't exists" << endl;
goto linkC;
}
}
}
}
if(allPlanes.planes[i].getCounterId() != -1){
cout << "\n\t\tDo you want to change checkin counter (1-yes/ 0-no): ";
cin >> option;
if(option == 1){
for(int j = 0; j < allCheckinCounters.checkinCounters.size(); j++){
if(allCheckinCounters.checkinCounters[j].getOccupiedByPlane() == allPlanes.planes[i].getId()){
allCheckinCounters.checkinCounters[j].setOccupied(false);
allCheckinCounters.checkinCounters[j].setOccupiedByPlane(-1);
break;
}
}
int value;
linkD:
cout << "\t\tEnter value: ";
cin >> value;
for(int j = 0; j < allCheckinCounters.checkinCounters.size(); j++){
if(allCheckinCounters.checkinCounters[j].getId() == value){
if(allCheckinCounters.checkinCounters[j].getOccupied() == true){
cout << "CheckinCounter is already occupied" << endl;
goto linkD;
break;
}
else{
allPlanes.planes[i].setCounterId(allCheckinCounters.checkinCounters[j].assignPlane(allPlanes.planes[i]));
break;
}
}
if(j == allCheckinCounters.checkinCounters.size() - 1 && allCheckinCounters.checkinCounters[j].getId() != value){
cout << "CheckinCounter doesn't exists" << endl;
goto linkD;
}
}
}
}
if(allPlanes.planes[i].getBeltId() != -1){
cout << "\n\t\tDo you want to change luggage belt (1-yes/ 0-no): ";
cin >> option;
if(option == 1){
for(int j = 0; j < allBelts.belts.size(); j++){
if(allBelts.belts[j].getOccupiedByPlane() == allPlanes.planes[i].getId()){
allBelts.belts[j].setOccupied(false);
allBelts.belts[j].setOccupiedByPlane(-1);
break;
}
}
int value;
linkE:
cout << "\t\tEnter value: ";
cin >> value;
for(int j = 0; j < allBelts.belts.size(); j++){
if(allBelts.belts[j].getId() == value){
if(allBelts.belts[j].getOccupied() == true){
cout << "Belt is already occupied" << endl;
goto linkE;
break;
}
else{
allPlanes.planes[i].setBeltId(allBelts.belts[j].assignPlane(allPlanes.planes[i]));
break;
}
}
if(j == allBelts.belts.size() - 1 && allBelts.belts[j].getId() != value){
cout << "Belt doesn't exists" << endl;
goto linkE;
}
}
}
}
cout << "updated" << endl;
cout << "\n\n\tFlight details for flight: " << allPlanes.planes[i].getId() << endl;
cout << "Actual arrival: " << allPlanes.planes[i].getActualArrival() << endl;
cout << "Scheduled arrival: " << allPlanes.planes[i].getScheduledArrival() << endl;
cout << "Actual departure: " << allPlanes.planes[i].getActualDeparture() << endl;
cout << "Scheduled departure: " << allPlanes.planes[i].getScheduledDeparture() << endl;
cout << "Coming From: " << allPlanes.planes[i].getFrom() << endl;
cout << "Going To" << allPlanes.planes[i].getTo() << endl;
cout << "Gate: " << (allPlanes.planes[i].getGateId() == -1 ? "Not Assigned" : to_string(allPlanes.planes[i].getGateId()))<< endl;
cout << "Belt: " << (allPlanes.planes[i].getBeltId() == -1 ? "Not Assigned" : to_string(allPlanes.planes[i].getBeltId()))<< endl;
cout << "Checkin Counter: " << (allPlanes.planes[i].getCounterId() == -1 ? "Not Assigned" : to_string(allPlanes.planes[i].getCounterId()))<< endl << endl;
cout << "Press Enter to continue ";
getchar();
getchar();
return;
}
}
cout << "\n\n\t\t\tNo plane with this id was found" << endl;
sleep(1);
goto link1;
}
void createFlightScreen(){
system("clear");
cout << "\n\n" << endl;
int id, arrTime, depTime;
string from, to;
cout << "\t\t\tEnter an id for the plane: ";
cin >> id;
cout << "\n\t\t\tEnter arrival time: ";
cin >> arrTime;
cout << "\n\t\t\tEnter departure time: ";
cin >> depTime;
cout << "\n\t\t\tEnter Arriving from: ";
cin >> from;
cout << "\n\t\t\tEnter Departing to: ";
cin >> to;
allPlanes.createPlane(Plane(id, arrTime, depTime, arrTime, depTime, from, to));
cout << "Plane Created" << endl;
sleep(2);
allPlanes.assignGates(*currTime, allGates.gates);
allPlanes.assignCounters(*currTime, allCheckinCounters.checkinCounters);
allPlanes.assignBelts(*currTime, allBelts.belts);
}
void createAirPortFacilities(string s){
system("clear");
cout << "\n\n" << endl;
int id, arrTime, depTime;
string from, to;
cout << "\t\t\tEnter an id for the belt: ";
cin >> id;
if(s == "gate"){
allGates.createGate(Gate(id));
}
if(s == "belt"){
allBelts.createBelt(Belt(id));
}
if(s == "checkinCounter"){
allCheckinCounters.createCheckinCounter(CheckinCounter(id));
}
cout << "Created" << endl;
sleep(2);
reAssignResources();
}
void loadingScreen(){
system("clear");
short int dot = 3;
while(dot--){
cout << "\n\n\n\t\t\t\tLoading" << string(3 - dot, '.') << endl;
sleep(1);
system("clear");
}
getchar();
}
int crudShowScreen(string s){
system("clear");
cout << "\n\n" << endl;
cout << "\t\t\tWhich data you want to "<< s <<" ?" << endl;
cout << "\n\n\t 1. Flight Data\t\t2.Checkin Counter Data" << endl;
cout << "\n\n\t 3. Flight Gate Data \t\t" << endl;
cout << "\n\n\n\t 9. Back to CRUD menu \t\t 0. Exit program" << endl;
link1:
cout << "\n\n\tEnter your choice: ";
int choice = -1;
cin >> choice;
if(choice == 0){
exit(0);
}
if( choice == 1 || choice == 2 || choice == 3 || choice == 9){
return choice;
}
goto link1;
return choice;
}
void crudScreen(){
system("clear");
cout << "\n\n" << endl;
cout << "\t\t\tChoose from following operations:" << endl;
cout << "\n\n\t 1. Show Airport Data\t\t2.Update Airport Data" << endl;
cout << "\n\n\t 3. Create New Data \t\t4.Delete Airport Data" << endl;
cout << "\n\n\n\t 0. Exit program" << endl;
link1:
cout << "\n\n\tEnter your choice: ";
int choice, x = -1;
cin >> choice;
switch (choice)
{
case 1:
// Airport Data Screen
x = crudShowScreen("show");
switch (x)
{
case 1:
// show flight schedule screen
showPlaneScreen();
break;
case 2:
// show checkin counter screen
showAirPortFacilitiesScreen("checkinCounter");
break;
case 3:
// show flight gate screen
showAirPortFacilitiesScreen("gate");
break;
case 9:
crudScreen();
break;
default:
break;
}
break;
case 2:
updateFlightScreen();
break;
case 3:
// Create Data Screen
x = crudShowScreen("create");
switch (x)
{
case 1:
// create flight schedule screen
createFlightScreen();
break;
case 2:
// create checkin counter screen
createAirPortFacilities("checkinCounter");
break;
case 3:
// create flight gate screen
createAirPortFacilities("checkinCounter");
break;
case 9:
crudScreen();
break;
default:
break;
}
break;
case 4:
// Delete Airport Data
x = crudShowScreen("delete");
switch (x)
{
case 1:
// delete flight schedule screen
deleteScreen("plane");
break;
case 2:
// delete checkin counter screen
deleteScreen("checkinCounter");
break;
case 3:
// delete flight gate screen
deleteScreen("gate");
break;
case 9:
crudScreen();
break;
default:
break;
}
break;
case 0:
exit(0);
break;
default:
cout << "\n\tWrong Option";
goto link1;
}
crudScreen();
}
void modeSelectionScreen(){
system("clear");
cout << "\t\tChose your mode of operaion" << endl;
cout << "\n\n\t1. Automatic\n\t(this will choose current time and as the time of operaion)" << endl;
cout << "\n\t2. Manual\n\t(this will choose your desired time and as the time of operaion)" << endl;
cout << "\n\n\tEnter your choice: ";
int choice;
cin >> choice;
if(choice == 2){
system("clear");
cout << "Enter the time of the day to operate in 24 hr format (eg: 1454 for 14:54)" << endl;
cout << "\tTime: ";
int tempTime;
cin >> tempTime;
currTime->tm_hour = tempTime / 100;
currTime->tm_min = tempTime % 100;
}
cout << "\nTime: " << currTime->tm_hour << ":" << currTime->tm_min << endl;
sleep(2);
}
void initiateApp(){
system("clear");
cout << "\n\n\t\t\tWelcome to the\n\t\tAutomatic Airport Management System" << endl;
cout << "\n\n\n Project By:" << endl;
cout << " Taneshqa Jaiprakash Singh\t2019BCS-083" << endl;
cout << " Nikhil Kumar Gupta\t 2019BCS-036" << endl;
cout<< "\n\n\nPress ENTER to continue" << endl;
getchar();
modeSelectionScreen();
loadingScreen();
allPlanes.assignGates(*currTime, allGates.gates);
allPlanes.assignCounters(*currTime, allCheckinCounters.checkinCounters);
allPlanes.assignBelts(*currTime, allBelts.belts);
crudScreen();
}
int main() {
initiateApp();
}