Class PhaseTapPositionModification
java.lang.Object
com.powsybl.iidm.modification.AbstractNetworkModification
com.powsybl.iidm.modification.tapchanger.AbstractTapPositionModification
com.powsybl.iidm.modification.tapchanger.PhaseTapPositionModification
- 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
ConstructorDescriptionPhaseTapPositionModification
(String transformerId, int tapPosition) Creates a PTC tap modification for two windings transformers, or three windings transformer with a single PTC.PhaseTapPositionModification
(String transformerId, int tapPosition, ThreeSides leg) Creates a PTC tap modification for three windings transformers on the given leg. -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(PhaseTapChangerHolder ptcHolder, 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
-
PhaseTapPositionModification
Creates a PTC tap modification for two windings transformers, or three windings transformer with a single PTC.- Parameters:
transformerId
- the ID of the transformer, which holds the PTCtapPosition
- the new tap position
-
PhaseTapPositionModification
Creates a PTC tap modification for three windings transformers on the given leg.- Parameters:
transformerId
- the ID of the three windings transformer, which holds the PTCtapPosition
- 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
-