-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProcess.h
More file actions
31 lines (25 loc) · 820 Bytes
/
Copy pathProcess.h
File metadata and controls
31 lines (25 loc) · 820 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
/******************************************
* Class for modelling a process
*******************************************/
#include<stdexcept>
class Process {
private:
int procNr; // Process number
int readyTime; // Ready time
int execTime; // Execution Time
int deadline; // Deadline
int laxity; // Laxity
public:
Process(int procNr, int readyTime, int execTime, int deadline); // Constructor with deadline
Process(int procNr, int readyTime, int execTime); // Constructor without deadline
Process() {} // General constructor for copy operations
// Lowering the execution time
void operator -= (int n);
// Getter
int getExecTime();
int getReadyTime();
int getDeadline();
int getProcessNumber();
int getLaxity();
};
#include "Process.cpp"