Class: WT21PfdConfigBuilder
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/PFD/WT21PfdConfigBuilder.ts:13
An implementation of WT21PfdConfigInterface parsed from an XML tag
Extends
ConfigBuilder<WT21PfdConfigInterface>
Constructors
Constructor
new WT21PfdConfigBuilder(
baseConfigElement,baseInstrument,errorsMap):WT21PfdConfigBuilder
Defined in: sdk/utils/config/ConfigUtils.ts:196
Constructor
Parameters
| Parameter | 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
WT21PfdConfigBuilder
Inherited from
ConfigBuilder<WT21PfdConfigInterface>.constructor
Properties
baseConfigElement
protectedbaseConfigElement:Element
Defined in: sdk/utils/config/ConfigUtils.ts:197
XML config element to parse
Inherited from
ConfigBuilder.baseConfigElement
baseInstrument
protectedbaseInstrument:BaseInstrument
Defined in: sdk/utils/config/ConfigUtils.ts:198
the base instrument class
Inherited from
ConfigBuilder.baseInstrument
CONFIG_TAG_NAME
protectedreadonlyCONFIG_TAG_NAME:string='PfdConfig'
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/PFD/WT21PfdConfigBuilder.ts:14
Overrides
ConfigBuilder.CONFIG_TAG_NAME
errorsMap
protectederrorsMap:Map<string,boolean>
Defined in: sdk/utils/config/ConfigUtils.ts:199
Whether there were any errors encountered while parsing the config.
Inherited from
ConfigBuilder.errorsMap
Accessors
configElement
Get Signature
get
protectedconfigElement():Element
Defined in: sdk/utils/config/ConfigUtils.ts:209
Gets the config element.
Returns
Element
The config element.
Inherited from
ConfigBuilder.configElement
Methods
defaultConfig()
protecteddefaultConfig():WT21PfdConfigInterface
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/PFD/WT21PfdConfigBuilder.ts:29
Returns
Inherit Doc
Overrides
ConfigBuilder.defaultConfig
getConfig()
getConfig():
WT21PfdConfigInterface
Defined in: sdk/utils/config/ConfigUtils.ts:223
Returns a config object.
Returns
A parsed config, or its default value if parsing errors were encountered.
Inherited from
ConfigBuilder.getConfig
getErrors()
getErrors():
ReadonlyMap<string,boolean>
Defined in: sdk/utils/config/ConfigUtils.ts:241
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
parseConfig()
protectedparseConfig():WT21PfdConfigInterface
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/PFD/WT21PfdConfigBuilder.ts:19
Returns
Inherit Doc
Overrides
ConfigBuilder.parseConfig