@openenergytools/scl-lib
v1.0.0
Published
Function library supporting SCL editing
Downloads
111
Readme
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
orRemove
. - The output is a corrected delta formulated as an array of
Update
,Insert
orRemove
. The difference between the input and output contains expertise related to IEC 61850-6.
- The input is a delta to the actual SCL formulated as
generators: Generator functions that allow to dynamically create unique value such as MAC-addresses, APPID and others