Skip to content

Commit

Permalink
chore: update to newer powsybl api
Browse files Browse the repository at this point in the history
for PositionVoltageLevelLayoutFactoryParameters instantiation

Signed-off-by: Juan Munoz <[email protected]>
  • Loading branch information
juancho0202 committed Apr 18, 2024
1 parent fbabde8 commit 395d257
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,12 @@ private LayoutParameters getLayoutParameters() {
}

private void configureLayout(SubstationGraph graph, LayoutParameters layoutParameters) {
PositionVoltageLevelLayoutFactoryParameters parameters = new PositionVoltageLevelLayoutFactoryParameters();
parameters.setFeederStacked(false)
.setHandleShunts(true);
new HorizontalSubstationLayoutFactory().create(graph,
new PositionVoltageLevelLayoutFactory()
.setFeederStacked(false)
.setHandleShunts(true))
.run(layoutParameters);
new PositionVoltageLevelLayoutFactory(parameters)
)
.run(layoutParameters);
}
}

0 comments on commit 395d257

Please sign in to comment.