Skip to main content

Crate cimview

Crate cimview 

Source
Expand description

A model set as views, for whatever draws them: its grid at substation level (grid, laid out by layout) and its objects as a tree (tree), with validation’s findings counted on each. cimlsp serves them to the VS Code extension. Runs on wasm32-unknown-unknown too.

The views answer in JSON. Where an object is written is not in the data: the caller says, through Locations.

Modules§

grid
A model set’s grid at substation level, for a grid view: substations (and boundary points no substation holds) as nodes, the equipment joining two of them (lines, mostly) as edges, and each object’s findings counted on the node or edge it belongs to. Where the set has a Diagram Layout or Geographical Location profile, each diagram and coordinate system is a Layout: node positions and line routes. What each substation holds is its Inside, for the view’s drill-down.
layout
The grid view’s automatic layout (Cytoscape’s cose is quadratic in the nodes on every iteration: RealGrid’s 4875 substations do not finish).
tree
A model set’s objects as a tree, for the extension’s model view. Its sections:

Traits§

Locations
Where a set’s objects are written, which only the caller of a view knows: a language server has ranges in documents, a page only file names.

Functions§

mrid_of
The mRID in a reference or an id as written: the text after the last #.