Skip to main content

Class: TrafficConfig

A configuration object which defines options related to the avionics' traffic system.

Implements

  • ResolvableConfig<(bus: EventBus, tfcInstrument: TrafficInstrument, initializationTime: number) => TrafficAvionicsSystem | null>

Constructors

constructor

new TrafficConfig(baseInstrument, element): TrafficConfig

Creates a new TrafficConfig from a configuration document element.

Parameters

NameTypeDescription
baseInstrumentBaseInstrumentThe BaseInstrument element associated with the configuration.
elementundefined | ElementA configuration document element.

Returns

TrafficConfig

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Traffic/TrafficConfig.ts:38

Properties

electricity

Optional Readonly electricity: CompositeLogicXMLElement

The electrical logic for the traffic system.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Traffic/TrafficConfig.ts:31


isResolvableConfig

Readonly isResolvableConfig: true

Flags this object as a ResolvableConfig.

Implementation of

ResolvableConfig.isResolvableConfig

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Traffic/TrafficConfig.ts:19


source

Readonly source: G3XTrafficSystemSource

The source of traffic data.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Traffic/TrafficConfig.ts:22


supportAdsb

Readonly supportAdsb: boolean

Whether the traffic system should support ADS-B.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Traffic/TrafficConfig.ts:28


type

Readonly type: null | G3XTrafficSystemType

The type of traffic system used.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Traffic/TrafficConfig.ts:25

Methods

resolve

resolve(): (bus: EventBus, tfcInstrument: TrafficInstrument, initializationTime: number) => null | TrafficAvionicsSystem<TrafficSystem>

Resolves this config to a value.

Returns

fn

This config's resolved value.

▸ (bus, tfcInstrument, initializationTime): null | TrafficAvionicsSystem<TrafficSystem>

Parameters
NameType
busEventBus
tfcInstrumentTrafficInstrument
initializationTimenumber
Returns

null | TrafficAvionicsSystem<TrafficSystem>

Implementation of

ResolvableConfig.resolve

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Traffic/TrafficConfig.ts:98