Class GeneratorFortescueAdderImpl
- java.lang.Object
-
- com.powsybl.commons.extensions.AbstractExtensionAdder<Generator,GeneratorFortescue>
-
- com.powsybl.iidm.network.impl.extensions.GeneratorFortescueAdderImpl
-
- All Implemented Interfaces:
ExtensionAdder<Generator,GeneratorFortescue>
,GeneratorFortescueAdder
public class GeneratorFortescueAdderImpl extends AbstractExtensionAdder<Generator,GeneratorFortescue> implements GeneratorFortescueAdder
- Author:
- Jean-Baptiste Heyberger
, Geoffroy Jamgotchian
-
-
Constructor Summary
Constructors Constructor Description GeneratorFortescueAdderImpl(Generator generator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected GeneratorFortescue
createExtension(Generator generator)
Creates the extension.Class<? super GeneratorFortescue>
getExtensionClass()
Returns the class of the extension.GeneratorFortescueAdderImpl
withGrounded(boolean grounded)
GeneratorFortescueAdderImpl
withGroundingR(double groundingR)
GeneratorFortescueAdderImpl
withGroundingX(double groundingX)
GeneratorFortescueAdderImpl
withRn(double rn)
GeneratorFortescueAdderImpl
withRz(double rz)
GeneratorFortescueAdderImpl
withXn(double xn)
GeneratorFortescueAdderImpl
withXz(double xz)
-
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
-
GeneratorFortescueAdderImpl
public GeneratorFortescueAdderImpl(Generator generator)
-
-
Method Detail
-
getExtensionClass
public Class<? super GeneratorFortescue> 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<Generator,GeneratorFortescue>
- Returns:
- the interface of the extension
-
createExtension
protected GeneratorFortescue createExtension(Generator generator)
Description copied from class:AbstractExtensionAdder
Creates the extension.- Specified by:
createExtension
in classAbstractExtensionAdder<Generator,GeneratorFortescue>
- Returns:
- the extension
-
withGrounded
public GeneratorFortescueAdderImpl withGrounded(boolean grounded)
- Specified by:
withGrounded
in interfaceGeneratorFortescueAdder
-
withRz
public GeneratorFortescueAdderImpl withRz(double rz)
- Specified by:
withRz
in interfaceGeneratorFortescueAdder
-
withXz
public GeneratorFortescueAdderImpl withXz(double xz)
- Specified by:
withXz
in interfaceGeneratorFortescueAdder
-
withRn
public GeneratorFortescueAdderImpl withRn(double rn)
- Specified by:
withRn
in interfaceGeneratorFortescueAdder
-
withXn
public GeneratorFortescueAdderImpl withXn(double xn)
- Specified by:
withXn
in interfaceGeneratorFortescueAdder
-
withGroundingR
public GeneratorFortescueAdderImpl withGroundingR(double groundingR)
- Specified by:
withGroundingR
in interfaceGeneratorFortescueAdder
-
withGroundingX
public GeneratorFortescueAdderImpl withGroundingX(double groundingX)
- Specified by:
withGroundingX
in interfaceGeneratorFortescueAdder
-
-