-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEvent.java
More file actions
48 lines (37 loc) · 946 Bytes
/
Event.java
File metadata and controls
48 lines (37 loc) · 946 Bytes
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
public class Event {
private double patience;
private double arrivalTime;
private double serviceTime;
private int index;
public Event() {};
public Event(double patience, double arrivalTime, double serviceTime, int index){
this.patience = patience;
this.arrivalTime = arrivalTime;
this.serviceTime = serviceTime;
this.index = index;
};
public void setPatience(double patience){
this.patience = patience;
}
public void setArrivalTime(double arrivalTime){
this.arrivalTime = arrivalTime;
}
public void setServiceTime(double serviceTime){
this.serviceTime = serviceTime;
}
public void setIndex(int index){
this.index = index;
}
public double getPatience(){
return this.patience;
}
public double getArrivalTime(){
return this.arrivalTime;
}
public double getServiceTime(){
return this.serviceTime;
}
public int getIndex(){
return this.index;
}
}