Class BatteryModification

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

public class BatteryModification extends AbstractNetworkModification
Simple NetworkModification for a battery.
Author:
Nicolas PIERRE <nicolas.pierre at artelys.com>
  • Constructor Details

    • BatteryModification

      public BatteryModification(String batteryId, Double targetP, Double targetQ)
  • 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.
    • getBatteryId

      public String getBatteryId()
    • getTargetP

      public Double getTargetP()
    • getTargetQ

      public Double getTargetQ()