-
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
Consider sides when applying limitReductions with IdentifiableCriterion #3050
Conversation
Signed-off-by: Olivier Perrin <olivier.perrin@rte-france.com>
Signed-off-by: Olivier Perrin <olivier.perrin@rte-france.com>
* <p>Criterion checking that one of side of the network element belongs to a country defined in a list.</p> | ||
* <p>When <code>filter</code> is called with a non-null <code>side</code>, only the country on this particular side | ||
* is checked. Else, the validation is performed on whichever side.</p> |
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.
"on whichever side" does not reflect what's written in the code.
* <p>Criterion checking that one of side of the network element belongs to a country defined in a list.</p> | |
* <p>When <code>filter</code> is called with a non-null <code>side</code>, only the country on this particular side | |
* is checked. Else, the validation is performed on whichever side.</p> | |
* <p>Criterion checking that one of the sides of the network element belongs to a country defined in a list.</p> | |
* <p>When {@link #filter(NetworkElement, ThreeSides)}} is called with a non-null <code>side</code>, only the country on this particular side | |
* is checked.</p> |
iidm/iidm-criteria/src/main/java/com/powsybl/iidm/criteria/AtLeastOneCountryCriterion.java
Outdated
Show resolved
Hide resolved
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.
The AtLeast name is a bit unexpected now that there is this sides consideration.
Signed-off-by: Olivier Perrin <olivier.perrin@rte-france.com>
Signed-off-by: Olivier Perrin <olivier.perrin@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?
No
What kind of change does this PR introduce?
Bug fix
What is the current behavior?
When a
LimitReduction
is defined using anIdentifiableCriterion
(to define a reduction on a voltage level for instance), the reduction is applied on each side of the network element if one of its sides verify the criterion.What is the new behavior (if this is a feature change)?
For
IdentifiableCriterion
, the reduction is applied only on the side(s) verifying the criterion.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: