Class TwoWindingsTransformerFortescueAdderImpl
- java.lang.Object
-
- com.powsybl.commons.extensions.AbstractExtensionAdder<TwoWindingsTransformer,TwoWindingsTransformerFortescue>
-
- com.powsybl.iidm.network.impl.extensions.TwoWindingsTransformerFortescueAdderImpl
-
- All Implemented Interfaces:
ExtensionAdder<TwoWindingsTransformer,TwoWindingsTransformerFortescue>
,TwoWindingsTransformerFortescueAdder
public class TwoWindingsTransformerFortescueAdderImpl extends AbstractExtensionAdder<TwoWindingsTransformer,TwoWindingsTransformerFortescue> implements TwoWindingsTransformerFortescueAdder
- Author:
- Jean-Baptiste Heyberger
, Geoffroy Jamgotchian
-
-
Constructor Summary
Constructors Constructor Description TwoWindingsTransformerFortescueAdderImpl(TwoWindingsTransformer twt)
-
Method Summary
-
Methods inherited from class com.powsybl.commons.extensions.AbstractExtensionAdder
add
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.powsybl.commons.extensions.ExtensionAdder
add
-
-
-
-
Constructor Detail
-
TwoWindingsTransformerFortescueAdderImpl
public TwoWindingsTransformerFortescueAdderImpl(TwoWindingsTransformer twt)
-
-
Method Detail
-
getExtensionClass
public Class<? super TwoWindingsTransformerFortescue> getExtensionClass()
Description copied from interface:ExtensionAdder
Returns the class of the extension. This is expected to be an interface so that multiple implementors can implement the same extensions. This will be the key at which the extension is added on the extendable. This is meant to be implemented by adder interfaces but not by adder implementations.- Specified by:
getExtensionClass
in interfaceExtensionAdder<TwoWindingsTransformer,TwoWindingsTransformerFortescue>
- Returns:
- the interface of the extension
-
createExtension
protected TwoWindingsTransformerFortescueImpl createExtension(TwoWindingsTransformer twt)
Description copied from class:AbstractExtensionAdder
Creates the extension.- Specified by:
createExtension
in classAbstractExtensionAdder<TwoWindingsTransformer,TwoWindingsTransformerFortescue>
- Returns:
- the extension
-
withRz
public TwoWindingsTransformerFortescueAdderImpl withRz(double rz)
- Specified by:
withRz
in interfaceTwoWindingsTransformerFortescueAdder
-
withXz
public TwoWindingsTransformerFortescueAdderImpl withXz(double xz)
- Specified by:
withXz
in interfaceTwoWindingsTransformerFortescueAdder
-
withFreeFluxes
public TwoWindingsTransformerFortescueAdderImpl withFreeFluxes(boolean freeFluxes)
- Specified by:
withFreeFluxes
in interfaceTwoWindingsTransformerFortescueAdder
-
withConnectionType1
public TwoWindingsTransformerFortescueAdderImpl withConnectionType1(WindingConnectionType connectionType1)
- Specified by:
withConnectionType1
in interfaceTwoWindingsTransformerFortescueAdder
-
withConnectionType2
public TwoWindingsTransformerFortescueAdderImpl withConnectionType2(WindingConnectionType connectionType2)
- Specified by:
withConnectionType2
in interfaceTwoWindingsTransformerFortescueAdder
-
withGroundingR1
public TwoWindingsTransformerFortescueAdderImpl withGroundingR1(double groundingR1)
- Specified by:
withGroundingR1
in interfaceTwoWindingsTransformerFortescueAdder
-
withGroundingX1
public TwoWindingsTransformerFortescueAdderImpl withGroundingX1(double groundingX1)
- Specified by:
withGroundingX1
in interfaceTwoWindingsTransformerFortescueAdder
-
withGroundingR2
public TwoWindingsTransformerFortescueAdderImpl withGroundingR2(double groundingR2)
- Specified by:
withGroundingR2
in interfaceTwoWindingsTransformerFortescueAdder
-
withGroundingX2
public TwoWindingsTransformerFortescueAdderImpl withGroundingX2(double groundingX2)
- Specified by:
withGroundingX2
in interfaceTwoWindingsTransformerFortescueAdder
-
-