Class: WT21PfdConfigBuilder
An implementation of WT21PfdConfigInterface parsed from an XML tag
Hierarchy
ConfigBuilder
<WT21PfdConfigInterface
>↳
WT21PfdConfigBuilder
Constructors
constructor
• new WT21PfdConfigBuilder(baseConfigElement
, baseInstrument
, errorsMap?
): WT21PfdConfigBuilder
Constructor
Parameters
Name | Type | Description |
---|---|---|
baseConfigElement | Element | XML config element to parse |
baseInstrument | BaseInstrument | the base instrument class |
errorsMap | Map <string , boolean > | Whether there were any errors encountered while parsing the config. |
Returns
Inherited from
ConfigBuilder<WT21PfdConfigInterface>.constructor
Defined in
sdk/utils/config/ConfigUtils.ts:196
Properties
CONFIG_TAG_NAME
• Protected
Readonly
CONFIG_TAG_NAME: string
= 'PfdConfig'
Overrides
ConfigBuilder.CONFIG_TAG_NAME
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/PFD/WT21PfdConfigBuilder.ts:14
baseConfigElement
• Protected
baseConfigElement: Element
XML config element to parse
Inherited from
ConfigBuilder.baseConfigElement
Defined in
sdk/utils/config/ConfigUtils.ts:197
baseInstrument
• Protected
baseInstrument: BaseInstrument
the base instrument class
Inherited from
ConfigBuilder.baseInstrument
Defined in
sdk/utils/config/ConfigUtils.ts:198
errorsMap
• Protected
errorsMap: Map
<string
, boolean
>
Whether there were any errors encountered while parsing the config.
Inherited from
ConfigBuilder.errorsMap
Defined in
sdk/utils/config/ConfigUtils.ts:199
Accessors
configElement
• get
configElement(): Element
Gets the config element.
Returns
Element
The config element.
Inherited from
ConfigBuilder.configElement
Defined in
sdk/utils/config/ConfigUtils.ts:209
Methods
defaultConfig
▸ defaultConfig(): WT21PfdConfigInterface
Returns
Inherit Doc
Overrides
ConfigBuilder.defaultConfig
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/PFD/WT21PfdConfigBuilder.ts:29
getConfig
▸ getConfig(): WT21PfdConfigInterface
Returns a config object.
Returns
A parsed config, or its default value if parsing errors were encountered.
Inherited from
ConfigBuilder.getConfig
Defined in
sdk/utils/config/ConfigUtils.ts:223
getErrors
▸ getErrors(): ReadonlyMap
<string
, boolean
>
Returns a map of which configs encountered parsing errors and which did not.
Returns
ReadonlyMap
<string
, boolean
>
A map with config name keys and boolean values indicating whether a parsing error was encountered.
Inherited from
ConfigBuilder.getErrors
Defined in
sdk/utils/config/ConfigUtils.ts:241
parseConfig
▸ parseConfig(): WT21PfdConfigInterface
Returns
Inherit Doc
Overrides
ConfigBuilder.parseConfig
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/PFD/WT21PfdConfigBuilder.ts:19