-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEvent.java
More file actions
35 lines (30 loc) · 684 Bytes
/
Event.java
File metadata and controls
35 lines (30 loc) · 684 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
public class Event{
double time;
int type;
Person p;
Elevator e;
int numberOfPeople;
int numberOfStops;
Event(double time, int type, Person p){
this.time = time;
this.type = type;
this.p = p;
}
Event(double time, int type, Elevator e, int numberOfPeople){
this.time = time;
this.type = type;
this.e = e;
this.numberOfPeople = numberOfPeople;
}
Event(double time, int type, Elevator e){
this.time = time;
this.type = type;
this.e = e;
}
public Person getPerson(){
return p;
}
public Elevator getElevator(){
return e;
}
}