Package com.powsybl.commons.extensions
Class AbstractExtension<T>
java.lang.Object
com.powsybl.commons.extensions.AbstractExtension<T>
- All Implemented Interfaces:
Extension<T>
- Direct Known Subclasses:
AbstractMultiVariantIdentifiableExtension
,AbstractPrecontingencyValueExtension
,BranchObservabilityImpl
,BusbarSectionExt
,BusbarSectionPositionImpl
,CgmesConversionContextExtensionImpl
,CgmesModelExtensionImpl
,ConnectablePositionImpl
,EntsoeAreaImpl
,GeneratorEntsoeCategoryImpl
,GeneratorFortescueImpl
,GeneratorShortCircuitImpl
,GeneratorStartupImpl
,IdentifiableShortCircuitImpl
,InjectionObservabilityImpl
,LineFortescueImpl
,LinePositionImpl
,LoadAsymmetricalImpl
,LoadBarExt
,LoadFooExt
,LoadMockExt
,LoadQuxExt
,LoadZipModel
,OperatingStatusImpl
,SecondaryVoltageControlImpl
,SubstationPositionImpl
,TerminalMockExt
,ThreeWindingsTransformerFortescueImpl
,ThreeWindingsTransformerPhaseAngleClockimpl
,TwoWindingsTransformerFortescueImpl
,TwoWindingsTransformerPhaseAngleClockImpl
,VoltagePerReactivePowerControlImpl
- Author:
- Mathieu Bague <mathieu.bague at rte-france.com>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
cleanup()
Method called when the extension is removed from its holder.Return the holder of this extensionvoid
setExtendable
(T extendable) Set the holder of this extension.
-
Constructor Details
-
AbstractExtension
protected AbstractExtension() -
AbstractExtension
-
-
Method Details
-
getExtendable
Description copied from interface:Extension
Return the holder of this extension- Specified by:
getExtendable
in interfaceExtension<T>
- Returns:
- the holder of this extension or null if this extension is not held
-
setExtendable
Description copied from interface:Extension
Set the holder of this extension.- Specified by:
setExtendable
in interfaceExtension<T>
- Parameters:
extendable
- The new holder of this extension, could be null
-
cleanup
protected void cleanup()Method called when the extension is removed from its holder. Can be used for e.g. resource cleanup.
-