java.lang.Object
com.powsybl.iidm.network.util.TieLineUtil
- Author:
- Luma Zamarreño <zamarrenolm at aia.es>, José Antonio Marqués <marquesja at aia.es>
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
buildMergedId
(String id1, String id2) static String
buildMergedName
(String id1, String id2, String name1, String name2) static void
findAndAssociateDanglingLines
(DanglingLine candidateDanglingLine, Function<String, List<DanglingLine>> getDanglingLinesByPairingKey, BiConsumer<DanglingLine, DanglingLine> associateDanglingLines) If it exists, find the dangling line in the merging network that should be associated to a candidate dangling line in the network to be merged.static double
getB1
(DanglingLine dl1, DanglingLine dl2) static double
getB2
(DanglingLine dl1, DanglingLine dl2) static double
getG1
(DanglingLine dl1, DanglingLine dl2) static double
getG2
(DanglingLine dl1, DanglingLine dl2) static Optional<DanglingLine>
getPairedDanglingLine
(DanglingLine danglingLine) Retrieve, if it exists, the dangling line paired to the given one.static double
getR
(DanglingLine dl1, DanglingLine dl2) static double
getX
(DanglingLine dl1, DanglingLine dl2) static void
mergeDifferentAliases
(DanglingLine dl1, DanglingLine dl2, Map<String, String> aliases, Reporter reporter) static void
mergeIdenticalAliases
(DanglingLine dl1, DanglingLine dl2, Map<String, String> aliases) static void
mergeIdenticalAliases
(DanglingLine dl1, DanglingLine dl2, Map<String, String> aliases, Reporter reporter) static void
mergeProperties
(DanglingLine dl1, DanglingLine dl2, Properties properties) static void
mergeProperties
(DanglingLine dl1, DanglingLine dl2, Properties properties, Reporter reporter)
-
Method Details
-
buildMergedId
-
buildMergedName
-
mergeProperties
-
mergeProperties
public static void mergeProperties(DanglingLine dl1, DanglingLine dl2, Properties properties, Reporter reporter) -
mergeIdenticalAliases
public static void mergeIdenticalAliases(DanglingLine dl1, DanglingLine dl2, Map<String, String> aliases) -
mergeIdenticalAliases
public static void mergeIdenticalAliases(DanglingLine dl1, DanglingLine dl2, Map<String, String> aliases, Reporter reporter) -
mergeDifferentAliases
public static void mergeDifferentAliases(DanglingLine dl1, DanglingLine dl2, Map<String, String> aliases, Reporter reporter) -
findAndAssociateDanglingLines
public static void findAndAssociateDanglingLines(DanglingLine candidateDanglingLine, Function<String, List<DanglingLine>> getDanglingLinesByPairingKey, BiConsumer<DanglingLine, DanglingLine> associateDanglingLines) If it exists, find the dangling line in the merging network that should be associated to a candidate dangling line in the network to be merged. Two dangling lines in different IGM should be associated if: - they have the same non-null pairing key and are the only dangling lines to have this pairing key in their respective networks OR - they have the same non-null pairing key and are the only connected dangling lines to have this pairing key in their respective networks- Parameters:
candidateDanglingLine
- candidate dangling line in the network to be mergedgetDanglingLinesByPairingKey
- function to retrieve dangling lines with a given pairing key in the merging network.associateDanglingLines
- function associating two dangling lines
-
getR
-
getX
-
getG1
-
getB1
-
getG2
-
getB2
-
getPairedDanglingLine
Retrieve, if it exists, the dangling line paired to the given one.
- Parameters:
danglingLine
- a dangling line- Returns:
- an Optional containing the dangling line paired to the given one
-