Skip to main content

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

NameTypeDescription
busEventBusThe event bus.
vSpeedGroupsReadonlyMap<string, VSpeedGroup>Definitions for each reference V-speed for which to create settings, organized into groups.

Returns

VSpeedUserSettingManager

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

NameType
Kextends `vSpeedDefaultValue_${string}` | `vSpeedUserValue_${string}` | `vSpeedFmsValue_${string}` | `vSpeedFmsConfigMiscompare_${string}` | `vSpeedShow_${string}`

Parameters

NameType
nameK

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

NameType
Mextends UserSettingRecord

Parameters

NameType
mapUserSettingMap<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

NameType
Kextends string

Parameters

NameType
nameK

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

NameType
Kextends `vSpeedDefaultValue_${string}` | `vSpeedUserValue_${string}` | `vSpeedFmsValue_${string}` | `vSpeedFmsConfigMiscompare_${string}` | `vSpeedShow_${string}`

Parameters

NameType
nameK

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