FlightGear next
FGATCManager Class Reference

#include <atc_mgr.hxx>

Inherits SGSubsystem.

Public Member Functions

 FGATCManager ()
 Constructor, initializes values to private boolean and FGATCController instances.
 
virtual ~FGATCManager ()
 Default destructor.
 
void postinit () override
 Sets up ATC subsystem parts depending on other subsystems Override of SGSubsystem::postinit() Will set private boolean flag "initSucceeded" to true upon conclusion.
 
void shutdown () override
 Shutdown method Clears activeStations vector in preparation for clean shutdown Override of SGSubsystem::shutdown()
 
void update (double time) override
 Update the subsystem.
 
void addController (FGATCController *controller)
 Adds FGATCController instance to std::vector activeStations.
 
void removeController (FGATCController *controller)
 Searches for and removes FGATCController instance from std::vector activeStations.
 
FGATCControllergetEnRouteController ()
 
void reposition ()
 

Static Public Member Functions

static const char * staticSubsystemClassId ()
 

Detailed Description

Definition at line 30 of file atc_mgr.hxx.

Constructor & Destructor Documentation

◆ FGATCManager()

FGATCManager::FGATCManager ( )

Constructor, initializes values to private boolean and FGATCController instances.

Definition at line 47 of file atc_mgr.cxx.

◆ ~FGATCManager()

FGATCManager::~FGATCManager ( )
virtual

Default destructor.

Definition at line 59 of file atc_mgr.cxx.

Member Function Documentation

◆ addController()

void FGATCManager::addController ( FGATCController * controller)

Adds FGATCController instance to std::vector activeStations.

FGATCController is a basic class for every controller

Definition at line 280 of file atc_mgr.cxx.

◆ getEnRouteController()

FGATCController * FGATCManager::getEnRouteController ( )

Definition at line 460 of file atc_mgr.cxx.

◆ postinit()

void FGATCManager::postinit ( )
override

Sets up ATC subsystem parts depending on other subsystems Override of SGSubsystem::postinit() Will set private boolean flag "initSucceeded" to true upon conclusion.

Definition at line 67 of file atc_mgr.cxx.

◆ removeController()

void FGATCManager::removeController ( FGATCController * controller)

Searches for and removes FGATCController instance from std::vector activeStations.

Definition at line 287 of file atc_mgr.cxx.

◆ reposition()

void FGATCManager::reposition ( )

Definition at line 256 of file atc_mgr.cxx.

◆ shutdown()

void FGATCManager::shutdown ( )
override

Shutdown method Clears activeStations vector in preparation for clean shutdown Override of SGSubsystem::shutdown()

Definition at line 247 of file atc_mgr.cxx.

◆ staticSubsystemClassId()

static const char * FGATCManager::staticSubsystemClassId ( )
inlinestatic

Definition at line 57 of file atc_mgr.hxx.

◆ update()

void FGATCManager::update ( double time)
override

Update the subsystem.

FlightGear invokes this method every time the subsystem should update its state.

Parameters
timeThe delta time, in seconds, since the last update. On first update, delta time will be 0.

Definition at line 304 of file atc_mgr.cxx.


The documentation for this class was generated from the following files: