-
Notifications
You must be signed in to change notification settings - Fork 0
/
process.java
60 lines (46 loc) · 1.38 KB
/
process.java
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
class Process {
public String processID;
public int arrivalTime;
public int burstTime;
public int priority;
public int previouslyExecutedTime; //Useful in preemption
public Process(String processID, int arrivalTime, int burstTime, int priority) {
this.processID = processID;
this.arrivalTime = arrivalTime;
this.burstTime = burstTime;
this.priority = priority;
this.previouslyExecutedTime = 0;
}
public Process() {
}
public String getProcessID() {
return processID;
}
public void setProcessID(String processID) {
this.processID = processID;
}
public int getArrivalTime() {
return arrivalTime;
}
public void setArrivalTime(int arrivalTime) {
this.arrivalTime = arrivalTime;
}
public int getBurstTime() {
return burstTime;
}
public void setBurstTime(int burstTime) {
this.burstTime = burstTime;
}
public int getPriority() {
return priority;
}
public void setPriority(int priority) {
this.priority = priority;
}
public int getPreviouslyExecutedTime() {
return previouslyExecutedTime;
}
public void setPreviouslyExecutedTime(int previouslyExecutedTime) {
this.previouslyExecutedTime = previouslyExecutedTime;
}
}