Skip to content
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 Current limit two levels automaton #209

Merged
merged 40 commits into from
May 30, 2023
Merged

Add Current limit two levels automaton #209

merged 40 commits into from
May 30, 2023

Conversation

Lisrte
Copy link
Contributor

@Lisrte Lisrte commented Apr 21, 2023

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce?

Feature

Lisrte added 23 commits April 5, 2023 13:17
…ripole

Handle quadripole disconnection

Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Add UT

Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Add disconnection UT
Add default model Load

Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Fix UT

Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Add Tap changer blocking automaton

Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Add UT

Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
@Lisrte Lisrte requested a review from flo-dup April 21, 2023 07:37
@Lisrte Lisrte self-assigned this Apr 21, 2023
Lisrte added 5 commits May 4, 2023 13:51
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
# Conflicts:
#	dynawaltz/src/main/java/com/powsybl/dynawaltz/models/automatons/CurrentLimitAutomaton.java
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
# Conflicts:
#	dynawaltz-dsl/src/main/groovy/com/powsybl/dynawaltz/dsl/AbstractPureDynamicGroovyExtension.groovy
#	dynawaltz-dsl/src/main/groovy/com/powsybl/dynawaltz/dsl/automatons/AbstractPhaseShifterModelBuilder.groovy
#	dynawaltz-dsl/src/main/groovy/com/powsybl/dynawaltz/dsl/automatons/PhaseShifterIAutomatonGroovyExtension.groovy
#	dynawaltz-dsl/src/main/groovy/com/powsybl/dynawaltz/dsl/automatons/PhaseShifterPAutomatonGroovyExtension.groovy
#	dynawaltz-dsl/src/main/groovy/com/powsybl/dynawaltz/dsl/automatons/TapChangerAutomatonGroovyExtension.groovy
#	dynawaltz-dsl/src/main/groovy/com/powsybl/dynawaltz/dsl/automatons/TapChangerBlockingAutomatonGroovyExtension.groovy
#	dynawaltz-dsl/src/main/groovy/com/powsybl/dynawaltz/dsl/events/EventDisconnectionGroovyExtension.groovy
#	dynawaltz-dsl/src/main/groovy/com/powsybl/dynawaltz/dsl/models/automatons/CurrentLimitAutomatonGroovyExtension.groovy
#	dynawaltz-dsl/src/main/groovy/com/powsybl/dynawaltz/dsl/models/loads/LoadOneTransformerTapChangerGroovyExtension.groovy
#	dynawaltz-dsl/src/main/groovy/com/powsybl/dynawaltz/dsl/models/loads/LoadTwoTransformersGroovyExtension.groovy
#	dynawaltz-dsl/src/main/groovy/com/powsybl/dynawaltz/dsl/models/loads/LoadTwoTransformersTapChangersGroovyExtension.groovy
#	dynawaltz-dsl/src/test/java/com/powsybl/dynawaltz/dsl/DynamicModelsSupplierTest.java
#	dynawaltz-dsl/src/test/java/com/powsybl/dynawaltz/dsl/EventModelsSupplierTest.java
#	dynawaltz-dsl/src/test/resources/dynamicModels/tapChangerBlocking.groovy
#	dynawaltz-dsl/src/test/resources/dynamicModels/tapChangerBusException.groovy
#	dynawaltz-dsl/src/test/resources/dynamicModels/tapChangerCompatibleException.groovy
#	dynawaltz-dsl/src/test/resources/ieee57-disconnectgenerator/dynawaltz-inputs/powsybl_dynawaltz.dyd
#	dynawaltz/src/main/java/com/powsybl/dynawaltz/DynaWaltzContext.java
#	dynawaltz/src/main/java/com/powsybl/dynawaltz/models/AbstractBlackBoxModel.java
#	dynawaltz/src/main/java/com/powsybl/dynawaltz/models/TransformerSide.java
#	dynawaltz/src/main/java/com/powsybl/dynawaltz/models/automatons/TapChangerAutomaton.java
#	dynawaltz/src/main/java/com/powsybl/dynawaltz/models/automatons/TapChangerBlockingAutomaton.java
#	dynawaltz/src/main/java/com/powsybl/dynawaltz/models/automatons/phaseshifters/PhaseShifterIAutomaton.java
#	dynawaltz/src/main/java/com/powsybl/dynawaltz/models/events/DisconnectableEquipment.java
#	dynawaltz/src/main/java/com/powsybl/dynawaltz/models/events/EventQuadripoleDisconnection.java
#	dynawaltz/src/main/java/com/powsybl/dynawaltz/models/events/EventSetPointBoolean.java
#	dynawaltz/src/main/java/com/powsybl/dynawaltz/models/generators/AbstractGeneratorModel.java
#	dynawaltz/src/main/java/com/powsybl/dynawaltz/models/generators/DefaultGeneratorModel.java
#	dynawaltz/src/main/java/com/powsybl/dynawaltz/models/generators/GeneratorModel.java
#	dynawaltz/src/main/java/com/powsybl/dynawaltz/models/generators/OmegaRefGeneratorModel.java
#	dynawaltz/src/main/java/com/powsybl/dynawaltz/models/loads/AbstractLoad.java
#	dynawaltz/src/main/java/com/powsybl/dynawaltz/models/loads/LoadOneTransformer.java
#	dynawaltz/src/main/java/com/powsybl/dynawaltz/models/loads/LoadOneTransformerTapChanger.java
#	dynawaltz/src/main/java/com/powsybl/dynawaltz/models/loads/LoadTwoTransformers.java
#	dynawaltz/src/main/java/com/powsybl/dynawaltz/models/loads/LoadTwoTransformersTapChangers.java
#	dynawaltz/src/main/java/com/powsybl/dynawaltz/models/loads/LoadWithTransformers.java
#	dynawaltz/src/main/java/com/powsybl/dynawaltz/models/transformers/DefaultTransformerModel.java
#	dynawaltz/src/main/java/com/powsybl/dynawaltz/models/transformers/TapChangerModel.java
#	dynawaltz/src/main/java/com/powsybl/dynawaltz/models/transformers/TransformerFixedRatio.java
#	dynawaltz/src/main/java/com/powsybl/dynawaltz/models/transformers/TransformerModel.java
#	dynawaltz/src/test/java/com/powsybl/dynawaltz/models/lines/StandardLineTest.java
#	dynawaltz/src/test/java/com/powsybl/dynawaltz/xml/CustomParameterResolver.java
#	dynawaltz/src/test/java/com/powsybl/dynawaltz/xml/DisconnectEventXmlTest.java
#	dynawaltz/src/test/java/com/powsybl/dynawaltz/xml/DynaWaltzTestUtil.java
#	dynawaltz/src/test/java/com/powsybl/dynawaltz/xml/DynamicModelsXmlTest.java
#	dynawaltz/src/test/java/com/powsybl/dynawaltz/xml/EventXmlTest.java
#	dynawaltz/src/test/java/com/powsybl/dynawaltz/xml/LoadsModelXmlTest.java
#	dynawaltz/src/test/java/com/powsybl/dynawaltz/xml/MappedParameterContext.java
#	dynawaltz/src/test/java/com/powsybl/dynawaltz/xml/PhaseShiftersXmlTest.java
#	dynawaltz/src/test/java/com/powsybl/dynawaltz/xml/TapChangerAutomatonExceptionsXmlTest.java
#	dynawaltz/src/test/java/com/powsybl/dynawaltz/xml/TapChangerAutomatonXmlTest.java
#	dynawaltz/src/test/java/com/powsybl/dynawaltz/xml/TapChangerBlockingAutomatonXmlTest.java
#	dynawaltz/src/test/java/com/powsybl/dynawaltz/xml/TapChangerBlockingToTapChangerAutomatonXmlTest.java
#	dynawaltz/src/test/resources/disconnect_dyd.xml
#	dynawaltz/src/test/resources/events.xml
#	dynawaltz/src/test/resources/phase_shifter_i_dyd.xml
#	dynawaltz/src/test/resources/tap_changer_blocking_dyd.xml
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Lisrte and others added 7 commits May 9, 2023 16:32
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: Lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Base automatically changed from connect_cla_to_quadripole to main May 25, 2023 13:28
Signed-off-by: Lisrte <laurent.issertial@rte-france.com>
}

public CurrentLimitTwoLevelsAutomaton(String dynamicModelId, String parameterSetId, Branch<?> measuredQuadripole, Side measuredSide, Branch<?> secondMeasuredQuadripole, Side secondMeasuredSide, String lib) {
this(dynamicModelId, parameterSetId, measuredQuadripole, measuredSide, secondMeasuredQuadripole, secondMeasuredSide, measuredQuadripole, lib);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fact that the controlled equipment is the first measured quadripole is not very intuitive, shouldn't we force the user to choose a controlled equipment?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gautierbureau what do you think? is that a classical thing that the controlled equipment is the first measured quadripole?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed with @gautierbureau, better to make this mandatory. Made that mandatory for basic CLA in the groovy too, to avoid confusion.

flo-dup added 4 commits May 26, 2023 16:46
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@flo-dup flo-dup merged commit 283f36f into main May 30, 2023
@flo-dup flo-dup deleted the add_cla_two_levels branch May 30, 2023 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants