-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add computation utility class #84
Conversation
…nResultUtils class - Added a new dependency for powsybl-security-analysis-api version 6.4.1 in pom.xml. - Created ComputationResultUtils class to handle violation location identification and formatting for network computations. Signed-off-by: jamal-khey <myjamal89@gmail.com>
…introduce ComputationUtilTest class - Created ComputationUtilTest class to implement unit tests for ComputationResultUtils, covering various scenarios for formatting node IDs and handling violation locations. Signed-off-by: jamal-khey <myjamal89@gmail.com>
Signed-off-by: jamal-khey <myjamal89@gmail.com>
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
pom.xml
Outdated
@@ -163,5 +170,11 @@ | |||
<artifactId>spring-boot-starter-test</artifactId> | |||
<scope>test</scope> | |||
</dependency> | |||
<dependency> |
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.
Why this dependency ?
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.
i removed this dependency
Signed-off-by: jamal-khey <myjamal89@gmail.com>
5e65c3d
to
422f02e
Compare
Signed-off-by: jamal-khey <myjamal89@gmail.com>
Signed-off-by: jamal-khey <myjamal89@gmail.com>
Signed-off-by: jamal-khey <myjamal89@gmail.com>
Signed-off-by: jamal-khey <myjamal89@gmail.com>
10338a0
to
24eda64
Compare
Signed-off-by: jamal-khey <myjamal89@gmail.com>
.setId("NGEN2") | ||
.add(); | ||
|
||
when(busBreakerViolationLocation.getBusView(any())).thenReturn(() -> Stream.of(ngen, ngen2)); |
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.
ngen2 is a configured bus and not a calculated bus !
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.
done
57d99cd
to
4833476
Compare
Signed-off-by: jamal-khey <myjamal89@gmail.com>
Signed-off-by: jamal-khey <myjamal89@gmail.com>
src/test/java/com/powsybl/ws/commons/computation/ComputationUtilTest.java
Show resolved
Hide resolved
src/main/java/com/powsybl/ws/commons/computation/utils/ComputationResultUtils.java
Show resolved
Hide resolved
Signed-off-by: jamal-khey <myjamal89@gmail.com>
Quality Gate passedIssues Measures |
Please check if the PR fulfills these requirements
Does this PR already have an issue describing the problem?
What kind of change does this PR introduce?
What is the current behavior?
What is the new behavior (if this is a feature change)?
Does this PR introduce a breaking change or deprecate an API?
If yes, please check if the following requirements are fulfilled
What changes might users need to make in their application due to this PR? (migration steps)
Other information: