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

Security Analysis Result : component count, loss of load/generation/elements #2413

Merged
merged 8 commits into from
Jan 9, 2023

Conversation

obrix
Copy link
Member

@obrix obrix commented Dec 12, 2022

Add lost synchronous component count, loss of load, loss of generation and set of element lost to post contingency result.

Please check if the PR fulfills these requirements (please use '[x]' to check the checkboxes, or submit the PR and then click the checkboxes)

  • 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 ? If so, link to this issue using '#XXX' and skip the rest
#2183

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

What is the current behavior? (You can also link to an open issue here)

What is the new behavior (if this is a feature change)?

Does this PR introduce a breaking change or deprecate an API? If yes, check the following:

  • The Breaking Change or Deprecated label has been added
  • The migration guide has been updated in the github wiki (What changes might users need to make in their application due to this PR?)

Other information:

(if any of the questions/checkboxes don't apply, please delete them entirely)

@obrix obrix changed the title Security Analysis Result : component count, loss of load/generation/elements [WIP] Security Analysis Result : component count, loss of load/generation/elements Dec 12, 2022
@jeandemanged jeandemanged linked an issue Dec 13, 2022 that may be closed by this pull request
@obrix obrix force-pushed the sa_results_components_loss_load_gen branch from 2c3bc04 to 7ff37d0 Compare December 21, 2022 08:49
@obrix obrix changed the title [WIP] Security Analysis Result : component count, loss of load/generation/elements Security Analysis Result : component count, loss of load/generation/elements Dec 21, 2022
@annetill annetill added the Breaking Change API is broken label Jan 3, 2023

private final Set<String> lostElements;

public ConnectivityResult(int createdSynchronousComponentCount, int createdConnectedComponentCount, double loadActivePowerLoss,
Copy link
Member

Choose a reason for hiding this comment

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

As discuss in TSC yesterday, it seems that the naming is not the good one.

  • loadActivePowerLoss can be understand as network losses. We suggest disconnectedLoadActivePower.
  • generationActivePowerLoss : we suggest disconnectedGenerationActivePower.

Copy link
Member Author

Choose a reason for hiding this comment

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

I renamed the two attributes.

obrix added 7 commits January 9, 2023 10:59
…n and set of element lost to post contingency result.

Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
… keep partial constructors partial.

Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
…ower and disconnectedGenerationActivePower.

Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
@obrix obrix force-pushed the sa_results_components_loss_load_gen branch from b0b5438 to 75ec189 Compare January 9, 2023 09:59
Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 9, 2023

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 1 Code Smell

97.6% 97.6% Coverage
0.0% 0.0% Duplication

@miovd miovd merged commit d0eee76 into main Jan 9, 2023
@miovd miovd deleted the sa_results_components_loss_load_gen branch January 9, 2023 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Security analysis lost load/generation
5 participants