Class ShuntCompensatorModification

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

public class ShuntCompensatorModification extends AbstractNetworkModification
Simple NetworkModification to (dis)connect a shunt compensator and/or change its section.
Author:
Nicolas PIERRE <nicolas.pierre at artelys.com>
  • Constructor Details

    • ShuntCompensatorModification

      public ShuntCompensatorModification(String shuntCompensatorId, Boolean connect, Integer sectionCount)
  • Method Details

    • 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.
    • getConnect

      public Boolean getConnect()
    • getSectionCount

      public Integer getSectionCount()
    • getShuntCompensatorId

      public String getShuntCompensatorId()