-
Notifications
You must be signed in to change notification settings - Fork 0
/
job.java
43 lines (40 loc) · 956 Bytes
/
job.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
public class job {
private int arrivalTime;
private int id;
private int duration;
private String priority;
public job(int id, int duration, int arrivalTime) {
this.id = id;
this.duration = duration;
this.arrivalTime = arrivalTime;
}
//getters and setters
public int getArrivalTime() {
return arrivalTime;
}
public void setArrivalTime(int arrivalTime) {
this.arrivalTime = arrivalTime;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getDuration() {
return duration;
}
public void setDuration(int duration) {
this.duration = duration;
}
public String getPriority() {
return priority;
}
public void setPriority(String priority) {
this.priority = priority;
}
@Override
public String toString() {
return ""+id;
}
}