- double getBearing(waypoint* previous, waypoint* next);
- double getBearing(double lat, double lon, waypoint* next);
- time_t getStartTime() { return start_time; };
-
- void create(FGAirport *dep, FGAirport *arr, int leg, double alt, double speed, double lat, double lon,
- bool firstLeg, double radius, string fltType, string aircraftType, string airline);
-
- void setLeg(int val) { leg = val;};
- void setTime(time_t st) { start_time = st; };
- int getGate() { return gateId; };
- double getLeadInAngle() { return leadInAngle; };
- string getRunway() { return rwy._rwy_no; };
- string getRunwayId() { return rwy._id; };
+ double getBearing(waypoint* previous, waypoint* next) const;
+ double getBearing(double lat, double lon, waypoint* next) const;
+ time_t getStartTime() const { return start_time; }
+
+ void create(FGAIAircraft *, FGAirport *dep, FGAirport *arr, int leg, double alt, double speed, double lat, double lon,
+ bool firstLeg, double radius, const string& fltType, const string& aircraftType, const string& airline);
+
+ void setLeg(int val) { leg = val;}
+ void setTime(time_t st) { start_time = st; }
+ int getGate() const { return gateId; }
+ double getLeadInAngle() const { return leadInAngle; }
+ const string& getRunway() const;
+
+ void setRepeat(bool r) { repeat = r; }
+ bool getRepeat(void) const { return repeat; }
+ void restart(void);
+ int getNrOfWayPoints() { return waypoints.size(); }
+ int getRouteIndex(int i); // returns the AI related index of this current routes.
+ FGTaxiRoute *getTaxiRoute() { return taxiRoute; }
+ void deleteTaxiRoute();
+ string getRunway() { return activeRunway; }
+ bool isActive(time_t time) {return time >= this->getStartTime();}
+
+ void setRunway(string rwy) { activeRunway = rwy; };
+ string getRunwayClassFromTrafficType(string fltType);
+
+ void addWaypoint(waypoint* wpt) { waypoints.push_back(wpt); };
+
+ void setName(string n) { name = n; };
+ string getName() { return name; };
+
+ void setSID(FGAIFlightPlan* fp) { sid = fp;};
+ FGAIFlightPlan* getSID() { return sid; };
+