Interface VoltageLevel.NodeBreakerView

Enclosing interface:
VoltageLevel

public static interface VoltageLevel.NodeBreakerView
A node/breaker view of the topology.
  • Method Details

    • getFictitiousP0

      default double getFictitiousP0(int node)
    • setFictitiousP0

      default VoltageLevel.NodeBreakerView setFictitiousP0(int node, double p0)
    • getFictitiousQ0

      default double getFictitiousQ0(int node)
    • setFictitiousQ0

      default VoltageLevel.NodeBreakerView setFictitiousQ0(int node, double q0)
    • 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

      Get a builder to create a new switch.
    • newInternalConnection

      Get a builder to create a new switch.
    • getInternalConnectionCount

      int getInternalConnectionCount()
      Get internal connection count.
    • getInternalConnections

      Get internal connections.
    • 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

      Get a builder to create a new breaker.
    • newDisconnector

      Get a builder to create a new disconnector.
    • getNode1

      int getNode1(String switchId)
      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

      int getNode2(String switchId)
      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

      Terminal getTerminal(int node)
      Get the terminal corresponding to the node.
      Throws:
      PowsyblException - if node is not found.
    • getOptionalTerminal

      default Optional<Terminal> getOptionalTerminal(int node)
      Get the terminal corresponding to the node if the node is valid. Return an empty optional if no existing terminal corresponds to node.
      Throws:
      PowsyblException - if node is not valid.
    • getSwitchStream

      Stream<Switch> getSwitchStream(int node)
      Get the switches connected to the node.
      Throws:
      PowsyblException - if node is not found.
    • getSwitches

      List<Switch> getSwitches(int node)
      Get the switches connected to the node.
      Returns:
      Throws:
      PowsyblException - if node is not found.
    • getNodeInternalConnectedToStream

      IntStream getNodeInternalConnectedToStream(int node)
      Get the indices of the nodes connected with an internal connections to the node.
      Throws:
      PowsyblException - if node is not found.
    • getNodesInternalConnectedTo

      List<Integer> getNodesInternalConnectedTo(int node)
      Get the internal connections connected to the node.
      Returns:
      Throws:
      PowsyblException - if node is not found.
    • hasAttachedEquipment

      default boolean hasAttachedEquipment(int node)
      Check if a Connectable, a Switch or an VoltageLevel.NodeBreakerView.InternalConnection is attached to the given node.
      Throws:
      PowsyblException - if node is not valid
    • getTerminal1

      Terminal getTerminal1(String switchId)
      Get the first terminal corresponding to the switchId. May return null.
      Throws:
      PowsyblException - if switch is not found.
    • getTerminal2

      Terminal getTerminal2(String switchId)
      Get the second terminal corresponding to the switchId. May return null.
      Throws:
      PowsyblException - if switch is not found.
    • getSwitch

      Switch getSwitch(String switchId)
      Get a switch.
      Parameters:
      switchId - the id the switch
      Returns:
      the switch or null if not found
    • getSwitches

      Iterable<Switch> getSwitches()
      Get switches.
    • getSwitchStream

      Stream<Switch> getSwitchStream()
      Get switches.
    • getSwitchCount

      int getSwitchCount()
      Get the switch count.
    • removeSwitch

      void removeSwitch(String switchId)
      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

      BusbarSection getBusbarSection(String id)
      Get a busbar section.
      Parameters:
      id - the id of the busbar section
    • traverse

      void traverse(int node, VoltageLevel.NodeBreakerView.TopologyTraverser traverser)
      Performs a depth-first traversal of the topology graph, starting from node. The traverser callback is called every time an edge is traversed.
    • traverse

      void traverse(int[] node, VoltageLevel.NodeBreakerView.TopologyTraverser traverser)
      Performs a depth-first traversal of the topology graph, starting from each node in array nodes. The traverser callback is called every time an edge is traversed.