Skip to content

feat: introduce business logic layer and element-to-function map #9

Description

@noraeb

User Story

As a developer maintaining the bay template editor,

I want a dedicated business logic layer that pre-processes the SCD document and a Map<ElementInSLD, Function[]> to look up functions per element,

So that the SLD and functions layers consume pre-processed data rather than raw SCD details, keeping them simple and maintainable.

Acceptance criteria

  • A Map<ElementInSLD, Function[]> is computed once per document change and passed to the SLD and functions layers.
  • A business logic layer exists that takes doc and returns ready-to-use substations, bays, equipment, and functions.
  • The state updates whenever editCount changes.

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