Skip to main content

Class: IauUserSettingManager

A manager for IAU user settings.

Implements

Constructors

constructor

new IauUserSettingManager(bus, iauDefsConfig): IauUserSettingManager

Constructor.

Parameters

NameTypeDescription
busEventBusThe event bus.
iauDefsConfigIauDefsConfigA configuration object which defines IAU options.

Returns

IauUserSettingManager

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

NameTypeDescription
indexnumberThe 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

NameType
Kextends `iauAdcIndex_${number}` | `iauAhrsIndex_${number}`

Parameters

NameType
nameK

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

NameType
Mextends UserSettingRecord

Parameters

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

NameType
Kextends string

Parameters

NameType
nameK

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

NameType
Kextends `iauAdcIndex_${number}` | `iauAhrsIndex_${number}`

Parameters

NameType
nameK

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