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>
-
Field Summary
Fields inherited from class com.powsybl.iidm.modification.AbstractNetworkModification
DEFAULT_IMPACT, EPSILON, impact
-
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) hasImpactOnNetwork
(Network network) States if the network modification would change the current state of the network.protected abstract void
setReactivePowerSetpoint
(T networkElement, Double reactivePowerSetpoint) protected abstract void
setVoltageSetpoint
(T networkElement, Double voltageSetpoint) Methods inherited from class com.powsybl.iidm.modification.AbstractNetworkModification
apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, areValuesEqual, areValuesEqual, checkVoltageLevel, getName, isValueOutsideRange, logOrThrow, reportOnDryRunStart, reportOnInconclusiveDryRun
-
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. IfthrowException
is set totrue
, 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
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 interfaceNetworkModification
- Overrides:
hasImpactOnNetwork
in classAbstractNetworkModification
- Parameters:
network
- Network that serves as reference for the impact.- Returns:
- True if the network modification would have an impact on the network.
-
getElementName
-
setVoltageSetpoint
-
setReactivePowerSetpoint
-
getNetworkElement
-
getElementId
-
getReactivePowerSetpoint
-
getOptionalReactivePowerSetpoint
-
getVoltageSetpoint
-
getOptionalVoltageSetpoint
-