public static interface VoltageLevel.NodeBreakerView
Modifier and Type | Interface and Description |
---|---|
static interface |
VoltageLevel.NodeBreakerView.InternalConnection |
static interface |
VoltageLevel.NodeBreakerView.InternalConnectionAdder |
static interface |
VoltageLevel.NodeBreakerView.SwitchAdder |
static interface |
VoltageLevel.NodeBreakerView.Traverser |
Modifier and Type | Method and Description |
---|---|
BusbarSection |
getBusbarSection(String id)
Get a busbar section.
|
int |
getBusbarSectionCount()
Get the busbar section count.
|
Iterable<BusbarSection> |
getBusbarSections()
Get busbar sections.
|
Stream<BusbarSection> |
getBusbarSectionStream()
Get busbar sections.
|
int |
getInternalConnectionCount()
Get internal connection count.
|
Iterable<VoltageLevel.NodeBreakerView.InternalConnection> |
getInternalConnections()
Get internal connections.
|
Stream<VoltageLevel.NodeBreakerView.InternalConnection> |
getInternalConnectionStream()
Get internal connection stream.
|
default int |
getMaximumNodeIndex()
Get the highest index of used nodes (i.e. attached to an equipment, a switch or an internal connection) in the voltage level.
|
int |
getNode1(String switchId)
Get the first node to which a switch is connected.
|
int |
getNode2(String switchId)
Get the second node to which a switch is connected.
|
default int |
getNodeCount()
Deprecated.
Use
getMaximumNodeIndex() instead. |
int[] |
getNodes()
Get the list of nodes.
|
default Optional<Terminal> |
getOptionalTerminal(int node)
Get the terminal corresponding to the if the is valid.
|
Switch |
getSwitch(String switchId)
Get a switch.
|
int |
getSwitchCount()
Get the switch count.
|
Iterable<Switch> |
getSwitches()
Get switches.
|
Stream<Switch> |
getSwitchStream()
Get switches.
|
Terminal |
getTerminal(int node)
Get the terminal corresponding to the .
|
Terminal |
getTerminal1(String switchId)
Get the first terminal corresponding to the .
|
Terminal |
getTerminal2(String switchId)
Get the second terminal corresponding to the .
|
default boolean |
hasAttachedEquipment(int node)
Check if a
Connectable , a Switch or an VoltageLevel.NodeBreakerView.InternalConnection is attached to the given node. |
VoltageLevel.NodeBreakerView.SwitchAdder |
newBreaker()
Get a builder to create a new breaker.
|
BusbarSectionAdder |
newBusbarSection()
Get a builder to create a new busbar section.
|
VoltageLevel.NodeBreakerView.SwitchAdder |
newDisconnector()
Get a builder to create a new disconnector.
|
VoltageLevel.NodeBreakerView.InternalConnectionAdder |
newInternalConnection()
Get a builder to create a new switch.
|
VoltageLevel.NodeBreakerView.SwitchAdder |
newSwitch()
Get a builder to create a new switch.
|
default void |
removeInternalConnections(int node1,
int node2)
Remove all the internal connections between node1 and node2 (not orientated) if they exist.
|
void |
removeSwitch(String switchId)
Remove a switch.
|
void |
traverse(int node,
VoltageLevel.NodeBreakerView.Traverser traverser)
Performs a depth-first traversal of the topology graph,
starting from .
|
@Deprecated default int getNodeCount()
getMaximumNodeIndex()
instead.default int getMaximumNodeIndex()
int[] getNodes()
VoltageLevel.NodeBreakerView.SwitchAdder newSwitch()
VoltageLevel.NodeBreakerView.InternalConnectionAdder newInternalConnection()
int getInternalConnectionCount()
Iterable<VoltageLevel.NodeBreakerView.InternalConnection> getInternalConnections()
Stream<VoltageLevel.NodeBreakerView.InternalConnection> getInternalConnectionStream()
default void removeInternalConnections(int node1, int node2)
VoltageLevel.NodeBreakerView.SwitchAdder newBreaker()
VoltageLevel.NodeBreakerView.SwitchAdder newDisconnector()
int getNode1(String switchId)
switchId
- the id of the switchPowsyblException
- if switch is not foundint getNode2(String switchId)
switchId
- the id of the switchPowsyblException
- if switch is not foundTerminal getTerminal(int node)
PowsyblException
- if node is not found.default Optional<Terminal> getOptionalTerminal(int node)
PowsyblException
- if node is not valid.default boolean hasAttachedEquipment(int node)
Connectable
, a Switch
or an VoltageLevel.NodeBreakerView.InternalConnection
is attached to the given node.PowsyblException
- if node is not validTerminal getTerminal1(String switchId)
PowsyblException
- if switch is not found.Terminal getTerminal2(String switchId)
PowsyblException
- if switch is not found.Switch getSwitch(String switchId)
switchId
- the id the switchnull
if not foundint getSwitchCount()
void removeSwitch(String switchId)
switchId
- the switch idBusbarSectionAdder newBusbarSection()
Iterable<BusbarSection> getBusbarSections()
Stream<BusbarSection> getBusbarSectionStream()
int getBusbarSectionCount()
BusbarSection getBusbarSection(String id)
id
- the id of the busbar sectionvoid traverse(int node, VoltageLevel.NodeBreakerView.Traverser traverser)
Copyright © 2020. All rights reserved.