Skip to content
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 LCC_CONVERTER_STATION component type #537

Merged
merged 7 commits into from
Jul 21, 2023
Merged

Conversation

tadam50
Copy link
Contributor

@tadam50 tadam50 commented Jul 20, 2023

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Does this PR already have an issue describing the problem?
No

What kind of change does this PR introduce?
Feature

What is the current behavior?
Only VSC_CONVERTER_STATION can be used

What is the new behavior (if this is a feature change)?
LCC_CONVERTER_STATION can be used too

tadam50 added 2 commits July 20, 2023 16:06
Signed-off-by: Thomas ADAM <tadam@silicom.fr>
Signed-off-by: Thomas ADAM <tadam@silicom.fr>
@tadam50 tadam50 requested a review from So-Fras July 20, 2023 14:43
@tadam50 tadam50 self-assigned this Jul 20, 2023
Signed-off-by: Thomas ADAM <tadam@silicom.fr>
Copy link
Member

@So-Fras So-Fras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your quick and clean work. I'll let you add more tests to increase coverage and I think we shall be good!

if (lccConverterStation != null) {
LineDiagramData<LccConverterStation> lccDiagramData = LineDiagramData.getOrCreateDiagramData(lccConverterStation);
int danglingLineSeq = getMaxSeq(lccDiagramData.getPoints(diagramName)) + 1;
DiagramPoint vcsPoint = offsetPoint.newDiagramPoint(lccNode.getX(), lccNode.getY(), danglingLineSeq);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A very minor remark: could you please rename vcsPoint in lccPoint just to be consistent with the notations?
By the way, I am under the impression that vcs should be vsc instead in applyLayoutOnVscConverterStation for example.

tadam50 added 2 commits July 21, 2023 10:48
Signed-off-by: Thomas ADAM <tadam@silicom.fr>
Signed-off-by: Thomas ADAM <tadam@silicom.fr>
Signed-off-by: Thomas ADAM <tadam@silicom.fr>
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

97.7% 97.7% Coverage
0.0% 0.0% Duplication

@So-Fras So-Fras merged commit a6c4bbe into main Jul 21, 2023
@So-Fras So-Fras deleted the add_lcc_in_sld branch July 21, 2023 14:35
antoinebhs added a commit to gridsuite/gridstudy-app that referenced this pull request Nov 7, 2023
antoinebhs added a commit to gridsuite/gridstudy-app that referenced this pull request Nov 7, 2023
antoinebhs added a commit to gridsuite/gridexplore-app that referenced this pull request Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants