public static interface VoltageLevel.BusBreakerView
Modifier and Type | Interface and Description |
---|---|
static interface |
VoltageLevel.BusBreakerView.SwitchAdder |
Modifier and Type | Method and Description |
---|---|
Bus |
getBus(java.lang.String id)
Get a bus.
|
Bus |
getBus1(java.lang.String switchId)
Get the first bus to which the switch is connected.
|
Bus |
getBus2(java.lang.String switchId)
Get the second bus to which the switch is connected.
|
java.lang.Iterable<Bus> |
getBuses()
Get buses.
|
java.util.stream.Stream<Bus> |
getBusStream()
Get buses.
|
Switch |
getSwitch(java.lang.String switchId)
Get a switch.
|
int |
getSwitchCount()
Get the switch count
|
java.lang.Iterable<Switch> |
getSwitches()
Get switches.
|
java.util.stream.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(java.lang.String busId)
Remove a bus.
|
void |
removeSwitch(java.lang.String switchId)
Remove a switch.
|
java.lang.Iterable<Bus> getBuses()
Depends on the working variant if topology kind is NODE_BREAKER.
VariantManager
java.util.stream.Stream<Bus> getBusStream()
Depends on the working variant if topology kind is NODE_BREAKER.
VariantManager
Bus getBus(java.lang.String id)
Depends on the working variant if topology kind is NODE_BREAKER.
id
- the id of the bus.null
if not foundVariantManager
BusAdder newBus()
PowsyblException
- if the topology kind is NODE_BREAKERvoid removeBus(java.lang.String busId)
busId
- the bus idvoid removeAllBuses()
java.lang.Iterable<Switch> getSwitches()
java.util.stream.Stream<Switch> getSwitchStream()
int getSwitchCount()
void removeSwitch(java.lang.String switchId)
switchId
- the switch idvoid removeAllSwitches()
Bus getBus1(java.lang.String switchId)
Depends on the working variant if topology kind is NODE_BREAKER.
switchId
- the id of the switchPowsyblException
- if switch is not foundVariantManager
Bus getBus2(java.lang.String switchId)
Depends on the working variant if topology kind is NODE_BREAKER.
switchId
- the id of the switchPowsyblException
- if switch is not foundVariantManager
Switch getSwitch(java.lang.String switchId)
switchId
- the id of the switchnull
if not foundVoltageLevel.BusBreakerView.SwitchAdder newSwitch()
PowsyblException
- if the topology kind is NODE_BREAKER