Class GeneratorShortCircuitAdderImpl
- java.lang.Object
-
- com.powsybl.commons.extensions.AbstractExtensionAdder<Generator,GeneratorShortCircuit>
-
- com.powsybl.iidm.network.impl.extensions.GeneratorShortCircuitAdderImpl
-
- All Implemented Interfaces:
ExtensionAdder<Generator,GeneratorShortCircuit>
,GeneratorShortCircuitAdder
public class GeneratorShortCircuitAdderImpl extends AbstractExtensionAdder<Generator,GeneratorShortCircuit> implements GeneratorShortCircuitAdder
- Author:
- Coline Piloquet
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GeneratorShortCircuitAdderImpl(Generator extendable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeneratorShortCircuit
add()
Builds and adds the extension to the extendable which was used to get this extensionAdder.protected GeneratorShortCircuit
createExtension(Generator extendable)
Creates the extension.GeneratorShortCircuitAdder
withDirectSubtransX(double directSubtransX)
GeneratorShortCircuitAdder
withDirectTransX(double directTransX)
GeneratorShortCircuitAdder
withStepUpTransformerX(double stepUpTransformerX)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.powsybl.iidm.network.extensions.GeneratorShortCircuitAdder
getExtensionClass
-
-
-
-
Constructor Detail
-
GeneratorShortCircuitAdderImpl
protected GeneratorShortCircuitAdderImpl(Generator extendable)
-
-
Method Detail
-
createExtension
protected GeneratorShortCircuit createExtension(Generator extendable)
Description copied from class:AbstractExtensionAdder
Creates the extension.- Specified by:
createExtension
in classAbstractExtensionAdder<Generator,GeneratorShortCircuit>
- Returns:
- the extension
-
withDirectTransX
public GeneratorShortCircuitAdder withDirectTransX(double directTransX)
- Specified by:
withDirectTransX
in interfaceGeneratorShortCircuitAdder
-
withDirectSubtransX
public GeneratorShortCircuitAdder withDirectSubtransX(double directSubtransX)
- Specified by:
withDirectSubtransX
in interfaceGeneratorShortCircuitAdder
-
withStepUpTransformerX
public GeneratorShortCircuitAdder withStepUpTransformerX(double stepUpTransformerX)
- Specified by:
withStepUpTransformerX
in interfaceGeneratorShortCircuitAdder
-
add
public GeneratorShortCircuit add()
Description copied from interface:ExtensionAdder
Builds and adds the extension to the extendable which was used to get this extensionAdder. The extendable is returned to allow a fluent style adding of multiple extensions.- Specified by:
add
in interfaceExtensionAdder<Generator,GeneratorShortCircuit>
- Overrides:
add
in classAbstractExtensionAdder<Generator,GeneratorShortCircuit>
- Returns:
- the extendable
-
-