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

      public NetworkModificationImpact hasImpactOnNetwork(Network network)
      Description copied from interface: NetworkModification
      States if the network modification would change the current state of the network. It has no impact on the network.
      Specified by:
      hasImpactOnNetwork in interface NetworkModification
      Overrides:
      hasImpactOnNetwork in class AbstractNetworkModification
      Parameters:
      network - Network that serves as reference for the impact.
      Returns:
      True if the network modification would have an impact on the network.
    • 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()