FlightGear next
|
#include <dynamics.hxx>
Inherits SGWeakReferenced.
Public Member Functions | |
FGAirportDynamics (FGAirport *ap) | |
virtual | ~FGAirportDynamics () |
void | init () |
Initialization required after XMLRead. | |
double | getElevation () const |
const std::string | getId () const |
FGAirport * | parent () const |
void | getActiveRunway (const std::string &trafficType, int action, std::string &runway, double heading) |
bool | hasParking (FGParking *parking) const |
bool | hasParkings () const |
ParkingAssignment | getAvailableParking (double radius, const std::string &fltype, const std::string &acType, const std::string &airline) |
retrieve an available parking by GateID, or -1 if no suitable parking location could be found. | |
void | setParkingAvailable (FGParking *park, bool available) |
bool | isParkingAvailable (FGParking *parking) const |
void | releaseParking (FGParking *id) |
FGParkingList | getParkings (bool onlyAvailable, const std::string &type) const |
ParkingAssignment | getParkingByName (const std::string &name) const |
Find a parking gate index by name. | |
ParkingAssignment | getAvailableParkingByName (const std::string &name) |
find a parking by name, if available. | |
FGParkingRef | getOccupiedParkingByName (const std::string &name) const |
FGStartupController * | getStartupController () |
FGGroundController * | getGroundController () |
FGTowerController * | getTowerController () |
FGApproachController * | getApproachController () |
int | getApproachFrequency (unsigned nr) |
int | getGroundFrequency (unsigned leg) |
int | getTowerFrequency (unsigned nr) |
const std::string | getAtisSequence () |
get current ATIS sequence letter | |
int | updateAtisSequence (int interval, bool forceUpdate) |
get the current ATIS sequence number, updating it if necessary | |
void | setRwyUse (const FGRunwayPreference &ref) |
ActiveRunwayQueue * | getRunwayQueue (const std::string &name) |
Definition at line 60 of file dynamics.hxx.
|
explicit |
Definition at line 197 of file dynamics.cxx.
|
virtual |
Definition at line 209 of file dynamics.cxx.
void FGAirportDynamics::getActiveRunway | ( | const std::string & | trafficType, |
int | action, | ||
std::string & | runway, | ||
double | heading ) |
Definition at line 830 of file dynamics.cxx.
|
inline |
Definition at line 173 of file dynamics.hxx.
int FGAirportDynamics::getApproachFrequency | ( | unsigned | nr | ) |
Definition at line 890 of file dynamics.cxx.
const std::string FGAirportDynamics::getAtisSequence | ( | ) |
get current ATIS sequence letter
Definition at line 980 of file dynamics.cxx.
ParkingAssignment FGAirportDynamics::getAvailableParking | ( | double | radius, |
const std::string & | fltype, | ||
const std::string & | acType, | ||
const std::string & | airline ) |
retrieve an available parking by GateID, or -1 if no suitable parking location could be found.
Definition at line 291 of file dynamics.cxx.
ParkingAssignment FGAirportDynamics::getAvailableParkingByName | ( | const std::string & | name | ) |
find a parking by name, if available.
If the name is non-unique, consider all copies for availability (i.e try them all)
Definition at line 328 of file dynamics.cxx.
double FGAirportDynamics::getElevation | ( | ) | const |
Definition at line 873 of file dynamics.cxx.
|
inline |
Definition at line 165 of file dynamics.hxx.
int FGAirportDynamics::getGroundFrequency | ( | unsigned | leg | ) |
Definition at line 920 of file dynamics.cxx.
const std::string FGAirportDynamics::getId | ( | ) | const |
Definition at line 878 of file dynamics.cxx.
FGParkingRef FGAirportDynamics::getOccupiedParkingByName | ( | const std::string & | name | ) | const |
Definition at line 344 of file dynamics.cxx.
ParkingAssignment FGAirportDynamics::getParkingByName | ( | const std::string & | name | ) | const |
Find a parking gate index by name.
Note names are often not unique in our data, so will return the first match. If the parking is found, it will be marked as in-use (unavailable)
Definition at line 315 of file dynamics.cxx.
FGParkingList FGAirportDynamics::getParkings | ( | bool | onlyAvailable, |
const std::string & | type ) const |
Definition at line 405 of file dynamics.cxx.
ActiveRunwayQueue * FGAirportDynamics::getRunwayQueue | ( | const std::string & | name | ) |
Definition at line 842 of file dynamics.cxx.
|
inline |
Definition at line 161 of file dynamics.hxx.
|
inline |
Definition at line 169 of file dynamics.hxx.
int FGAirportDynamics::getTowerFrequency | ( | unsigned | nr | ) |
Definition at line 950 of file dynamics.cxx.
bool FGAirportDynamics::hasParking | ( | FGParking * | parking | ) | const |
Definition at line 279 of file dynamics.cxx.
bool FGAirportDynamics::hasParkings | ( | ) | const |
Definition at line 286 of file dynamics.cxx.
void FGAirportDynamics::init | ( | ) |
Initialization required after XMLRead.
Definition at line 217 of file dynamics.cxx.
bool FGAirportDynamics::isParkingAvailable | ( | FGParking * | parking | ) | const |
Definition at line 364 of file dynamics.cxx.
|
inline |
Definition at line 116 of file dynamics.hxx.
void FGAirportDynamics::releaseParking | ( | FGParking * | id | ) |
Definition at line 369 of file dynamics.cxx.
void FGAirportDynamics::setParkingAvailable | ( | FGParking * | park, |
bool | available ) |
Definition at line 355 of file dynamics.cxx.
void FGAirportDynamics::setRwyUse | ( | const FGRunwayPreference & | ref | ) |
Definition at line 415 of file dynamics.cxx.
int FGAirportDynamics::updateAtisSequence | ( | int | interval, |
bool | forceUpdate ) |
get the current ATIS sequence number, updating it if necessary
Definition at line 993 of file dynamics.cxx.