-
Notifications
You must be signed in to change notification settings - Fork 0
/
Process.java
72 lines (53 loc) · 1.66 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
61
62
63
64
65
66
67
68
69
70
71
72
package roundrobinsimulation;
public class Process /*implements Comparable*/{
private int arrivalTime;
private int burstTime;
private int burstTimeTemp;
private String name;
private int completedTime;
private int waitingTime;
private int turnAroundTime;
public Process(String name,int arrivalTime, int burstTime) {
this.arrivalTime = arrivalTime;
this.burstTime = burstTime;
this.burstTimeTemp = burstTime;
this.name = name;
}
public int getArrivalTime() {
return arrivalTime;
}
public int getBurstTime() {
return burstTime;
}
public String getName() {
return name;
}
public int getCompletedTime() {
return completedTime;
}
public void setCompletedTime(int completedTime) {
this.completedTime = completedTime;
}
public int getWaitingTime() {
return waitingTime;
}
public void setWaitingTime(int waitingTime) {
this.waitingTime = waitingTime;
}
public int getTurnAroundTime() {
return turnAroundTime;
}
public void setTurnAroundTime(int turnAroundTime) {
this.turnAroundTime = turnAroundTime;
}
public int getBurstTimeTemp() {
return burstTimeTemp;
}
public void setBurstTimeTemp(int burstTimeTemp) {
this.burstTimeTemp = burstTimeTemp;
}
// @Override
// public int compareTo(Object o) {
// throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
// }
}