-
Notifications
You must be signed in to change notification settings - Fork 0
/
Process.h
42 lines (41 loc) · 1019 Bytes
/
Process.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
#ifndef PROCESS_H
#define PROCESS_H
#include <iostream>
using namespace std;
class Process {
private:
string processName;
int arrivalTime;
int burstTime;
public:
int waitingTime;
int turnaroundTime;
Process(string processName, int arrivalTime, int burstTime) {
this->processName = processName;
this->arrivalTime = arrivalTime;
this->burstTime = burstTime;
}
Process(string processName, int burstTime) {
this->processName = processName;
this->burstTime = burstTime;
}
void setProcessName(string processName) {
this->processName = processName;
}
void setArrivalTime(int arrivalTime) {
this->arrivalTime = arrivalTime;
}
void setBurstTime(int burstTime) {
this->burstTime = burstTime;
}
string getProcessName() {
return this->processName;
}
int getArrivalTime() {
return this->arrivalTime;
}
int getBurstTime() {
return this->burstTime;
}
};
#endif