Skip to main content

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

Constructors

Constructor

new WT21PfdConfigBuilder(baseConfigElement, baseInstrument, errorsMap): WT21PfdConfigBuilder

Defined in: sdk/utils/config/ConfigUtils.ts:196

Constructor

Parameters

ParameterTypeDescription
baseConfigElementElementXML config element to parse
baseInstrumentBaseInstrumentthe base instrument class
errorsMapMap<string, boolean>Whether there were any errors encountered while parsing the config.

Returns

WT21PfdConfigBuilder

Inherited from

ConfigBuilder<WT21PfdConfigInterface>.constructor

Properties

baseConfigElement

protected baseConfigElement: Element

Defined in: sdk/utils/config/ConfigUtils.ts:197

XML config element to parse

Inherited from

ConfigBuilder.baseConfigElement


baseInstrument

protected baseInstrument: BaseInstrument

Defined in: sdk/utils/config/ConfigUtils.ts:198

the base instrument class

Inherited from

ConfigBuilder.baseInstrument


CONFIG_TAG_NAME

protected readonly CONFIG_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

protected errorsMap: 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 protected configElement(): Element

Defined in: sdk/utils/config/ConfigUtils.ts:209

Gets the config element.

Returns

Element

The config element.

Inherited from

ConfigBuilder.configElement

Methods

defaultConfig()

protected defaultConfig(): WT21PfdConfigInterface

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/PFD/WT21PfdConfigBuilder.ts:29

Returns

WT21PfdConfigInterface

Inherit Doc

Overrides

ConfigBuilder.defaultConfig


getConfig()

getConfig(): WT21PfdConfigInterface

Defined in: sdk/utils/config/ConfigUtils.ts:223

Returns a config object.

Returns

WT21PfdConfigInterface

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()

protected parseConfig(): WT21PfdConfigInterface

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/PFD/WT21PfdConfigBuilder.ts:19

Returns

WT21PfdConfigInterface

Inherit Doc

Overrides

ConfigBuilder.parseConfig