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>

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-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Traffic/TrafficConfig.ts:34

Properties

electricity

Optional Readonly electricity: CompositeLogicXMLElement

The electrical logic for the traffic system.

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Traffic/TrafficConfig.ts:27


isResolvableConfig

Readonly isResolvableConfig: true

Flags this object as a ResolvableConfig.

Implementation of

ResolvableConfig.isResolvableConfig

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Traffic/TrafficConfig.ts:18


supportAdsb

Readonly supportAdsb: boolean

Whether the traffic system should support ADS-B.

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Traffic/TrafficConfig.ts:24


type

Readonly type: G3000TrafficSystemType

The type of traffic system used.

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Traffic/TrafficConfig.ts:21

Methods

resolve

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

Resolves this config to a value.

Returns

fn

This config's resolved value.

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

Parameters
NameType
busEventBus
tfcInstrumentTrafficInstrument
initializationTimenumber
Returns

TrafficAvionicsSystem<TrafficSystem>

Implementation of

ResolvableConfig.resolve

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Traffic/TrafficConfig.ts:74