-
Notifications
You must be signed in to change notification settings - Fork 43
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
Conversation
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
.../security-analysis-api/src/main/java/com/powsybl/security/SecurityAnalysisRunParameters.java
Outdated
Show resolved
Hide resolved
.../security-analysis-api/src/main/java/com/powsybl/security/SecurityAnalysisRunParameters.java
Outdated
Show resolved
Hide resolved
...lysis/security-analysis-api/src/main/java/com/powsybl/security/SecurityAnalysisProvider.java
Outdated
Show resolved
Hide resolved
...lysis/security-analysis-api/src/main/java/com/powsybl/security/SecurityAnalysisProvider.java
Show resolved
Hide resolved
.../security-analysis-api/src/main/java/com/powsybl/security/SecurityAnalysisRunParameters.java
Show resolved
Hide resolved
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
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.
Seems good to me! just a few javadoc comments
...lysis/security-analysis-api/src/main/java/com/powsybl/security/SecurityAnalysisProvider.java
Outdated
Show resolved
Hide resolved
.../security-analysis-api/src/main/java/com/powsybl/security/SecurityAnalysisRunParameters.java
Outdated
Show resolved
Hide resolved
.../security-analysis-api/src/main/java/com/powsybl/security/SecurityAnalysisRunParameters.java
Outdated
Show resolved
Hide resolved
.../security-analysis-api/src/main/java/com/powsybl/security/SecurityAnalysisRunParameters.java
Outdated
Show resolved
Hide resolved
.../security-analysis-api/src/main/java/com/powsybl/security/SecurityAnalysisRunParameters.java
Outdated
Show resolved
Hide resolved
.../security-analysis-api/src/main/java/com/powsybl/security/SecurityAnalysisRunParameters.java
Outdated
Show resolved
Hide resolved
…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>
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.
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.
Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
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.
Thanks a lot for the javadoc @annetill!!
...-analysis/security-analysis-api/src/main/java/com/powsybl/security/results/BranchResult.java
Outdated
Show resolved
Hide resolved
...ity-analysis/security-analysis-api/src/main/java/com/powsybl/security/results/BusResult.java
Outdated
Show resolved
Hide resolved
...-analysis-api/src/main/java/com/powsybl/security/results/ThreeWindingsTransformerResult.java
Outdated
Show resolved
Hide resolved
...-analysis/security-analysis-api/src/main/java/com/powsybl/security/monitor/StateMonitor.java
Outdated
Show resolved
Hide resolved
...-analysis-api/src/main/java/com/powsybl/security/results/ThreeWindingsTransformerResult.java
Outdated
Show resolved
Hide resolved
...-analysis/security-analysis-api/src/main/java/com/powsybl/security/monitor/StateMonitor.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
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.
@Lisrte ok for me but don't forget before merging to add licence and authorship for newly added files
Signed-off-by: lisrte <laurent.issertial@rte-france.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?
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?
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)
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 variousrun
andrunAsync
methods overloads are now limited to:run(Network, String workingStateId, ContingenciesProvider, SecurityAnalysisRunParameters)
runAsync(Network, List<Contingency>, SecurityAnalysisRunParameters)
runAsync(Network, List<Contingency>)
Other information: