-
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
Automation systems #2779
Automation systems #2779
Conversation
Signed-off-by: Olivier Perrin <olivier.perrin@rte-france.com>
Signed-off-by: Olivier Perrin <olivier.perrin@rte-france.com>
Signed-off-by: Olivier Perrin <olivier.perrin@rte-france.com>
SonarCloud Quality Gate failed. 0 Bugs 76.4% Coverage Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
iidm/iidm-impl/src/main/java/com/powsybl/iidm/network/impl/NetworkImpl.java
Show resolved
Hide resolved
iidm/iidm-api/src/main/java/com/powsybl/iidm/network/OverloadManagementSystemAdder.java
Show resolved
Hide resolved
iidm/iidm-api/src/main/java/com/powsybl/iidm/network/OverloadManagementSystemAdder.java
Show resolved
Hide resolved
...iidm-impl/src/main/java/com/powsybl/iidm/network/impl/OverloadManagementSystemAdderImpl.java
Outdated
Show resolved
Hide resolved
...idm-tck/src/test/java/com/powsybl/iidm/network/tck/AbstractOverloadManagementSystemTest.java
Show resolved
Hide resolved
- Remove enabled to tripping. Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
- Change to current limit. Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
I have made some small changes following the meeting we have. Now:
|
Signed-off-by: Olivier Perrin <olivier.perrin@rte-france.com>
Signed-off-by: Olivier Perrin <olivier.perrin@rte-france.com>
Signed-off-by: Olivier Perrin <olivier.perrin@rte-france.com>
Signed-off-by: Olivier Perrin <olivier.perrin@rte-france.com>
return Type.BRANCH_TRIPPING; | ||
} | ||
|
||
Branch getBranchToOperate(); |
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.
This comment is also available for the other tripping impl.
I can see 2 issues:
- we use the Identifiable in the setter and getter and not the ID like for monitoredElementId. We have to be consistent.
- the difficulty that we have by using the Identifiable is that we need to manager in the implementation the cleaning in case if the Identifiable removal. Otherwise you will have a link to a dead object, which is bad for a String but even worst if we keep a link to a removed Identifiable.
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.
You are right.
As discussed together:
- It will be better to introduce a global mechanism to address the problem of referenced network elements removal (deferred for now);
- As a first step, I will replace the
Identifiable
by aString
in the trippings. This won't have an impact on the IIDM serialization result so it will be possible to use Identifiables later without having to publish a new IIDM version.
Signed-off-by: Olivier Perrin <olivier.perrin@rte-france.com>
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 2 New issues |
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?
Feature
What is the current behavior?
No automation systems are available in the IIDM.
What is the new behavior (if this is a feature change)?
This PR introduces a first type of automation systems: the overload management systems.
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)
If you had define your own IIDM implementation, you should implement the following methods:
Network
implementations:Iterable<OverloadManagementSystem> getOverloadManagementSystems()
;Stream<OverloadManagementSystem> getOverloadManagementSystemStream()
;int getOverloadManagementSystemCount()
;OverloadManagementSystem getOverloadManagementSystem(String id)
;Substation
implementation:OverloadManagementSystemAdder newOverloadManagementSystem()
;Iterable<OverloadManagementSystem> getOverloadManagementSystems()
;Stream<OverloadManagementSystem> getOverloadManagementSystemStream()
;int getOverloadManagementSystemCount()
;Other information: