|
FlightGear next
|
#include <trafficcontrol.hxx>
Public Member Functions | |
| ActiveRunwayQueue (const std::string &apt, const std::string &r, int cc) | |
| const std::string & | getRunwayName () const |
| int | getCleared () const |
| Get id of cleared AI Aircraft. | |
| double | getApproachDistance () const |
| void | addToQueue (SGSharedPtr< FGTrafficRecord > ac) |
| void | setCleared (int number) |
| void | requestTimeSlot (SGSharedPtr< FGTrafficRecord > eta) |
| Fetch next slot for the active runway. | |
| void | updateFirst (SGSharedPtr< FGTrafficRecord > eta, time_t newETA) |
| Update the first and move all records backwards. | |
| int | getrunwayQueueSize () |
| const SGSharedPtr< FGTrafficRecord > | getFirstAircraftInDepartureQueue () const |
| const SGSharedPtr< FGTrafficRecord > | getFirstOfStatus (int stat) const |
| Fetch the first aircraft in the departure queue with a certain status. | |
| const SGSharedPtr< FGTrafficRecord > | get (int id) const |
| Fetch the first aircraft in the departure queue with a certain status. | |
| void | removeFromQueue (int id) |
| void | updateDepartureQueue () |
| void | printRunwayQueue () const |
| Output the contents of the departure queue vector nicely formatted. | |
Public Attributes | |
| const time_t | SEPARATION = 120 |
| Separation between aircraft in seconds. | |
Definition at line 425 of file trafficcontrol.hxx.
| ActiveRunwayQueue::ActiveRunwayQueue | ( | const std::string & | apt, |
| const std::string & | r, | ||
| int | cc ) |
Definition at line 63 of file trafficcontrol.cxx.
| void ActiveRunwayQueue::addToQueue | ( | SGSharedPtr< FGTrafficRecord > | ac | ) |
Definition at line 282 of file trafficcontrol.cxx.
| const SGSharedPtr< FGTrafficRecord > ActiveRunwayQueue::get | ( | int | id | ) | const |
Fetch the first aircraft in the departure queue with a certain status.
Definition at line 245 of file trafficcontrol.cxx.
|
inline |
Definition at line 452 of file trafficcontrol.hxx.
|
inline |
Get id of cleared AI Aircraft.
Definition at line 447 of file trafficcontrol.hxx.
| const SGSharedPtr< FGTrafficRecord > ActiveRunwayQueue::getFirstAircraftInDepartureQueue | ( | ) | const |
Definition at line 272 of file trafficcontrol.cxx.
| const SGSharedPtr< FGTrafficRecord > ActiveRunwayQueue::getFirstOfStatus | ( | int | stat | ) | const |
Fetch the first aircraft in the departure queue with a certain status.
Definition at line 259 of file trafficcontrol.cxx.
|
inline |
Definition at line 442 of file trafficcontrol.hxx.
|
inline |
Definition at line 468 of file trafficcontrol.hxx.
| void ActiveRunwayQueue::printRunwayQueue | ( | ) | const |
Output the contents of the departure queue vector nicely formatted.
Definition at line 233 of file trafficcontrol.cxx.
| void ActiveRunwayQueue::removeFromQueue | ( | int | id | ) |
Definition at line 71 of file trafficcontrol.cxx.
| void ActiveRunwayQueue::requestTimeSlot | ( | SGSharedPtr< FGTrafficRecord > | trafficRecord | ) |
Fetch next slot for the active runway.
| trafficRecord | traffic record containing the arrival time |
Definition at line 98 of file trafficcontrol.cxx.
|
inline |
Definition at line 462 of file trafficcontrol.hxx.
| void ActiveRunwayQueue::updateDepartureQueue | ( | ) |
Definition at line 85 of file trafficcontrol.cxx.
| void ActiveRunwayQueue::updateFirst | ( | SGSharedPtr< FGTrafficRecord > | trafficRecord, |
| time_t | newETA ) |
Update the first and move all records backwards.
| trafficRecord | traffic record containing the arrival time |
Definition at line 206 of file trafficcontrol.cxx.
| const time_t ActiveRunwayQueue::SEPARATION = 120 |
Separation between aircraft in seconds.
Definition at line 429 of file trafficcontrol.hxx.