Package com.powsybl.security.extensions
Class ActivePowerExtension
- java.lang.Object
-
- com.powsybl.security.extensions.ActivePowerExtension
-
- All Implemented Interfaces:
Extension<LimitViolation>
public class ActivePowerExtension extends Object implements Extension<LimitViolation>
- Author:
- Mathieu Bague
-
-
Constructor Summary
Constructors Constructor Description ActivePowerExtension(double preContingencyValue)
ActivePowerExtension(double preContingencyValue, double postContingencyValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LimitViolation
getExtendable()
Return the holder of this extensionString
getName()
Return the name of this extension.double
getPostContingencyValue()
double
getPreContingencyValue()
void
setExtendable(LimitViolation limitViolation)
Set the holder of this extension.
-
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:Extension
Return the name of this extension.- Specified by:
getName
in interfaceExtension<LimitViolation>
-
getExtendable
public 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 holded
-
setExtendable
public void setExtendable(LimitViolation limitViolation)
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()
-
-