-
Notifications
You must be signed in to change notification settings - Fork 0
remove operational limits groups #113
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Etienne LESOT <[email protected]>
Signed-off-by: Etienne LESOT <[email protected]>
src/main/java/org/gridsuite/modification/modifications/AbstractBranchModification.java
Outdated
Show resolved
Hide resolved
src/main/java/org/gridsuite/modification/modifications/AbstractBranchModification.java
Outdated
Show resolved
Hide resolved
src/test/java/org/gridsuite/modification/modifications/LineModificationTest.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Etienne LESOT <[email protected]>
Signed-off-by: Etienne LESOT <[email protected]>
Signed-off-by: Etienne LESOT <[email protected]>
| private void removeOlg(Branch<?> branch, OperationalLimitsGroupModificationInfos opLGModificationInfos, List<ReportNode> operationalLimitsGroupReports, OperationalLimitsGroupInfos.Applicability applicability) { | ||
| if (applicability == SIDE1 && branch.getOperationalLimitsGroup1(opLGModificationInfos.getId()).isEmpty() || | ||
| applicability == SIDE2 && branch.getOperationalLimitsGroup2(opLGModificationInfos.getId()).isEmpty()) { | ||
| throw new PowsyblException("Cannot delete operational limit group " + opLGModificationInfos.getId() + " which has not been found in equipment on side " + applicability); |
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.
are you sur we should throw here ? Why not just log an error ?
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.
| line.newOperationalLimitsGroup1("NewLimitsGroup2").newCurrentLimits() | ||
| .setPermanentLimit(10.0) | ||
| .add(); | ||
| // side 2 | ||
| line.newOperationalLimitsGroup2("NewLimitsGroup1").newCurrentLimits() | ||
| .setPermanentLimit(10.0) | ||
| .add(); | ||
| line.newOperationalLimitsGroup2("NewLimitsGroup3").newCurrentLimits() | ||
| .setPermanentLimit(10.0) | ||
| .add(); |
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.
Is there a reason for "NewLimitsGroup2" and "NewLimitsGroup3" to have 2 different names ? Wouldn't it be more useful to have the same name in order to check that the DELETE correctly handle the applicability and doesn't delete both ?
|






No description provided.