-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProcessAGAT.java
More file actions
68 lines (60 loc) · 1.86 KB
/
Copy pathProcessAGAT.java
File metadata and controls
68 lines (60 loc) · 1.86 KB
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
public class ProcessAGAT{
private String ProcessName;
private int ArrivalTime;
private int BurstTime;
private int remainingBurstTime;
private int priority;
private int Quantum;
private int AGAT_factor;
public ProcessAGAT() {
ProcessName="";
ArrivalTime=0;
BurstTime=0;
remainingBurstTime=0;
priority=0;
Quantum=0;
AGAT_factor=0;
}
public ProcessAGAT(String ProcessName , int BurstTime, int ArrivalTime, int priority,int Quantum) {
this.ProcessName = ProcessName;
this.ArrivalTime = ArrivalTime;
this.BurstTime = BurstTime;
this.priority = priority;
this.remainingBurstTime = this.BurstTime;
this.Quantum=Quantum;
}
public void set_ProcessName(String Processname) {
this.ProcessName = Processname;
}
public void setArrivalTime(int arrivalTime) {
this.ArrivalTime = arrivalTime;
}
public void setBurstTime(int BurstTime) {
this.BurstTime = BurstTime;
}
public void setRemainingBurstTime(int remainingTime) {
this.remainingBurstTime = remainingTime;
}
public void setPriority(int priority) {
this.priority = priority;
}
public void setAGAT_factor(int AGAT_factor){this.AGAT_factor= AGAT_factor;}
public void setQuantum(int Quantum){this.Quantum=Quantum;}
public String getName() {
return ProcessName;
}
public int getArrivalTime() {
return ArrivalTime;
}
public int getBurstTime() {
return BurstTime;
}
public int getRemainingTime() {
return remainingBurstTime;
}
public int getPriority() {return priority;}
public long getAGAT_factor(){
return AGAT_factor;
}
public int getQuantum(){return Quantum;}
}