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
public class PhaseTapPositionModification extends AbstractTapPositionModification
- Author:
- Nicolas PIERRE
-
-
Field Summary
-
Fields inherited from class com.powsybl.iidm.modification.tapchanger.AbstractTapPositionModification
TRANSFORMER_STR
-
-
Constructor Summary
Constructors Constructor Description PhaseTapPositionModification(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, ThreeWindingsTransformer.Side leg)
Creates a PTC 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(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
-
Methods inherited from class com.powsybl.iidm.modification.AbstractNetworkModification
apply, apply, apply, apply, apply, logOrThrow
-
-
-
-
Constructor Detail
-
PhaseTapPositionModification
public PhaseTapPositionModification(String transformerId, int tapPosition)
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
public PhaseTapPositionModification(String transformerId, int tapPosition, ThreeWindingsTransformer.Side leg)
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 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(PhaseTapChangerHolder ptcHolder, boolean throwException)
-
-