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 runner parameters #3017

Merged
merged 13 commits into from
May 27, 2024
Merged

Security analysis runner parameters #3017

merged 13 commits into from
May 27, 2024

Conversation

Lisrte
Copy link
Contributor

@Lisrte Lisrte commented May 15, 2024

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?

What kind of change does this PR introduce?

Refactor

What is the current behavior?

Security analysis API methods contains too many parameters and overloads

What is the new behavior (if this is a feature change)?
Replace the parameters with a new object : SecurityAnalysisRunParameters

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

If yes, please check if the following requirements are fulfilled

  • The Breaking Change or Deprecated label has been added
  • The migration steps are described in the following section

What changes might users need to make in their application due to this PR? (migration steps)

For SecurityAnalysisProvider implementations:
replace run(Network, String workingStateId, LimitViolationDetector, LimitViolationFilter, ComputationManager, SecurityAnalysisParameters, ContingenciesProvider, List<SecurityAnalysisInterceptor>, List<OperatorStrategy>, List<Action>, List<StateMonitor>, List<LimitReduction>, ReportNode
with run(Network, String workingStateId, ContingenciesProvider, SecurityAnalysisRunParameters)

For SecurityAnalysis API, the various run and runAsync methods overloads are now limited to:

  • run(Network, String workingStateId, ContingenciesProvider, SecurityAnalysisRunParameters)
  • runAsync(Network, List<Contingency>, SecurityAnalysisRunParameters)
  • runAsync(Network, List<Contingency>)

Other information:

Lisrte added 2 commits May 14, 2024 15:50
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
@Lisrte Lisrte marked this pull request as ready for review May 17, 2024 13:29
@Lisrte Lisrte requested review from flo-dup and geofjamg May 17, 2024 13:29
Copy link
Contributor

@flo-dup flo-dup left a comment

Choose a reason for hiding this comment

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

Seems good to me! just a few javadoc comments

Lisrte and others added 3 commits May 22, 2024 11:20
…ybl/security/SecurityAnalysisProvider.java

Co-authored-by: Florian Dupuy <66690739+flo-dup@users.noreply.github.com>
Signed-off-by: Lisrte <laurent.issertial@rte-france.com>
Co-authored-by: Florian Dupuy <66690739+flo-dup@users.noreply.github.com>
Signed-off-by: Lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
@Lisrte Lisrte requested a review from flo-dup May 22, 2024 11:20
Copy link
Contributor

@flo-dup flo-dup left a comment

Choose a reason for hiding this comment

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

Seems good to me!

@geofjamg could you have a quick look?

And @EtienneLt or @geofjamg do you think you could add a clearer explanation for SecurityAnalysisRunParameters::setMonitors javadoc? 😬

It would be nice to know which information, where is it written? It's also confusing "after security analysis" seems to mean after all contingencies, but it's not.

annetill and others added 2 commits May 23, 2024 10:38
Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
Copy link
Contributor

@flo-dup flo-dup left a comment

Choose a reason for hiding this comment

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

Thanks a lot for the javadoc @annetill!!

flo-dup added 3 commits May 24, 2024 15:09
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Copy link
Member

@geofjamg geofjamg left a comment

Choose a reason for hiding this comment

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

@Lisrte ok for me but don't forget before merging to add licence and authorship for newly added files

Lisrte added 2 commits May 27, 2024 10:11
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Copy link

@olperr1 olperr1 merged commit 9f8546a into main May 27, 2024
6 checks passed
@olperr1 olperr1 deleted the sa_runner_parameter branch May 27, 2024 10:23
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.

5 participants