Class: VSpeedUserSettingManager
A manager for reference V-speed user settings.
Implements
UserSettingManager
<VSpeedUserSettingTypes
>
Constructors
constructor
• new VSpeedUserSettingManager(bus
, vSpeedDefs
): VSpeedUserSettingManager
Creates a new instance of VSpeedUserSettingManager.
Parameters
Name | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
vSpeedDefs | readonly VSpeedDefinition [] | Definitions for each reference V-speed for which to create settings. |
Returns
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Settings/VSpeedUserSettings.ts:31
Properties
vSpeedDefs
• Readonly
vSpeedDefs: readonly VSpeedDefinition
[]
An map of groups (keyed on group type) containing the reference V-speeds for which this manager contains settings.
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Settings/VSpeedUserSettings.ts:21
Methods
getAllSettings
▸ getAllSettings(): UserSetting
<UserSettingValue
>[]
Returns
UserSetting
<UserSettingValue
>[]
Inherit Doc
Implementation of
UserSettingManager.getAllSettings
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Settings/VSpeedUserSettings.ts:99
getSetting
▸ getSetting<K
>(name
): UserSetting
<NonNullable
<VSpeedUserSettingTypes
[K
]>>
Type parameters
Name | Type |
---|---|
K | extends `vSpeedDefaultValue_${string}` | `vSpeedUserValue_${string}` | `vSpeedFmsValue_${string}` | `vSpeedFmsConfigMiscompare_${string}` | `vSpeedShow_${string}` |
Parameters
Name | Type |
---|---|
name | K |
Returns
UserSetting
<NonNullable
<VSpeedUserSettingTypes
[K
]>>
Inherit Doc
Implementation of
UserSettingManager.getSetting
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Settings/VSpeedUserSettings.ts:89
mapTo
▸ mapTo<M
>(map
): UserSettingManager
<M
& VSpeedUserSettingTypes
>
Type parameters
Name | Type |
---|---|
M | extends UserSettingRecord |
Parameters
Name | Type |
---|---|
map | UserSettingMap <M , VSpeedUserSettingTypes > |
Returns
UserSettingManager
<M
& VSpeedUserSettingTypes
>
Inherit Doc
Implementation of
UserSettingManager.mapTo
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Settings/VSpeedUserSettings.ts:104
tryGetSetting
▸ tryGetSetting<K
>(name
): K
extends keyof VSpeedUserSettingTypes
? UserSetting
<VSpeedUserSettingTypes
[K
]> : undefined
Type parameters
Name | Type |
---|---|
K | extends string |
Parameters
Name | Type |
---|---|
name | K |
Returns
K
extends keyof VSpeedUserSettingTypes
? UserSetting
<VSpeedUserSettingTypes
[K
]> : undefined
Inherit Doc
Implementation of
UserSettingManager.tryGetSetting
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Settings/VSpeedUserSettings.ts:84
whenSettingChanged
▸ whenSettingChanged<K
>(name
): Consumer
<NonNullable
<VSpeedUserSettingTypes
[K
]>>
Type parameters
Name | Type |
---|---|
K | extends `vSpeedDefaultValue_${string}` | `vSpeedUserValue_${string}` | `vSpeedFmsValue_${string}` | `vSpeedFmsConfigMiscompare_${string}` | `vSpeedShow_${string}` |
Parameters
Name | Type |
---|---|
name | K |
Returns
Consumer
<NonNullable
<VSpeedUserSettingTypes
[K
]>>
Inherit Doc
Implementation of
UserSettingManager.whenSettingChanged
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Settings/VSpeedUserSettings.ts:94