-
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
Simplify synchronous generator models declaration #146
Conversation
881a20c
to
16f3a45
Compare
...src/main/groovy/com/powsybl/dynawaltz/dsl/dynamicmodels/GeneratorModelGroovyExtension.groovy
Outdated
Show resolved
Hide resolved
16f3a45
to
140fc29
Compare
The only thing that distinguishes a synchronous generator from another is the lib. Then it's just an attribute Signed-off-by: BAUDRIER Dimitri <dimitri.baudrier@rte-france.com>
Signed-off-by: BAUDRIER Dimitri <dimitri.baudrier@rte-france.com>
140fc29
to
d527920
Compare
…n file. Problem: right order of generators is not guaranteed Signed-off-by: BAUDRIER Dimitri <dimitri.baudrier@rte-france.com>
# Conflicts: # dynawaltz-dsl/src/main/groovy/com/powsybl/dynawaltz/dsl/models/generators/GeneratorSynchronousFourWindingsGroovyExtension.groovy # dynawaltz-dsl/src/main/groovy/com/powsybl/dynawaltz/dsl/models/generators/GeneratorSynchronousFourWindingsProportionalRegulationsGroovyExtension.groovy # dynawaltz-dsl/src/main/groovy/com/powsybl/dynawaltz/dsl/models/generators/GeneratorSynchronousFourWindingsProportionalRegulationsStepPmGroovyExtension.groovy # dynawaltz-dsl/src/main/groovy/com/powsybl/dynawaltz/dsl/models/generators/GeneratorSynchronousThreeWindingsGroovyExtension.groovy # dynawaltz-dsl/src/main/groovy/com/powsybl/dynawaltz/dsl/models/generators/GeneratorSynchronousThreeWindingsProportionalRegulationsGroovyExtension.groovy # dynawaltz-dsl/src/test/java/com/powsybl/dynawaltz/dsl/DynaWaltzGroovyDynamicModelsSupplierTest.java
Signed-off-by: BAUDRIER Dimitri <dimitri.baudrier@rte-france.com>
Signed-off-by: BAUDRIER Dimitri <dimitri.baudrier@rte-france.com>
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.
Nice!
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.
A couple of remarks after some further thinking
@AutoService(DynamicModelGroovyExtension.class) | ||
class GeneratorModelGroovyExtension implements DynamicModelGroovyExtension { | ||
|
||
private static final String GENERATORS_CONFIG = "synchronous_generators.cfg"; |
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.
How could we extend this, to add more generators than current ones?
It would be more flexible to be able to set that file.
Signed-off-by: BAUDRIER Dimitri <dimitri.baudrier@rte-france.com>
Kudos, SonarCloud Quality Gate passed! |
Please check if the PR fulfills these requirements (please use
'[x]'
to check the checkboxes, or submit the PR and then click the checkboxes)What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Creating synchronous generator model is redundant, we want to have a way to allocate as many different synchronous generators as necessary, but with a configuration file.
It's a proposal on how to answer to this problem.