Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
Lab7
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
9731050
Lab7
Commits
66067b28
Commit
66067b28
authored
May 01, 2019
by
9731050
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
third
parent
d3e53022
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
1 deletion
+31
-1
Flight.java
src/com/TicketManagement/Flight.java
+31
-1
No files found.
src/com/TicketManagement/Flight.java
View file @
66067b28
package
com
.
TicketManagement
;
package
com
.
TicketManagement
;
/**
* flight class represents fields related to flights
*
* @author Mohammad Kazemi
*/
public
class
Flight
{
public
class
Flight
{
private
String
date
;
private
String
date
;
private
String
destination
;
private
String
destination
;
...
@@ -7,6 +11,7 @@ public class Flight {
...
@@ -7,6 +11,7 @@ public class Flight {
private
int
ID
;
private
int
ID
;
private
String
source
;
private
String
source
;
private
Airplane
model
;
private
Airplane
model
;
public
Flight
(
String
date
,
int
ID
,
String
destination
,
String
source
,
String
company
,
Airplane
model
){
public
Flight
(
String
date
,
int
ID
,
String
destination
,
String
source
,
String
company
,
Airplane
model
){
this
.
date
=
date
;
this
.
date
=
date
;
this
.
source
=
source
;
this
.
source
=
source
;
...
@@ -15,24 +20,49 @@ public class Flight {
...
@@ -15,24 +20,49 @@ public class Flight {
this
.
ID
=
ID
;
this
.
ID
=
ID
;
this
.
model
=
model
;
this
.
model
=
model
;
}
}
/**
*
* @return flight id
*/
public
int
getID
()
{
public
int
getID
()
{
return
ID
;
return
ID
;
}
}
/**
*
* @return initial point of travel
*/
public
String
getSource
()
{
public
String
getSource
()
{
return
source
;
return
source
;
}
}
/**
*
* @return airline
*/
public
String
getCompany
()
{
public
String
getCompany
()
{
return
company
;
return
company
;
}
}
/**
*
* @return model of airplane
*/
public
Airplane
getModel
(){
return
model
;}
public
Airplane
getModel
(){
return
model
;}
/**
*
* @return flight date
*/
public
String
getDate
()
{
public
String
getDate
()
{
return
date
;
return
date
;
}
}
/**
*
* @return travel destination
*/
public
String
getDestination
()
{
public
String
getDestination
()
{
return
destination
;
return
destination
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment