Class Networks


  • public final class Networks
    extends Object
    Author:
    Geoffroy Jamgotchian
    • Method Detail

      • isBusValid

        public static boolean isBusValid​(int branchCount)
      • 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 closest and equivalent terminal.
        Parameters:
        voltageLevel - The voltage level to traverse
        node - The starting node
        Returns:
        A terminal for the specified node or null.