Interface VoltageLevel.BusBreakerView

    • Method Detail

      • getBuses

        Iterable<Bus> getBuses()
        Get buses.

        Depends on the working variant if topology kind is NODE_BREAKER.

        See Also:
        VariantManager
      • getBusStream

        Stream<Bus> getBusStream()
        Get buses.

        Depends on the working variant if topology kind is NODE_BREAKER.

        See Also:
        VariantManager
      • getBus

        Bus getBus​(String id)
        Get a bus.

        Depends on the working variant if topology kind is NODE_BREAKER.

        Parameters:
        id - the id of the bus.
        Returns:
        the bus or null if not found
        See Also:
        VariantManager
      • newBus

        BusAdder newBus()
        Get a builder to create a new bus.
        Throws:
        PowsyblException - if the topology kind is NODE_BREAKER
      • removeBus

        void removeBus​(String busId)
        Remove a bus.
        Parameters:
        busId - the bus id
      • removeAllBuses

        void removeAllBuses()
        Remove all buses.
      • getSwitchStream

        Stream<Switch> getSwitchStream()
        Get switches.
      • getSwitchCount

        int getSwitchCount()
        Get the switch count
      • removeSwitch

        void removeSwitch​(String switchId)
        Remove a switch.
        Parameters:
        switchId - the switch id
      • removeAllSwitches

        void removeAllSwitches()
        Remove all switches.
      • getBus1

        Bus getBus1​(String switchId)
        Get the first bus to which the switch is connected.

        Depends on the working variant if topology kind is NODE_BREAKER.

        Parameters:
        switchId - the id of the switch
        Throws:
        PowsyblException - if switch is not found
        See Also:
        VariantManager
      • getBus2

        Bus getBus2​(String switchId)
        Get the second bus to which the switch is connected.

        Depends on the working variant if topology kind is NODE_BREAKER.

        Parameters:
        switchId - the id of the switch
        Throws:
        PowsyblException - if switch is not found
        See Also:
        VariantManager
      • getSwitch

        Switch getSwitch​(String switchId)
        Get a switch.
        Parameters:
        switchId - the id of the switch
        Returns:
        the switch or null if not found