Class LineFortescueAdderImpl
- java.lang.Object
-
- com.powsybl.commons.extensions.AbstractExtensionAdder<Line,LineFortescue>
-
- com.powsybl.iidm.network.impl.extensions.LineFortescueAdderImpl
-
- All Implemented Interfaces:
ExtensionAdder<Line,LineFortescue>
,LineFortescueAdder
public class LineFortescueAdderImpl extends AbstractExtensionAdder<Line,LineFortescue> implements LineFortescueAdder
- Author:
- Geoffroy Jamgotchian
, Jean-Baptiste Heyberger
-
-
Constructor Summary
Constructors Constructor Description LineFortescueAdderImpl(Line line)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LineFortescueImpl
createExtension(Line line)
Creates the extension.Class<? super LineFortescue>
getExtensionClass()
Returns the class of the extension.LineFortescueAdder
withOpenPhaseA(boolean openPhaseA)
LineFortescueAdder
withOpenPhaseB(boolean openPhaseB)
LineFortescueAdder
withOpenPhaseC(boolean openPhaseC)
LineFortescueAdderImpl
withRz(double rz)
LineFortescueAdderImpl
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
-
LineFortescueAdderImpl
public LineFortescueAdderImpl(Line line)
-
-
Method Detail
-
getExtensionClass
public Class<? super LineFortescue> 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<Line,LineFortescue>
- Returns:
- the interface of the extension
-
createExtension
protected LineFortescueImpl createExtension(Line line)
Description copied from class:AbstractExtensionAdder
Creates the extension.- Specified by:
createExtension
in classAbstractExtensionAdder<Line,LineFortescue>
- Returns:
- the extension
-
withRz
public LineFortescueAdderImpl withRz(double rz)
- Specified by:
withRz
in interfaceLineFortescueAdder
-
withXz
public LineFortescueAdderImpl withXz(double xz)
- Specified by:
withXz
in interfaceLineFortescueAdder
-
withOpenPhaseA
public LineFortescueAdder withOpenPhaseA(boolean openPhaseA)
- Specified by:
withOpenPhaseA
in interfaceLineFortescueAdder
-
withOpenPhaseB
public LineFortescueAdder withOpenPhaseB(boolean openPhaseB)
- Specified by:
withOpenPhaseB
in interfaceLineFortescueAdder
-
withOpenPhaseC
public LineFortescueAdder withOpenPhaseC(boolean openPhaseC)
- Specified by:
withOpenPhaseC
in interfaceLineFortescueAdder
-
-