-
Notifications
You must be signed in to change notification settings - Fork 40
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
Add network modification to action #2924
Conversation
d333bca
to
abd3e88
Compare
abd3e88
to
22e088b
Compare
22e088b
to
5ea2dc4
Compare
5ea2dc4
to
e0425e9
Compare
c0362db
to
075684f
Compare
075684f
to
5795638
Compare
action-api/src/main/java/com/powsybl/action/AbstractLoadAction.java
Outdated
Show resolved
Hide resolved
238e310
to
1554e86
Compare
action-api/src/main/java/com/powsybl/action/MultipleActionsAction.java
Outdated
Show resolved
Hide resolved
action-api/src/main/java/com/powsybl/action/AbstractLoadAction.java
Outdated
Show resolved
Hide resolved
action-api/src/test/java/com/powsybl/action/json/ApplyActionToNetworkTest.java
Outdated
Show resolved
Hide resolved
.../iidm-modification/src/main/java/com/powsybl/iidm/modification/AbstractLoadModification.java
Show resolved
Hide resolved
action-api/src/main/java/com/powsybl/action/AbstractLoadAction.java
Outdated
Show resolved
Hide resolved
action-api/src/main/java/com/powsybl/action/GeneratorAction.java
Outdated
Show resolved
Hide resolved
action-api/src/main/java/com/powsybl/action/PhaseTapChangerTapPositionAction.java
Outdated
Show resolved
Hide resolved
iidm/iidm-modification/src/main/java/com/powsybl/iidm/modification/GeneratorModification.java
Outdated
Show resolved
Hide resolved
iidm/iidm-modification/src/main/java/com/powsybl/iidm/modification/GeneratorModification.java
Outdated
Show resolved
Hide resolved
Sonar raise coverage error mostly because of IDE generated equals and hashcode that I added for Rao (where they are tested) (where they are used by Set). Can we used some kind of automatic tests for these like https://mvnrepository.com/artifact/nl.jqno.equalsverifier/equalsverifier ? |
4d0a0ff
to
fd32cf9
Compare
|
304e179
to
b24a49c
Compare
…P via a generator modification it eventually changes the target P if it is not within boundaries and it connects the terminal if disconnected Signed-off-by: Pauline Jean-Marie <pauline.jean-marie@artelys.com>
Signed-off-by: Pauline Jean-Marie <pauline.jean-marie@artelys.com>
26ea3b3
to
efda0f8
Compare
action-api/src/main/java/com/powsybl/action/GeneratorAction.java
Outdated
Show resolved
Hide resolved
action-api/src/main/java/com/powsybl/action/StaticVarCompensatorAction.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Pauline Jean-Marie <pauline.jean-marie@artelys.com>
efda0f8
to
e01d3a7
Compare
action-api/src/main/java/com/powsybl/action/MultipleActionsActionBuilder.java
Show resolved
Hide resolved
action-api/src/main/java/com/powsybl/action/TerminalsConnectionAction.java
Outdated
Show resolved
Hide resolved
action-api/src/main/java/com/powsybl/action/TerminalsConnectionAction.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
Signed-off-by: Nicolas Rol <nicolas.rol@rte-france.com>
Signed-off-by: Nicolas Rol <nicolas.rol@rte-france.com>
Signed-off-by: Nicolas Rol <nicolas.rol@rte-france.com>
Signed-off-by: Nicolas Rol <nicolas.rol@rte-france.com>
iidm/iidm-modification/src/main/java/com/powsybl/iidm/modification/AbstractDisconnection.java
Show resolved
Hide resolved
iidm/iidm-modification/src/main/java/com/powsybl/iidm/modification/ConnectableConnection.java
Show resolved
Hide resolved
action-api/src/main/java/com/powsybl/action/TerminalsConnectionAction.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Nicolas Rol <nicolas.rol@rte-france.com>
iidm/iidm-modification/src/main/java/com/powsybl/iidm/modification/ConnectableConnection.java
Show resolved
Hide resolved
Signed-off-by: Nicolas Rol <nicolas.rol@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?
powsybl/powsybl-open-rao#880
What kind of change does this PR introduce?
Feature (first user will be open-rao)
What is the current behavior?
What is the new behavior (if this is a feature change)?
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)
Custom IIDM implementation maintainers should define these new methods for
Connectable
implementations:boolean connect(Predicate<Switch> isTypeSwitchToOperate, ThreeSides side)
;boolean disconnect(Predicate<Switch> isSwitchOpenable, ThreeSides side)
They should act as their counterparts without the
side
parameter, but only on the specified side.Also, for all users, the change of equals/hashcode could be considered as a breaking change but it will probably impact nobody.
Other information: