Package com.powsybl.iidm.network
Interface VoltageLevel.BusBreakerView
- Enclosing interface:
- VoltageLevel
public static interface VoltageLevel.BusBreakerView
A bus/breaker view of the topology.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptionGet a bus.Get the first bus to which the switch is connected.Get the second bus to which the switch is connected.int
Get the bus count.getBuses()
Get buses.default Collection<Bus>
getBusesFromBusViewBusId
(String mergedBusId) Get buses of the current view (bus-breaker) contained in the given bus-view bus.Get buses.getBusStreamFromBusViewBusId
(String mergedBusId) Get a stream of buses of the current view (bus-breaker) contained in the given bus-view bus.Get a switch.int
Get the switch countGet switches.Get switches.newBus()
Get a builder to create a new bus.Get a builer to create a new switch.void
Remove all buses.void
Remove all switches.void
Remove a bus.void
removeSwitch
(String switchId) Remove a switch.void
traverse
(Bus bus, VoltageLevel.BusBreakerView.TopologyTraverser traverser)
-
Method Details
-
getBuses
Get buses.Depends on the working variant if topology kind is NODE_BREAKER.
- See Also:
-
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
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
Remove a bus.- Parameters:
busId
- the bus id
-
removeAllBuses
void removeAllBuses()Remove all buses. -
getSwitches
Get switches. -
getSwitchStream
Get switches. -
getSwitchCount
int getSwitchCount()Get the switch count -
removeSwitch
Remove a switch.- Parameters:
switchId
- the switch id
-
removeAllSwitches
void removeAllSwitches()Remove all switches. -
getBus1
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
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
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
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
Get a switch.- Parameters:
switchId
- the id of the switch- Returns:
- the switch or
null
if not found
-
newSwitch
VoltageLevel.BusBreakerView.SwitchAdder newSwitch()Get a builer to create a new switch.- Throws:
PowsyblException
- if the topology kind is NODE_BREAKER
-
traverse
-