Class CreateFeederBay

java.lang.Object
com.powsybl.iidm.modification.AbstractNetworkModification
com.powsybl.iidm.modification.topology.CreateFeederBay
All Implemented Interfaces:
NetworkModification

public class CreateFeederBay extends AbstractNetworkModification
This method adds a new injection bay on an existing busbar section. The voltage level containing the busbar section should be described in node/breaker topology. The injection is created and connected to the busbar section with a breaker and a closed disconnector. The injection is also connected to all the parallel busbar sections, if any, with an open disconnector.
Author:
Coline Piloquet <coline.piloquet at rte-france.com>
  • Field Details

    • sides

      protected final int[] sides
  • Method Details

    • getBusOrBusbarSectionId

      protected String getBusOrBusbarSectionId(int side)
    • setBus

      protected void setBus(int side, Bus bus, String voltageLevelId)
    • setNode

      protected void setNode(int side, int node, String voltageLevelId)
    • add

      protected Connectable<?> add()
    • getVoltageLevel

      protected VoltageLevel getVoltageLevel(int side, Connectable<?> connectable)
    • getPositionOrder

      protected Integer getPositionOrder(int side)
    • getFeederName

      protected Optional<String> getFeederName(int side)
    • getDirection

      protected ConnectablePosition.Direction getDirection(int side)
    • getNode

      protected int getNode(int side, Connectable<?> connectable)
    • getFeederAdder

      protected ConnectablePositionAdder.FeederAdder<?> getFeederAdder(int side, ConnectablePositionAdder<?> connectablePositionAdder)
    • apply

      public void apply(Network network, NamingStrategy namingStrategy, boolean throwException, ComputationManager computationManager, ReportNode reportNode)
      Description copied from interface: NetworkModification
      Applies the modification to the given network. If throwException is set to true, then in case of error, an exception will be thrown. Otherwise, computation will continue but the injection will not be added to the network in case of error.