Class TopologyModificationUtils


  • public final class TopologyModificationUtils
    extends Object
    Author:
    Miora Vedelago
    • Method Detail

      • getUnusedOrderPositionsBefore

        public static Optional<org.apache.commons.lang3.Range<Integer>> getUnusedOrderPositionsBefore​(BusbarSection bbs)
        Get all the unused positions before the lowest used position on the busbar section bbs. It is a range between the maximum used position on the busbar section with the highest section index lower than the section index of the given busbar section and the minimum position on the given busbar section. For two busbar sections with following indexes BBS1 with used orders 1,2,3 and BBS2 with used orders 7,8, this method applied to BBS2 will return a range from 4 to 6.
      • getUnusedOrderPositionsAfter

        public static Optional<org.apache.commons.lang3.Range<Integer>> getUnusedOrderPositionsAfter​(BusbarSection bbs)
        Get all the unused positions after the highest used position on the busbar section bbs. It is a range between the minimum used position on the busbar section with the lowest section index higher than the section index of the given busbar section and the maximum position on the given busbar section. For two busbar sections with following indexes BBS1 with used orders 1,2,3 and BBS2 with used orders 7,8, this method applied to BBS1 will return a range from 4 to 6.
      • getFeederPositions

        public static Set<Integer> getFeederPositions​(VoltageLevel voltageLevel)
        Utility method to get all the taken feeder positions on a voltage level.
      • getFeederPositionsByConnectable

        public static Map<String,​List<Integer>> getFeederPositionsByConnectable​(VoltageLevel voltageLevel)
        Utility method to get all the taken feeder positions on a voltage level by connectable.
      • getFirstBusbarSection

        public static BusbarSection getFirstBusbarSection​(VoltageLevel voltageLevel)
        Method returning the first busbar section with the lowest BusbarSectionIndex if there are the BusbarSectionPosition extensions and the first busbar section found otherwise.