forked from AidaLf/SBU_AP_Project_Java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ticket.java
97 lines (73 loc) · 1.74 KB
/
Ticket.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
class Ticket {
int ID;
Double price;
String startDate;
String endDate;
String departureTime;
String landingTime;
String origin;
String destination;
int capacity;
int booked;
Vehicle vehicle;
public void setDepartureTime(String s) {
this.departureTime = s;
}
public String getDepartureTime() {
return departureTime;
}
public String getLandingTime() {
return landingTime;
}
public void setLandingTime(String s) {
this.landingTime = s;
}
public void setPrice(Double price) {
this.price = price;
}
public Double getPrice() {
return this.price;
}
public void setStartDate(String startDate) {
this.startDate = startDate;
}
public String getStartDate() {
return this.startDate;
}
public void setEndDate(String endDate) {
this.endDate = endDate;
}
public String getEndDate() {
return this.endDate;
}
public void setOrigin(String origin) {
this.origin = origin;
}
public String getOrigin() {
return this.origin;
}
public void setDestination(String destination) {
this.destination = destination;
}
public String getDestination() {
return this.destination;
}
public void setCapacity(int capacity) {
this.capacity = capacity;
}
public int getCapacity() {
return this.capacity;
}
public void setBooked(int booked) {
this.booked = booked;
}
public int getBooked() {
return this.booked;
}
public void setVehicle(Vehicle vehicle) {
this.vehicle = vehicle;
}
public Vehicle getVehicle() {
return this.vehicle;
}
}