-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSeat.java
48 lines (38 loc) · 994 Bytes
/
Seat.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
import java.util.ArrayList;
public class Seat {
private int seatId;
private String row;
private int col;
private int roomId;
private int reservationId;
private boolean seatTaken;
private boolean seatInSequence;
public Seat(int seatId, String row, int col, int roomId, int reservationId) {
this.seatId = seatId;
this.row = row;
this.col = col;
this.roomId = roomId;
this.reservationId = reservationId;
}
public int getSeatId() {
return seatId;
}
public String getRow(){
return row;
}
public int getCol() {
return col;
}
public void setSeatTaken(boolean t) {
seatTaken = t;
}
public boolean getSeatTaken() {
return seatTaken;
}
public void setSeatInSequence(boolean s) {
seatInSequence = s;
}
public boolean getSeatInSequence() {
return seatInSequence;
}
}