Commit 66067b28 authored by 9731050's avatar 9731050

third

parent d3e53022
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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment