What is the expected behavior?
Similarly to the single-line-diagram-viewer of powsybl-dev-tools, having a debug viewer to test powsybl-network-area-diagram
What is the motivation / use case for changing the behavior?
Helping develop and test powsybl-network-area-diagram
Other information
Most of the code might be taken from single-line-diagram-viewer in this same repo, as this viewer is expected to be very similar. The single-line-diagram-viewer has known many changes and therefore some of its code might now be useless/irrelevant, so don't hesitate to change it if looks odd to you.
The user can select either:
the full network to be displayed by ticking "full network" checkbox: then the SVG will be generated using new NetworkAreaDiagram(network).draw(stringWriter)
only part of the network by unticking that box, selecting a voltage level and choosing a depth: then the SVG will be generated using new NetworkAreaDiagram(network, voltageLevelId, depth).draw(stringWriter)
Note that when full network checkbox is ticked, the part below can be hidden.
When a node (voltage level) is clicked, information about that voltage level should be displayed in the infos part. A button near that infos part should be added to generate a diagram centered on the clicked node.
A button "Run loadflow" should be added, as often the power flow values in the input file are missing. The corresponding code to call is LoadFlow.run(network); and the following artifactId of load flow implementation should be added in the pom.xml: powsybl-open-loadflow
LayoutParameters and SvgParameters should be modifiable, similarly to single-line-diagram-viewer
Layout, LabelProvider and StyleProvider can be changed with drop-down list, but those lists will contain only one element (the three of them have only one implementation so far)
Do you want to request a feature or report a bug? Feature
What is the current behavior? No viewer for the images generated by powsybl-network-area-diagram
What is the expected behavior? Similarly to the single-line-diagram-viewer of powsybl-dev-tools, having a debug viewer to test powsybl-network-area-diagram
What is the motivation / use case for changing the behavior? Helping develop and test powsybl-network-area-diagram
Other information
new NetworkAreaDiagram(network).draw(stringWriter)
new NetworkAreaDiagram(network, voltageLevelId, depth).draw(stringWriter)
LoadFlow.run(network);
and the following artifactId of load flow implementation should be added in thepom.xml
:powsybl-open-loadflow
Here's a screen mock-up of what's expected.