-
Notifications
You must be signed in to change notification settings - Fork 0
get all voltage level connections #277
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
Changes from 23 commits
98d2a6e
397e97c
884a664
732185b
46700f8
6b9b5a4
6d0e15e
01cbb74
80a13c0
7774634
0305db9
84cff31
a971d0c
1e5770b
f63c963
7e6fd6b
c966b59
c2a535e
12d9d9f
fed0ec8
c112b6a
34b31cc
5a615ba
8163bb1
8bcf99a
fff52f6
c40fe02
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
* Copyright (c) 2025, RTE (http://www.rte-france.com) | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
package org.gridsuite.network.map.dto.definition.voltagelevel; | ||
|
||
import com.powsybl.iidm.network.ThreeSides; | ||
import org.gridsuite.network.map.dto.definition.extension.ConnectablePositionInfos; | ||
|
||
/** | ||
* @author Etienne Lesot <etienne.lesot at rte-france.com> | ||
*/ | ||
public record FeederBayInfos(String busbarSectionId, ConnectablePositionInfos connectablePositionInfos, ThreeSides connectionSide) { } |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -7,12 +7,14 @@ | |||||
package org.gridsuite.network.map.dto.utils; | ||||||
|
||||||
import com.powsybl.iidm.network.*; | ||||||
import com.powsybl.iidm.network.extensions.ConnectablePosition; | ||||||
import com.powsybl.math.graph.TraversalType; | ||||||
import lombok.NonNull; | ||||||
import org.gridsuite.network.map.dto.common.ReactiveCapabilityCurveMapData; | ||||||
import org.gridsuite.network.map.dto.common.TapChangerData; | ||||||
import org.gridsuite.network.map.dto.common.TapChangerStepData; | ||||||
import org.gridsuite.network.map.dto.definition.extension.BusbarSectionFinderTraverser; | ||||||
import org.springframework.lang.NonNull; | ||||||
import org.gridsuite.network.map.dto.definition.extension.ConnectablePositionInfos; | ||||||
|
||||||
import java.util.Collection; | ||||||
import java.util.List; | ||||||
|
@@ -39,6 +41,39 @@ public static void setIfNotNan(@NonNull final DoubleConsumer setter, final doubl | |||||
} | ||||||
} | ||||||
|
||||||
private static ConnectablePosition.Feeder getFeederInfos(Identifiable<?> identifiable, int index) { | ||||||
|
private static ConnectablePosition.Feeder getFeederInfos(Identifiable<?> identifiable, int index) { | |
private static ConnectablePosition.Feeder getFeederInfos(Identifiable<?> identifiable, ThreeSides side) { |
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.
With the index we can handle injections and branches, but the ThreeSides type cannot manage that
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.
Discussed with Ghazwa: we'll use an enum like this one https://github.com/gridsuite/network-modification/blob/d7afbc7e5a5f1897c0c6d87e3415e69cf84f3953/src/main/java/org/gridsuite/modification/utils/ModificationUtils.java#L66
Uh oh!
There was an error while loading. Please reload this page.