Skip to content

tControl: Provide optional IED name in findControlSubscription #112

@danyill

Description

@danyill

It would be useful to me if I could provide an optional IED name in findControlSubscription to reduce the query scope.

I note in passing the current query is very broad

return Array.from(
doc.querySelectorAll(`ExtRef[iedName="${iedName}"]`),
).filter((extRef) => matchSrcAttributes(extRef, control));

We could use a more performant alternative:

return Array.from(
doc.querySelectorAll(
`:root>IED>AccessPoint>Server>LDevice>LN0>Inputs>ExtRef[iedName="${iedName}"],
:root>IED>AccessPoint>Server>LDevice>LN>Inputs>ExtRef[iedName="${iedName}"]`,
),
).filter((extRef) => matchDataAttributes(extRef, fcda));

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions