-
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
IIDM ThreeWindingsTransformer RatedU0 modification #3016
IIDM ThreeWindingsTransformer RatedU0 modification #3016
Conversation
Signed-off-by: José Antonio Marqués <marquesja@aia.es>
Signed-off-by: José Antonio Marqués <marquesja@aia.es>
Signed-off-by: José Antonio Marqués <marquesja@aia.es>
iidm/iidm-api/src/main/java/com/powsybl/iidm/network/ThreeWindingsTransformer.java
Outdated
Show resolved
Hide resolved
iidm/iidm-impl/src/main/java/com/powsybl/iidm/network/impl/ThreeWindingsTransformerImpl.java
Show resolved
Hide resolved
...on/src/test/java/com/powsybl/iidm/modification/TestThreeWindingsTransformerModification.java
Outdated
Show resolved
Hide resolved
Signed-off-by: José Antonio Marqués <marquesja@aia.es>
private final String transformerId; | ||
private final Double ratedU0; | ||
|
||
public ThreeWindingsTransformerModification(String transformerId, Double ratedU0) { |
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.
I am not sure we need a Double
here.
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.
Better double as only one attribute can be modified. Changed.
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.
Thanks a lot, working very well!
Signed-off-by: José Antonio Marqués <marquesja@aia.es>
Quality Gate passedIssues Measures |
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?
Feature
What is the current behavior?
What is the new behavior (if this is a feature change)?
Allows to modify the
ratedU0
attribute of a threeWindingsTransformer.As the structural ratio of the three legs must be preserved, the ratedU of the three legs must be adjusted.
To set the
ratedU0
attribute I added a new method,setRatedU0
, in the threeWindingsTransformer interface.I feel more comfortable with the previous interface where
ratedU0
can only be set when the transformer is created.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)
Other information: