-
Notifications
You must be signed in to change notification settings - Fork 19.9k
/
Copy pathProcessDetails.java
67 lines (53 loc) · 1.62 KB
/
ProcessDetails.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
61
62
63
64
65
66
67
package com.thealgorithms.devutils.entities;
public class ProcessDetails {
private String processId;
private int arrivalTime;
private int burstTime;
private int waitingTime;
private int turnAroundTime;
private int priority;
public ProcessDetails(final String processId, final int arrivalTime, final int burstTime, int priority) {
this.processId = processId;
this.arrivalTime = arrivalTime;
this.burstTime = burstTime;
this.priority = priority;
}
public ProcessDetails(final String processId, final int arrivalTime, final int burstTime) {
this.processId = processId;
this.arrivalTime = arrivalTime;
this.burstTime = burstTime;
}
public String getProcessId() {
return processId;
}
public int getArrivalTime() {
return arrivalTime;
}
public int getBurstTime() {
return burstTime;
}
public int getWaitingTime() {
return waitingTime;
}
public int getTurnAroundTimeTime() {
return turnAroundTime;
}
public int getPriority() {
return priority;
}
public void setProcessId(final String processId) {
this.processId = processId;
}
public void setArrivalTime(final int arrivalTime) {
this.arrivalTime = arrivalTime;
}
public void setBurstTime(final int burstTime) {
this.burstTime = burstTime;
}
public void setWaitingTime(final int waitingTime) {
this.waitingTime = waitingTime;
}
public void setTurnAroundTimeTime(final int turnAroundTime) {
this.turnAroundTime = turnAroundTime;
}
}