/Users/johnr/Dropbox/johnrayworth.info/largeFilesOutsideJSR/__IB-Other/Other/IA-Solutions-2019/TigerBee/Product/Computer Science Ia/src/computer/science/ia/Flight.java
 1  /*
 2  * To change this license header, choose License Headers in Project Properties.
 3  * To change this template file, choose Tools | Templates
 4  * and open the template in the editor.
 5  */
 6 package computer.science.ia;
 7 
 8 /**
 9  *
10  * @author 19515
11  */
12 public class Flight {
13     private String cityCode = "not set yet";
14     private String cityDestination = "not set yet";
15     private int numberOfFlights = -999;
16     private int totalPassengers = -999;
17     private long totalRevenue = -99999999;
18     private int distance = -999;
19     
20     public Flight(){
21         
22     }
23     
24     public Flight(String cityCode, String cityDestination, int numberOfFlights, int totalPassengers,
25             long totalRevenue, int distance){
26         this.cityCode = cityCode;
27         this.cityDestination = cityDestination;
28         this.numberOfFlights = numberOfFlights;
29         this.totalPassengers = totalPassengers;
30         this.totalRevenue = totalRevenue;
31         this.distance = distance;
32         
33     }
34     
35     public void setCityCode(String cityCode){
36         this.cityCode = cityCode;
37     }
38     
39     public void cityDestination(String cityDestination){
40         this.cityDestination = cityDestination;
41     }
42     
43     public void setNumberOfFlights(int numberOfFlights){
44         this.numberOfFlights = numberOfFlights;
45     }
46     
47     public void setTotalPassengers(int totalPassengers){
48         this.totalPassengers = totalPassengers;
49     }
50     
51     public void setTotalRevenue(long totalRevenue){
52         this.totalRevenue = totalRevenue;
53     }
54     
55     public void setDistance(int distance){
56         this.distance = distance;
57     }
58     
59     public String getCityCode(){
60         return cityCode;
61     }
62     
63     public String getCityDestination(){
64         return cityDestination;
65     }
66     
67     public int getNumberOfFlights(){
68         return numberOfFlights;
69     }
70     
71     public int getTotalPassengers(){
72         return totalPassengers;
73     }
74     
75     public long getTotalRevenue(){
76         return totalRevenue;
77     }
78     
79     public int getTotalDistance(){
80         return distance;
81     }
82     
83     
84     
85     
86  
87 }
88