-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathShift.h
42 lines (33 loc) · 971 Bytes
/
Shift.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
#pragma once
#include <iostream>
#include <vector>
using namespace std;
class Shift {
public:
Shift();
Shift(unsigned int busLineId, unsigned int StartTime, unsigned int endTime, unsigned int busOrderNumber);
// get methdos
unsigned int getBusLineId() const;
unsigned int getDriverId() const;
unsigned int getBusOrderNumber() const; // order of the bus within the bus line
unsigned int getStartTime() const;
unsigned int getEndTime() const;
bool getInUse() const;
unsigned int getDuration() const;
// set methods
void setBusLineId(unsigned int);
void setDriverId(unsigned int);
void setBusOrderNumber(unsigned int);
void setStartTime(unsigned int);
void setEndTime(unsigned int);
void setInUse(bool state);
// other methods
private:
unsigned int busLineId;
unsigned int driverId;
unsigned int busOrderNumber;
unsigned int startTime;
unsigned int endTime;
unsigned int Duration;
bool InUse;
};