Class: IauUserSettingManager
A manager for IAU user settings.
Implements
UserSettingManager
<IauAllUserSettingTypes
>
Constructors
constructor
• new IauUserSettingManager(bus
, iauDefsConfig
): IauUserSettingManager
Constructor.
Parameters
Name | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
iauDefsConfig | IauDefsConfig | A configuration object which defines IAU options. |
Returns
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Settings/IauUserSettings.ts:43
Properties
iauCount
• Readonly
iauCount: number
The number of IAUs supported by this manager.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Settings/IauUserSettings.ts:32
Methods
getAliasedManager
▸ getAliasedManager(index
): UserSettingManager
<IauUserSettingTypes
>
Gets a manager for aliased IAU user settings for an indexed IAU.
Parameters
Name | Type | Description |
---|---|---|
index | number | The index of the IAU for which to get an aliased setting manager. |
Returns
UserSettingManager
<IauUserSettingTypes
>
A manager for aliased IAU user settings for the specified IAU.
Throws
RangeError if index
is less than 1 or greater than the number of IAUs supported by this manager.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Settings/IauUserSettings.ts:100
getAllSettings
▸ getAllSettings(): UserSetting
<UserSettingValue
>[]
Returns
UserSetting
<UserSettingValue
>[]
Inherit Doc
Implementation of
UserSettingManager.getAllSettings
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Settings/IauUserSettings.ts:85
getSetting
▸ getSetting<K
>(name
): UserSetting
<NonNullable
<IauAllUserSettingTypes
[K
]>>
Type parameters
Name | Type |
---|---|
K | extends `iauAdcIndex_${number}` | `iauAhrsIndex_${number}` |
Parameters
Name | Type |
---|---|
name | K |
Returns
UserSetting
<NonNullable
<IauAllUserSettingTypes
[K
]>>
Inherit Doc
Implementation of
UserSettingManager.getSetting
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Settings/IauUserSettings.ts:75
mapTo
▸ mapTo<M
>(map
): UserSettingManager
<M
& IauAllUserSettingTypes
>
Type parameters
Name | Type |
---|---|
M | extends UserSettingRecord |
Parameters
Name | Type |
---|---|
map | UserSettingMap <M , IauAllUserSettingTypes > |
Returns
UserSettingManager
<M
& IauAllUserSettingTypes
>
Inherit Doc
Implementation of
UserSettingManager.mapTo
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Settings/IauUserSettings.ts:90
tryGetSetting
▸ tryGetSetting<K
>(name
): K
extends `iauAdcIndex_${number}` | `iauAhrsIndex_${number}` ? UserSetting
<IauAllUserSettingTypes
[K
]> : undefined
Type parameters
Name | Type |
---|---|
K | extends string |
Parameters
Name | Type |
---|---|
name | K |
Returns
K
extends `iauAdcIndex_${number}` | `iauAhrsIndex_${number}` ? UserSetting
<IauAllUserSettingTypes
[K
]> : undefined
Inherit Doc
Implementation of
UserSettingManager.tryGetSetting
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Settings/IauUserSettings.ts:70
whenSettingChanged
▸ whenSettingChanged<K
>(name
): Consumer
<NonNullable
<IauAllUserSettingTypes
[K
]>>
Type parameters
Name | Type |
---|---|
K | extends `iauAdcIndex_${number}` | `iauAhrsIndex_${number}` |
Parameters
Name | Type |
---|---|
name | K |
Returns
Consumer
<NonNullable
<IauAllUserSettingTypes
[K
]>>
Inherit Doc
Implementation of
UserSettingManager.whenSettingChanged
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Settings/IauUserSettings.ts:80