Class AbstractSetpointModification<T>

java.lang.Object
com.powsybl.iidm.modification.AbstractNetworkModification
com.powsybl.iidm.modification.AbstractSetpointModification<T>
All Implemented Interfaces:
NetworkModification
Direct Known Subclasses:
StaticVarCompensatorModification, VscConverterStationModification

public abstract class AbstractSetpointModification<T> extends AbstractNetworkModification
Simple NetworkModification for elements that needs to modify their voltage and reactive setpoints. This is used for SVCs and for VSC converter stations. Note that a VSC converter station follows a generator convention but SVCs follow a load convention.
Author:
Nicolas PIERRE <nicolas.pierre at artelys.com>
  • Constructor Details

    • AbstractSetpointModification

      protected AbstractSetpointModification(String elementId, Double voltageSetpoint, Double reactivePowerSetpoint)
  • 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.
    • getElementName

      public abstract String getElementName()
    • setVoltageSetpoint

      protected abstract void setVoltageSetpoint(T networkElement, Double voltageSetpoint)
    • setReactivePowerSetpoint

      protected abstract void setReactivePowerSetpoint(T networkElement, Double reactivePowerSetpoint)
    • getNetworkElement

      public abstract T getNetworkElement(Network network, String elementID)
    • getElementId

      protected String getElementId()
    • getReactivePowerSetpoint

      public Double getReactivePowerSetpoint()
    • getOptionalReactivePowerSetpoint

      public OptionalDouble getOptionalReactivePowerSetpoint()
    • getVoltageSetpoint

      public Double getVoltageSetpoint()
    • getOptionalVoltageSetpoint

      public OptionalDouble getOptionalVoltageSetpoint()