1 // this class implements a flight plan
3 public class FlightPlan {
4 public double cruiseAlt, cruiseSpeed; // cruising altitude and speed
6 public Route r; // the route (given by fixes)
13 public FlightPlan (FlightPlan fp) {
14 cruiseAlt=fp.cruiseAlt;
15 cruiseSpeed=fp.cruiseSpeed;
18 public void setCruiseParam(double crAlt, double crSp) {
19 cruiseAlt=crAlt;cruiseSpeed=crSp;
22 public void setRoute(Route route) {
26 public void setCurrentFix(String nameFix) {
27 int i=r.getIndexOf(nameFix);
28 System.out.println("name of the fix: "+nameFix+" index:"+i);