-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SLD] add limit violation highlight #643
Conversation
Signed-off-by: jamal-khey <[email protected]>
Signed-off-by: jamal-khey <[email protected]>
Signed-off-by: jamal-khey <[email protected]>
Signed-off-by: jamal-khey <[email protected]>
Signed-off-by: jamal-khey <[email protected]>
Signed-off-by: jamal-khey <[email protected]>
Signed-off-by: jamal-khey <[email protected]>
Signed-off-by: jamal-khey <[email protected]>
...line-diagram-core/src/main/java/com/powsybl/sld/svg/styles/AbstractVoltageStyleProvider.java
Outdated
Show resolved
Hide resolved
Signed-off-by: jamal-khey <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this PR. I have a few points that are unclear to me:
- Shouldn't we add the style in the .css?
- What kind of equipment could be overloaded? Here I am under the impression that a connectivityNode could be "overloaded". Does it make sense?
- I am not sure that we should modify the AbstractStyleProvider. We could do the same as what we did with the
HighlightLineStateStyleProvider
To be further discussed!
...ram/single-line-diagram-core/src/main/java/com/powsybl/sld/builders/NetworkGraphBuilder.java
Outdated
Show resolved
Hide resolved
...ram/single-line-diagram-core/src/main/java/com/powsybl/sld/builders/NetworkGraphBuilder.java
Outdated
Show resolved
Hide resolved
...ram/single-line-diagram-core/src/main/java/com/powsybl/sld/builders/NetworkGraphBuilder.java
Outdated
Show resolved
Hide resolved
...diagram/single-line-diagram-core/src/main/java/com/powsybl/sld/model/nodes/AbstractNode.java
Outdated
Show resolved
Hide resolved
...le-line-diagram/single-line-diagram-core/src/main/java/com/powsybl/sld/model/nodes/Node.java
Outdated
Show resolved
Hide resolved
Indeed, could you add the css from gridsuite/gridstudy-app#2244?
Indeed, I think overloaded is now everywhere in the graph, but we tried to avoid to populate the graph with data which is not needed for the diagram structure. The way we handle this is to look in the network when requesting the classes on a particular node or a particular edge, like in
Indeed, we'd rather do it like that |
About the rendering, if we want to keep the same rendering as the connect / disconnect styles from |
clean code Signed-off-by: jamal-khey <[email protected]>
Signed-off-by: jamal-khey <[email protected]>
Signed-off-by: jamal-khey <[email protected]>
Signed-off-by: jamal-khey <[email protected]>
9a0530a
to
9768bfd
Compare
Signed-off-by: jamal-khey <[email protected]>
undo previous changes, add new LimitHighlightStyleProvider Signed-off-by: jamal-khey <[email protected]> Signed-off-by: jamal-khey <[email protected]>
add unit test for under/over voltage limit Signed-off-by: jamal-khey <[email protected]>
Signed-off-by: jamal-khey <[email protected]>
b414d57
to
0c294d0
Compare
Yes you are right @So-Fras , i miss understood the comment.
I have made the necessary changes to align with this approach, similar to the |
Signed-off-by: jamal-khey <[email protected]>
single-line-diagram/single-line-diagram-core/src/main/resources/animations.css
Outdated
Show resolved
Hide resolved
...-diagram-core/src/main/java/com/powsybl/sld/svg/styles/iidm/LimitHighlightStyleProvider.java
Show resolved
Hide resolved
...-diagram-core/src/main/java/com/powsybl/sld/svg/styles/iidm/LimitHighlightStyleProvider.java
Outdated
Show resolved
Hide resolved
...-diagram-core/src/main/java/com/powsybl/sld/svg/styles/iidm/LimitHighlightStyleProvider.java
Outdated
Show resolved
Hide resolved
...-diagram-core/src/main/java/com/powsybl/sld/svg/styles/iidm/LimitHighlightStyleProvider.java
Outdated
Show resolved
Hide resolved
...-diagram-core/src/main/java/com/powsybl/sld/svg/styles/iidm/LimitHighlightStyleProvider.java
Outdated
Show resolved
Hide resolved
...-diagram-core/src/main/java/com/powsybl/sld/svg/styles/iidm/LimitHighlightStyleProvider.java
Outdated
Show resolved
Hide resolved
...-diagram-core/src/main/java/com/powsybl/sld/svg/styles/iidm/LimitHighlightStyleProvider.java
Outdated
Show resolved
Hide resolved
...-diagram-core/src/main/java/com/powsybl/sld/svg/styles/iidm/LimitHighlightStyleProvider.java
Show resolved
Hide resolved
single-line-diagram/single-line-diagram-core/src/main/resources/animations.css
Outdated
Show resolved
Hide resolved
Signed-off-by: jamal-khey <[email protected]>
Signed-off-by: jamal-khey <[email protected]>
Signed-off-by: jamal-khey <[email protected]>
...agram-core/src/main/java/com/powsybl/sld/svg/styles/iidm/OverloadHighlightStyleProvider.java
Outdated
Show resolved
Hide resolved
Signed-off-by: jamal-khey <[email protected]>
Signed-off-by: jamal-khey <[email protected]>
Quality Gate passedIssues Measures |
This PR fixes the #590 issue. |
Please check if the PR fulfills these requirements
What kind of change does this PR introduce?
feature:
This PR add a CSS class to Lines/Transformer/Bus in case of a limit violation
expected result, similar to what is done for NAD, we want to be able to highlight the equipment that has a limit violation
example 1
example 2
similar animation is also applied to busbarsection :
example 3
What is the current behavior?
the label is added but without informations if the equipment is in limit violation
What is the new behavior (if this is a feature change)?
add a CSS class
sld-overload
sld-vl-overvoltage
sld-vl-undervoltage
Does this PR introduce a breaking change or deprecate an API?
Modifications in animations.css