-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJob.h
48 lines (40 loc) · 801 Bytes
/
Job.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
43
44
45
46
47
48
#include <string>
using namespace std;
#ifndef JOB_H
#define JOB_H
class Job
{
private:
int _arrivalTime;
int _completionTime;
string *_currentState;
int _dataSize;
int _pId;
int _waiting;
int _ready;
int _running;
int _serviceTime;
public:
Job(
int pId,
int arrivalTime,
int serviceTime,
int dataSize
);
int getArrivalTime();
int getCompletionTime();
const char *getCurrentState();
int getDataSize();
int getProcessId();
char getMappedProcessId();
int getWaitingTime();
int getReadyTime();
int getRunningTime();
int getServiceTime();
void incrementReadyTime();
void incrementRunningTime();
void incrementWaitingTime();
void setCompletionTime(int cpu_time);
void setCurrentState(const char *state);
};
#endif /* JOB_H */