Merge branch 'WIP_Flights' into 'master'

Flights



See merge request !3
This commit is contained in:
Liam Beckett
2016-09-14 10:37:58 +12:00
5 changed files with 125 additions and 66 deletions
@@ -20,6 +20,13 @@ public class FlightPath {
this.arrivalAirport = arrivalAirport;
this.flightPoints = new ArrayList<FlightPoint>();
}
public FlightPath(String departureAirport, String arrivalAirport){
this.ID = -1;
this.departureAirport = departureAirport;
this.arrivalAirport = arrivalAirport;
this.flightPoints = new ArrayList<FlightPoint>();
}
public ArrayList<FlightPoint> getFlightPoints() {
return flightPoints;
@@ -15,14 +15,14 @@ public class FlightPoint {
private double latitude;
private double longitude;
public FlightPoint(String type, String via, double altitude, double latitude, double longitude){
public FlightPoint(String type, String name, double altitude, double latitude, double longitude){
//extra calculations will have to be used to find heading, legdistance and total distance. If necessary
//Type 1 file the file the lecturers gave us
this.name = "";
this.name = name;
this.ID = -1;
this.indexID = -1;
this.type = type;
this.via = via;
this.via = "";
this.heading = 0;
this.altitude = altitude;
this.legDistance = 0.0;