Class: XMLWarningFactory
Defined in: src/sdk/components/Warnings/XMLWarningAdapter.ts:7
Create a list of system warnings.
Constructors
Constructor
new XMLWarningFactory(
instrument
):XMLWarningFactory
Defined in: src/sdk/components/Warnings/XMLWarningAdapter.ts:14
Create an XMLWarningFactory.
Parameters
Parameter | Type | Description |
---|---|---|
instrument | BaseInstrument | The instrument that the warnings run in. |
Returns
XMLWarningFactory
Methods
parseConfig()
parseConfig(
document
):Warning
[]
Defined in: src/sdk/components/Warnings/XMLWarningAdapter.ts:25
Parse a panel.xml configuration to create a list of warnings. The warning priority is defined by their order in panel.xml, with higher priority warnings coming sooner in the file.
Parameters
Parameter | Type | Description |
---|---|---|
document | Document | The configuration as an XML document. |
Returns
Warning
[]
An array of Warnings