Package com.powsybl.iidm.network
Interface VoltageLevel.NodeBreakerView
- Enclosing interface:
- VoltageLevel
public static interface VoltageLevel.NodeBreakerView
A node/breaker view of the topology.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
static interface
static interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptionGet a busbar section.int
Get the busbar section count.Get busbar sections.Get busbar sections.default double
getFictitiousP0
(int node) default double
getFictitiousQ0
(int node) int
Get internal connection count.Get internal connections.Get internal connection stream.default int
Get the highest index of used nodes (i.e. attached to an equipment, a switch or an internal connection) in the voltage level.int
Get the first node to which a switch is connected.int
Get the second node to which a switch is connected.getNodeInternalConnectedToStream
(int node) Get the indices of the nodes connected with an internal connections to thenode
.int[]
getNodes()
Get the list of nodes.getNodesInternalConnectedTo
(int node) Get the internal connections connected to thenode
.getOptionalTerminal
(int node) Get the terminal corresponding to thenode
if thenode
is valid.Get a switch.int
Get the switch count.Get switches.getSwitches
(int node) Get the switches connected to thenode
.Get switches.getSwitchStream
(int node) Get the switches connected to thenode
.getTerminal
(int node) Get the terminal corresponding to thenode
.getTerminal1
(String switchId) Get the first terminal corresponding to theswitchId
.getTerminal2
(String switchId) Get the second terminal corresponding to theswitchId
.default boolean
hasAttachedEquipment
(int node) Check if aConnectable
, aSwitch
or anVoltageLevel.NodeBreakerView.InternalConnection
is attached to the given node.Get a builder to create a new breaker.Get a builder to create a new busbar section.Get a builder to create a new disconnector.Get a builder to create a new switch.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.default VoltageLevel.NodeBreakerView
setFictitiousP0
(int node, double p0) default VoltageLevel.NodeBreakerView
setFictitiousQ0
(int node, double q0) void
traverse
(int[] node, VoltageLevel.NodeBreakerView.TopologyTraverser traverser) Performs a depth-first traversal of the topology graph, starting from each node in arraynodes
.void
traverse
(int node, VoltageLevel.NodeBreakerView.TopologyTraverser traverser) Performs a depth-first traversal of the topology graph, starting fromnode
.
-
Method Details
-
getFictitiousP0
default double getFictitiousP0(int node) -
setFictitiousP0
-
getFictitiousQ0
default double getFictitiousQ0(int node) -
setFictitiousQ0
-
getMaximumNodeIndex
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. -
getNodes
int[] getNodes()Get the list of nodes. -
newSwitch
VoltageLevel.NodeBreakerView.SwitchAdder newSwitch()Get a builder to create a new switch. -
newInternalConnection
VoltageLevel.NodeBreakerView.InternalConnectionAdder newInternalConnection()Get a builder to create a new switch. -
getInternalConnectionCount
int getInternalConnectionCount()Get internal connection count. -
getInternalConnections
Iterable<VoltageLevel.NodeBreakerView.InternalConnection> getInternalConnections()Get internal connections. -
getInternalConnectionStream
Stream<VoltageLevel.NodeBreakerView.InternalConnection> getInternalConnectionStream()Get internal connection stream. -
removeInternalConnections
default void removeInternalConnections(int node1, int node2) Remove all the internal connections between node1 and node2 (not orientated) if they exist. -
newBreaker
VoltageLevel.NodeBreakerView.SwitchAdder newBreaker()Get a builder to create a new breaker. -
newDisconnector
VoltageLevel.NodeBreakerView.SwitchAdder newDisconnector()Get a builder to create a new disconnector. -
getNode1
Get the first node to which a switch is connected.- Parameters:
switchId
- the id of the switch- Throws:
PowsyblException
- if switch is not found
-
getNode2
Get the second node to which a switch is connected.- Parameters:
switchId
- the id of the switch- Throws:
PowsyblException
- if switch is not found
-
getTerminal
Get the terminal corresponding to thenode
.- Throws:
PowsyblException
- if node is not found.
-
getOptionalTerminal
Get the terminal corresponding to thenode
if thenode
is valid. Return an empty optional if no existing terminal corresponds tonode
.- Throws:
PowsyblException
- if node is not valid.
-
getSwitchStream
Get the switches connected to thenode
.- Throws:
PowsyblException
- if node is not found.
-
getSwitches
Get the switches connected to thenode
.- Returns:
- Throws:
PowsyblException
- if node is not found.
-
getNodeInternalConnectedToStream
Get the indices of the nodes connected with an internal connections to thenode
.- Throws:
PowsyblException
- if node is not found.
-
getNodesInternalConnectedTo
Get the internal connections connected to thenode
.- Returns:
- Throws:
PowsyblException
- if node is not found.
-
hasAttachedEquipment
default boolean hasAttachedEquipment(int node) Check if aConnectable
, aSwitch
or anVoltageLevel.NodeBreakerView.InternalConnection
is attached to the given node.- Throws:
PowsyblException
- if node is not valid
-
getTerminal1
Get the first terminal corresponding to theswitchId
. May return null.- Throws:
PowsyblException
- if switch is not found.
-
getTerminal2
Get the second terminal corresponding to theswitchId
. May return null.- Throws:
PowsyblException
- if switch is not found.
-
getSwitch
Get a switch.- Parameters:
switchId
- the id the switch- Returns:
- the switch or
null
if not found
-
getSwitches
Get switches. -
getSwitchStream
Get switches. -
getSwitchCount
int getSwitchCount()Get the switch count. -
removeSwitch
Remove a switch.- Parameters:
switchId
- the switch id
-
newBusbarSection
BusbarSectionAdder newBusbarSection()Get a builder to create a new busbar section. -
getBusbarSections
Iterable<BusbarSection> getBusbarSections()Get busbar sections. -
getBusbarSectionStream
Stream<BusbarSection> getBusbarSectionStream()Get busbar sections. -
getBusbarSectionCount
int getBusbarSectionCount()Get the busbar section count. -
getBusbarSection
Get a busbar section.- Parameters:
id
- the id of the busbar section
-
traverse
Performs a depth-first traversal of the topology graph, starting fromnode
. Thetraverser
callback is called every time an edge is traversed. -
traverse
Performs a depth-first traversal of the topology graph, starting from each node in arraynodes
. Thetraverser
callback is called every time an edge is traversed.
-