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
public class RatioTapPositionModification extends AbstractTapPositionModification
- Author:
- Nicolas PIERRE
-
-
Field Summary
-
Fields inherited from class com.powsybl.iidm.modification.tapchanger.AbstractTapPositionModification
TRANSFORMER_STR
-
-
Constructor Summary
Constructors Constructor Description RatioTapPositionModification(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, ThreeWindingsTransformer.Side leg)
Creates a RTC tap modification for three windings transformers on the given leg.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
-
Methods inherited from class com.powsybl.iidm.modification.AbstractNetworkModification
apply, apply, apply, apply, apply, logOrThrow
-
-
-
-
Constructor Detail
-
RatioTapPositionModification
public RatioTapPositionModification(String transformerId, int tapPosition)
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
public RatioTapPositionModification(String transformerId, int tapPosition, ThreeWindingsTransformer.Side leg)
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 Detail
-
applyTwoWindingsTransformer
protected void applyTwoWindingsTransformer(Network network, TwoWindingsTransformer twoWindingsTransformer, boolean throwException)
-
applyThreeWindingsTransformer
protected void applyThreeWindingsTransformer(Network network, ThreeWindingsTransformer threeWindingsTransformer, boolean throwException)
-
apply
public void apply(RatioTapChangerHolder rtcHolder, boolean throwException)
-
-