Package com.powsybl.iidm.network.util
Class Networks
- java.lang.Object
-
- com.powsybl.iidm.network.util.Networks
-
public final class Networks extends Object
- Author:
- Geoffroy Jamgotchian
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static void
dumpVariantId(Path workingDir, Network network)
static void
dumpVariantId(Path workingDir, String variantId)
static Terminal
getEquivalentTerminal(VoltageLevel voltageLevel, int node)
Return a terminal for the specified node.static Map<String,String>
getExecutionTags(Network network)
static Map<String,Set<Integer>>
getNodesByBus(VoltageLevel voltageLevel)
Return the list of nodes (N/B topology) for each bus of a the Bus view If a node is not associated to a bus, it is not included in any list.static boolean
isBusValid(int branchCount)
static void
printBalanceSummary(String title, Network network, Writer writer)
static void
printBalanceSummary(String title, Network network, org.slf4j.Logger logger)
Deprecated.UseprintBalanceSummary(String, Network, Writer)
instead.static void
printGeneratorsSetpointDiff(Network network, org.slf4j.Logger logger)
static void
runScript(Network network, Reader reader, Writer out)
-
-
-
Method Detail
-
isBusValid
public static boolean isBusValid(int branchCount)
-
dumpVariantId
public static void dumpVariantId(Path workingDir, String variantId) throws IOException
- Throws:
IOException
-
dumpVariantId
public static void dumpVariantId(Path workingDir, Network network) throws IOException
- Throws:
IOException
-
printBalanceSummary
@Deprecated public static void printBalanceSummary(String title, Network network, org.slf4j.Logger logger) throws IOException
Deprecated.UseprintBalanceSummary(String, Network, Writer)
instead.- Throws:
IOException
-
printBalanceSummary
public static void printBalanceSummary(String title, Network network, Writer writer) throws IOException
- Throws:
IOException
-
printGeneratorsSetpointDiff
public static void printGeneratorsSetpointDiff(Network network, org.slf4j.Logger logger)
-
getNodesByBus
public static Map<String,Set<Integer>> getNodesByBus(VoltageLevel voltageLevel)
Return the list of nodes (N/B topology) for each bus of a the Bus view If a node is not associated to a bus, it is not included in any list.- Parameters:
voltageLevel
- The voltage level to traverse- Returns:
- the list of nodes (N/B topology) for each bus of a Bus view
-
getEquivalentTerminal
public static Terminal getEquivalentTerminal(VoltageLevel voltageLevel, int node)
Return a terminal for the specified node. If a terminal is attached to the node, return this terminal. Otherwise, this method traverses the topology and return the first equivalent terminal found.- Parameters:
voltageLevel
- The voltage level to traversenode
- The starting node- Returns:
- A terminal for the specified node or null.
-
-