Class: VSpeedUserSettingManager
A manager for reference V-speed user settings.
Implements
UserSettingManager
<VSpeedUserSettingTypes
>
Constructors
constructor
• new VSpeedUserSettingManager(bus
, vSpeedGroups
): VSpeedUserSettingManager
Creates a new instance of VSpeedUserSettingManager.
Parameters
Name | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
vSpeedGroups | ReadonlyMap <string , VSpeedGroup > | Definitions for each reference V-speed for which to create settings, organized into groups. |
Returns
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/VSpeed/VSpeedUserSettings.ts:23
Properties
vSpeedGroups
• Readonly
vSpeedGroups: ReadonlyMap
<string
, VSpeedGroup
>
An map of groups (keyed on group type) containing the reference V-speeds for which this manager contains settings.
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/VSpeed/VSpeedUserSettings.ts:14
Methods
getAllSettings
▸ getAllSettings(): UserSetting
<UserSettingValue
>[]
Returns
UserSetting
<UserSettingValue
>[]
Inherit Doc
Implementation of
UserSettingManager.getAllSettings
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/VSpeed/VSpeedUserSettings.ts:79
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
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/VSpeed/VSpeedUserSettings.ts:69
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
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/VSpeed/VSpeedUserSettings.ts:84
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
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/VSpeed/VSpeedUserSettings.ts:64
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
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/VSpeed/VSpeedUserSettings.ts:74