Class RatioTapPositionModification
java.lang.Object
com.powsybl.iidm.modification.AbstractNetworkModification
com.powsybl.iidm.modification.tapchanger.AbstractTapPositionModification
com.powsybl.iidm.modification.tapchanger.RatioTapPositionModification
- All Implemented Interfaces:
NetworkModification
- Author:
- Nicolas PIERRE <nicolas.pierre at artelys.com>
-
Field Summary
Fields inherited from class com.powsybl.iidm.modification.tapchanger.AbstractTapPositionModification
TRANSFORMER_STR
-
Constructor Summary
ConstructorDescriptionRatioTapPositionModification
(String transformerId, int tapPosition) Creates a RTC tap modification for two windings transformers, or three windings transformer with a single RTC.RatioTapPositionModification
(String transformerId, int tapPosition, ThreeSides leg) Creates a RTC tap modification for three windings transformers on the given leg. -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(RatioTapChangerHolder rtcHolder, boolean throwException) protected void
applyThreeWindingsTransformer
(Network network, ThreeWindingsTransformer threeWindingsTransformer, boolean throwException) protected void
applyTwoWindingsTransformer
(Network network, TwoWindingsTransformer twoWindingsTransformer, boolean throwException) Methods inherited from class com.powsybl.iidm.modification.tapchanger.AbstractTapPositionModification
apply, getLeg, getLegSide, getOptionalLeg, getTapPosition, getTransformerId
-
Constructor Details
-
RatioTapPositionModification
Creates a RTC tap modification for two windings transformers, or three windings transformer with a single RTC.- Parameters:
transformerId
- the ID of the transformer, which holds the rtctapPosition
- the new tap position
-
RatioTapPositionModification
Creates a RTC tap modification for three windings transformers on the given leg.- Parameters:
transformerId
- the ID of the three windings transformer, which holds the rtctapPosition
- the new tap positionleg
- defines on which leg of the three winding transformer the modification will be done.
-
-
Method Details
-
applyTwoWindingsTransformer
protected void applyTwoWindingsTransformer(Network network, TwoWindingsTransformer twoWindingsTransformer, boolean throwException) -
applyThreeWindingsTransformer
protected void applyThreeWindingsTransformer(Network network, ThreeWindingsTransformer threeWindingsTransformer, boolean throwException) -
apply
-