Skip to main content

Class: TrafficOperatingModeManager

A manager for automatically changing traffic system operating mode on takeoff and landing.

Constructors

constructor

new TrafficOperatingModeManager(bus, takeoffDelay?, landingDelay?, operatingMode?): TrafficOperatingModeManager

Constructor.

Parameters

NameTypeDefault valueDescription
busEventBusundefinedThe event bus.
takeoffDelaynumberTrafficOperatingModeManager.DEFAULT_TAKEOFF_DELAYThe delay, in seconds, after takeoff before this manager switches the traffic system to its operating mode. Defaults to TrafficOperatingModeManager.DEFAULT_TAKEOFF_DELAY.
landingDelaynumberTrafficOperatingModeManager.DEFAULT_LANDING_DELAYThe delay, in seconds, after landing before this manager switches the traffic system to its standby mode. Defaults to TrafficOperatingModeManager.DEFAULT_LANDING_DELAY.
operatingModeTrafficOperatingModeSettingTrafficOperatingModeSetting.OperatingThe traffic system operating mode that is automatically set by this manager after takeoff. Defaults to TrafficOperatingModeSetting.Operating.

Returns

TrafficOperatingModeManager

Defined in

src/garminsdk/traffic/TrafficOperatingModeManager.ts:38

Methods

destroy

destroy(): void

Destroys this manager.

Returns

void

Defined in

src/garminsdk/traffic/TrafficOperatingModeManager.ts:201


init

init(paused?): void

Initializes this manager. Once this manager is initialized, it will automatically change traffic system operating mode on takeoff and landing. Additionally, at the time of initialization, the traffic system will be set to operate if the airplane is already in the air.

Parameters

NameTypeDefault valueDescription
pausedbooleanfalseWhether to initialize this manager as paused.

Returns

void

Throws

Error if this manager has been destroyed.

Defined in

src/garminsdk/traffic/TrafficOperatingModeManager.ts:53


pause

pause(): void

Pauses this manager. Once this manager is paused, it will no longer automatically change traffic system operating mode on takeoff and landing until resumed.

Returns

void

Throws

Error if this manager has been destroyed.

Defined in

src/garminsdk/traffic/TrafficOperatingModeManager.ts:154


reset

reset(): void

Resets this manager. Sets the traffic systems operating mode to standby and arms (but does not schedule) the transition to operating or standby modes based on whether the airplane is currently on the ground or in the air. Has no effect if this manager is not initialized.

Returns

void

Throws

Error if this manager has been destroyed.

Defined in

src/garminsdk/traffic/TrafficOperatingModeManager.ts:176


resume

resume(): void

Resumes this manager. Once this manager is resumed, it will automatically change traffic system operating mode on takeoff and landing.

Returns

void

Throws

Error if this manager has been destroyed.

Defined in

src/garminsdk/traffic/TrafficOperatingModeManager.ts:134