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
Name | Type | Description |
---|---|---|
baseInstrument | BaseInstrument | The BaseInstrument element associated with the configuration. |
element | undefined | Element | A configuration document element. |
Returns
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
Name | Type |
---|---|
bus | EventBus |
tfcInstrument | TrafficInstrument |
initializationTime | number |
Returns
null
| TrafficAvionicsSystem
<TrafficSystem
>
Implementation of
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Traffic/TrafficConfig.ts:98