Interface VoltageLevel.BusBreakerView

Enclosing interface:
VoltageLevel

public static interface VoltageLevel.BusBreakerView
A bus/breaker view of the topology.
  • Method Details

    • getBuses

      Iterable<Bus> getBuses()
      Get buses.

      Depends on the working variant if topology kind is NODE_BREAKER.

      See Also:
    • getBusStream

      Stream<Bus> getBusStream()
      Get buses.

      Depends on the working variant if topology kind is NODE_BREAKER.

      See Also:
    • getBusCount

      int getBusCount()
      Get the bus count.

      Depends on the working variant if topology kind is NODE_BREAKER.

      See Also:
    • 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:
    • 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.
    • getSwitches

      Iterable<Switch> getSwitches()
      Get switches.
    • 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:
    • 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:
    • getBusesFromBusViewBusId

      default Collection<Bus> getBusesFromBusViewBusId(String mergedBusId)
      Get buses of the current view (bus-breaker) contained in the given bus-view bus. If the given bus-view bus does not exist, throw an exception.
    • getBusStreamFromBusViewBusId

      default Stream<Bus> getBusStreamFromBusViewBusId(String mergedBusId)
      Get a stream of buses of the current view (bus-breaker) contained in the given bus-view bus. If the given bus-view bus does not exist, throw an exception.
    • getSwitch

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

      Get a builder to create a new switch.
      Throws:
      PowsyblException - if the topology kind is NODE_BREAKER
    • traverse

      void traverse(Bus bus, VoltageLevel.BusBreakerView.TopologyTraverser traverser)