-
Notifications
You must be signed in to change notification settings - Fork 13
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 parameter to disable/enable internal 2wt #594
Conversation
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: Sophie Frasnedo <sophie.frasnedo@rte-france.com>
// Run layout with specific parameters and compare subsequent SVG with reference | ||
PositionVoltageLevelLayoutFactoryParameters pvllfParameters = new PositionVoltageLevelLayoutFactoryParameters() | ||
.setSubstituteInternalMiddle2wtByEquipmentNodes(false); | ||
new PositionVoltageLevelLayoutFactory(new PositionFromExtension(), pvllfParameters).create(g).run(this.layoutParameters); |
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.
new PositionVoltageLevelLayoutFactory(new PositionFromExtension(), pvllfParameters).create(g).run(this.layoutParameters); | |
new PositionVoltageLevelLayoutFactory(pvllfParameters).create(g).run(this.layoutParameters); |
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 prefer to put this explicitly, as this default choice does not seem clear to me. And I'd like to remove one day that constructor which assumes that it should be a PositionFromExtension by default (without any javadoc specifying it!)
...le-line-diagram-core/src/test/java/com/powsybl/sld/iidm/TestInternalBranchesNodeBreaker.java
Outdated
Show resolved
Hide resolved
…/powsybl/sld/iidm/TestInternalBranchesNodeBreaker.java Co-authored-by: Sophie Frasnedo <93923177+So-Fras@users.noreply.github.com> Signed-off-by: Florian Dupuy <66690739+flo-dup@users.noreply.github.com>
Quality Gate passedIssues Measures |
Please check if the PR fulfills these requirements
Does this PR already have an issue describing the problem?
No
What kind of change does this PR introduce?
Bug fix / feature
What is the current behavior?
Internal two-winding transformers and phase-shift transformers are added in VoltageLevelGraph as
EquipmentNode
s, hence are withing an InternCell or ExternCell.What is the new behavior (if this is a feature change)?
Internal two-winding transformers and phase-shift transformers are added in VoltageLevelGraph as
FeederNode
s, but can be later replaced byEquipmentNode
s with VoltageLevelLayoutFactoryParameter::setSubstituteInternalMiddle2wtByEquipmentNodes`. This parameter is true by default.Other information:
NetworkGraphBuilder::handleConnectedComponents
(together with child methodNetworkGraphBuilder::ensureOneBusInConnectedComponent
) needed to move toGraphRefiner
in order not to interfere with this feature