Skip to content

Commit 395d257

Browse files
committed
chore: update to newer powsybl api
for PositionVoltageLevelLayoutFactoryParameters instantiation Signed-off-by: Juan Munoz <[email protected]>
1 parent fbabde8 commit 395d257

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

service/src/main/java/org/lfenergy/compas/scl/auto/alignment/service/SclAutoAlignmentService.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,12 @@ private LayoutParameters getLayoutParameters() {
114114
}
115115

116116
private void configureLayout(SubstationGraph graph, LayoutParameters layoutParameters) {
117+
PositionVoltageLevelLayoutFactoryParameters parameters = new PositionVoltageLevelLayoutFactoryParameters();
118+
parameters.setFeederStacked(false)
119+
.setHandleShunts(true);
117120
new HorizontalSubstationLayoutFactory().create(graph,
118-
new PositionVoltageLevelLayoutFactory()
119-
.setFeederStacked(false)
120-
.setHandleShunts(true))
121-
.run(layoutParameters);
121+
new PositionVoltageLevelLayoutFactory(parameters)
122+
)
123+
.run(layoutParameters);
122124
}
123125
}

0 commit comments

Comments
 (0)