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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
package Alibaba;
import Alibaba.*;
/**
* flight class is class that simulate the flight information
* @author mohammadreza
* @version 1.0
*/
public class Flight {
private String day;
private int hour;
private String I;// starting point
private String F;// finishing point
private String company;
private Plane plane;
private int number;
public Flight(String day, int hour, String I, String F, String company, Plane plane, int number) {
super();
this.day = day;
this.hour = hour;
this.I = I;
this.F = F;
this.company = company;
this.plane = plane;
this.number = number;
}
/**
* This is a getter method!
* @author mohammadreza
* @return the day
*/
public String getDay() {
return day;
}
/**
* this is a setter method
* @author mohammadreza
* @param day the day to set
*/
public void setDay(String day) {
this.day = day;
}
/**
* This is a getter method!
* @author mohammadreza
* @return the hour
*/
public int getHour() {
return hour;
}
/**
* this is a setter method
* @author mohammadreza
* @param hour the hour to set
*/
public void setHour(int hour) {
this.hour = hour;
}
/**
* This is a getter method!
* @author mohammadreza
* @return the i
*/
public String getI() {
return I;
}
/**
* this is a setter method
* @author mohammadreza
* @param i the i to set
*/
public void setI(String i) {
I = i;
}
/**
* This is a getter method!
* @author mohammadreza
* @return the f
*/
public String getF() {
return F;
}
/**
* this is a setter method
* @author mohammadreza
* @param f the f to set
*/
public void setF(String f) {
F = f;
}
/**
* This is a getter method!
* @author mohammadreza
* @return the company
*/
public String getCompany() {
return company;
}
/**
* this is a setter method
* @author mohammadreza
* @param company the company to set
*/
public void setCompany(String company) {
this.company = company;
}
/**
* This is a getter method!
* @author mohammadreza
* @return the plane
*/
public Plane getPlane() {
return plane;
}
/**
* this is a setter method
* @author mohammadreza
* @param plane the plane to set
*/
public void setPlane(Plane plane) {
this.plane = plane;
}
/**
* This is a getter method!
* @author mohammadreza
* @return the number
*/
public int getNumber() {
return number;
}
/**
* this is a setter method
* @author mohammadreza
* @param number the number to set
*/
public void setNumber(int number) {
this.number = number;
}
}