-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
dynawaltz/src/main/java/com/powsybl/dynawaltz/models/generators/DefaultGeneratorModel.java
Outdated
Show resolved
Hide resolved
…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>
2ebbd29
to
a322bd0
Compare
...sl/src/main/groovy/com/powsybl/dynawaltz/dsl/events/EventDisconnectionGroovyExtension.groovy
Outdated
Show resolved
Hide resolved
dynawaltz/src/main/java/com/powsybl/dynawaltz/DynaWaltzContext.java
Outdated
Show resolved
Hide resolved
dynawaltz/src/main/java/com/powsybl/dynawaltz/models/events/EventQuadripoleDisconnection.java
Outdated
Show resolved
Hide resolved
this.stateEvent = stateEvent; | ||
private final boolean disconnect; | ||
|
||
public EventSetPointBoolean(Generator equipment, double startTime, boolean disconnect) { |
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.
@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?
dynawaltz/src/main/java/com/powsybl/dynawaltz/models/events/EventSetPointBoolean.java
Outdated
Show resolved
Hide resolved
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>
Kudos, SonarCloud Quality Gate passed! |
Please check if the PR fulfills these requirements
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?
Other information: