Package com.powsybl.iidm.network
Interface VoltageLevel.BusBreakerView
-
- All Known Subinterfaces:
VoltageLevelAdapter.BusBreakerViewExt
- Enclosing interface:
- VoltageLevel
public static interface VoltageLevel.BusBreakerView
A bus/breaker view of the topology.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
VoltageLevel.BusBreakerView.SwitchAdder
static interface
VoltageLevel.BusBreakerView.TopologyTraverser
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Bus
getBus(String id)
Get a bus.Bus
getBus1(String switchId)
Get the first bus to which the switch is connected.Bus
getBus2(String switchId)
Get the second bus to which the switch is connected.Iterable<Bus>
getBuses()
Get buses.Stream<Bus>
getBusStream()
Get buses.Switch
getSwitch(String switchId)
Get a switch.int
getSwitchCount()
Get the switch countIterable<Switch>
getSwitches()
Get switches.Stream<Switch>
getSwitchStream()
Get switches.BusAdder
newBus()
Get a builder to create a new bus.VoltageLevel.BusBreakerView.SwitchAdder
newSwitch()
Get a builer to create a new switch.void
removeAllBuses()
Remove all buses.void
removeAllSwitches()
Remove all switches.void
removeBus(String busId)
Remove a bus.void
removeSwitch(String switchId)
Remove a switch.void
traverse(Bus bus, VoltageLevel.BusBreakerView.TopologyTraverser traverser)
-
-
-
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.
-
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
-
newSwitch
VoltageLevel.BusBreakerView.SwitchAdder newSwitch()
Get a builer to create a new switch.- Throws:
PowsyblException
- if the topology kind is NODE_BREAKER
-
traverse
void traverse(Bus bus, VoltageLevel.BusBreakerView.TopologyTraverser traverser)
-
-