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

Refactor disconnection events #197

Merged
merged 16 commits into from
Apr 21, 2023
Merged

Refactor disconnection events #197

merged 16 commits into from
Apr 21, 2023

Conversation

Lisrte
Copy link
Contributor

@Lisrte Lisrte commented Apr 5, 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)

Does this PR already have an issue describing the problem?

What kind of change does this PR introduce?

Refactor

What is the current behavior?

What is the new behavior (if this is a feature change)?
In DSL, replace EventSetPointBoolean and EventQuadripoleDisconnection with a common tag Disconnect
Add the possibility to disconnect transformer and load

Does this PR introduce a breaking change or deprecate an API?

  • The Breaking Change or Deprecated label has been added
  • The migration guide has been updated in the github wiki (What changes might users need to make in their application due to this PR?)

Other information:

@Lisrte Lisrte self-assigned this Apr 5, 2023
@Lisrte Lisrte requested review from flo-dup and gautierbureau April 5, 2023 11:50
Lisrte added 12 commits April 19, 2023 16:29
…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>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
@Lisrte Lisrte force-pushed the refactor_disconnection_events branch from 2ebbd29 to a322bd0 Compare April 19, 2023 14:48
this.stateEvent = stateEvent;
private final boolean disconnect;

public EventSetPointBoolean(Generator equipment, double startTime, boolean disconnect) {
Copy link
Contributor

Choose a reason for hiding this comment

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

@gautierbureau I'm wondering if we shouldn't put Injection<?> instead, to include more equipments (SVC, converter stations, shunt compensators, dangling lines, busbar sections, batteries). Or are we interested only in disconnecting loads and generators so far?

Lisrte added 3 commits April 20, 2023 14:35
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>
@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

87.5% 87.5% Coverage
0.4% 0.4% Duplication

@flo-dup flo-dup merged commit 1cb3c18 into main Apr 21, 2023
@flo-dup flo-dup deleted the refactor_disconnection_events branch April 21, 2023 14:14
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.

3 participants