Skip to content

OpenEnergyTools/scl-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

96ddefb · Jan 15, 2025
Oct 29, 2024
Dec 16, 2024
Dec 5, 2023
Dec 5, 2023
Aug 13, 2024
Aug 14, 2024
Dec 5, 2023
Dec 5, 2023
Jul 23, 2024
Dec 16, 2024
Apr 17, 2024
Dec 5, 2023
Dec 5, 2023
Jul 23, 2024
Dec 7, 2024
Dec 5, 2023
Feb 20, 2024
Dec 5, 2023
Dec 5, 2023
Jul 23, 2024
Dec 5, 2023
Aug 14, 2024
Aug 14, 2024
May 16, 2023
May 16, 2023
May 16, 2023
Jan 15, 2025
Aug 14, 2024
Aug 14, 2024
Oct 29, 2024
Jun 23, 2023
Sep 21, 2023

Repository files navigation

scl-lib

This repository - SclLib - is a collection of TypeScript functions, that allow to faster develop modules for SCL editing.

Content

SclLib is primarily exporting functions, that allow to manipulate SCL elements. There are various types of functions you can find in this library grouped into:

  • element creation: Those functions are triggered by the wish to create a valid SCL element. Those functions do check primarily whether limitation to create such an element are met.

    • The input is the parent/ancestor element and and an options object defining a user-defined configuration of the element to be created.
    • The output is a delta compared to the current SCL
  • edit checks: Those function are triggered by the wish to edit a specific SCL element, e.g. GSEControl.

    • The input is a delta to the actual SCL formulated as Update, Insert or Remove.
    • The output is a corrected delta formulated as an array of Update, Insert or Remove. The difference between the input and output contains expertise related to IEC 61850-6.
  • generators: Generator functions that allow to dynamically create unique value such as MAC-addresses, APPID and others