Class: TrafficConfig
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Traffic/TrafficConfig.ts:15
A configuration object which defines options related to the avionics' traffic system.
Implements
ResolvableConfig<(bus,tfcInstrument,initializationTime) =>TrafficAvionicsSystem>
Constructors
Constructor
new TrafficConfig(
baseInstrument,element):TrafficConfig
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Traffic/TrafficConfig.ts:34
Creates a new TrafficConfig from a configuration document element.
Parameters
| Parameter | Type | Description |
|---|---|---|
baseInstrument | BaseInstrument | The BaseInstrument element associated with the configuration. |
element | undefined | Element | A configuration document element. |
Returns
TrafficConfig
Properties
electricity?
readonlyoptionalelectricity:CompositeLogicXMLElement
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Traffic/TrafficConfig.ts:27
The electrical logic for the traffic system.
isResolvableConfig
readonlyisResolvableConfig:true=true
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Traffic/TrafficConfig.ts:18
Flags this object as a ResolvableConfig.
Implementation of
ResolvableConfig.isResolvableConfig
supportAdsb
readonlysupportAdsb:boolean
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Traffic/TrafficConfig.ts:24
Whether the traffic system should support ADS-B.
type
readonlytype:G3000TrafficSystemType
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Traffic/TrafficConfig.ts:21
The type of traffic system used.
Methods
resolve()
resolve(): (
bus,tfcInstrument,initializationTime) =>TrafficAvionicsSystem
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Traffic/TrafficConfig.ts:74
Resolves this config to a value.
Returns
This config's resolved value.
(
bus,tfcInstrument,initializationTime):TrafficAvionicsSystem
Parameters
| Parameter | Type |
|---|---|
bus | EventBus |
tfcInstrument | TrafficInstrument |
initializationTime | number |