Package com.powsybl.iidm.modification
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
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 Summary
ModifierConstructorDescriptionprotected
AbstractSetpointModification
(String elementId, Double voltageSetpoint, Double reactivePowerSetpoint) -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(Network network, NamingStrategy namingStrategy, boolean throwException, ComputationManager computationManager, ReportNode reportNode) Applies the modification to the given network.protected String
abstract String
abstract T
getNetworkElement
(Network network, String elementID) protected abstract void
setReactivePowerSetpoint
(T networkElement, Double reactivePowerSetpoint) protected abstract void
setVoltageSetpoint
(T networkElement, Double voltageSetpoint)
-
Constructor Details
-
AbstractSetpointModification
-
-
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
-
setVoltageSetpoint
-
setReactivePowerSetpoint
-
getNetworkElement
-
getElementId
-
getReactivePowerSetpoint
-
getOptionalReactivePowerSetpoint
-
getVoltageSetpoint
-
getOptionalVoltageSetpoint
-