Not all files were commited from the earlier commit, due to idle functionality misunderstandings

main
Liam Beckett 9 years ago
parent af8617b316
commit 35db19db2d

@ -21,6 +21,13 @@ public class FlightPath {
this.flightPoints = new ArrayList<FlightPoint>(); 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() { public ArrayList<FlightPoint> getFlightPoints() {
return flightPoints; return flightPoints;
} }

@ -15,14 +15,14 @@ public class FlightPoint {
private double latitude; private double latitude;
private double longitude; 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 //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 //Type 1 file the file the lecturers gave us
this.name = ""; this.name = name;
this.ID = -1; this.ID = -1;
this.indexID = -1; this.indexID = -1;
this.type = type; this.type = type;
this.via = via; this.via = "";
this.heading = 0; this.heading = 0;
this.altitude = altitude; this.altitude = altitude;
this.legDistance = 0.0; this.legDistance = 0.0;

Loading…
Cancel
Save