Package com.powsybl.security.extensions
Class ActivePowerExtension
java.lang.Object
com.powsybl.security.extensions.ActivePowerExtension
- All Implemented Interfaces:
Extension<LimitViolation>
- Author:
- Mathieu Bague <mathieu.bague at rte-france.com>
-
Constructor Summary
ConstructorDescriptionActivePowerExtension
(double preContingencyValue) ActivePowerExtension
(double preContingencyValue, double postContingencyValue) -
Method Summary
Modifier and TypeMethodDescriptionReturn the holder of this extensiongetName()
Return the name of this extension.double
double
void
setExtendable
(LimitViolation limitViolation) Set the holder of this extension.
-
Constructor Details
-
ActivePowerExtension
public ActivePowerExtension(double preContingencyValue) -
ActivePowerExtension
public ActivePowerExtension(double preContingencyValue, double postContingencyValue)
-
-
Method Details
-
getName
Description copied from interface:Extension
Return the name of this extension.- Specified by:
getName
in interfaceExtension<LimitViolation>
-
getExtendable
Description copied from interface:Extension
Return the holder of this extension- Specified by:
getExtendable
in interfaceExtension<LimitViolation>
- 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<LimitViolation>
- Parameters:
limitViolation
- The new holder of this extension, could be null
-
getPreContingencyValue
public double getPreContingencyValue() -
getPostContingencyValue
public double getPostContingencyValue()
-