Skip to main content

Class: TrafficConfig

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Traffic/TrafficConfig.ts:16

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

Implements

  • ResolvableConfig<(bus, tfcInstrument, initializationTime) => TrafficAvionicsSystem | null>

Constructors

Constructor

new TrafficConfig(baseInstrument, element): TrafficConfig

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Traffic/TrafficConfig.ts:38

Creates a new TrafficConfig from a configuration document element.

Parameters

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

Returns

TrafficConfig

Properties

electricity?

readonly optional electricity: CompositeLogicXMLElement

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Traffic/TrafficConfig.ts:31

The electrical logic for the traffic system.


isResolvableConfig

readonly isResolvableConfig: true = true

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Traffic/TrafficConfig.ts:19

Flags this object as a ResolvableConfig.

Implementation of

ResolvableConfig.isResolvableConfig


source

readonly source: G3XTrafficSystemSource

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Traffic/TrafficConfig.ts:22

The source of traffic data.


supportAdsb

readonly supportAdsb: boolean

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Traffic/TrafficConfig.ts:28

Whether the traffic system should support ADS-B.


type

readonly type: null | G3XTrafficSystemType

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Traffic/TrafficConfig.ts:25

The type of traffic system used.

Methods

resolve()

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

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Traffic/TrafficConfig.ts:98

Resolves this config to a value.

Returns

This config's resolved value.

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

Parameters
ParameterType
busEventBus
tfcInstrumentTrafficInstrument
initializationTimenumber
Returns

null | TrafficAvionicsSystem<TrafficSystem>

Implementation of

ResolvableConfig.resolve