Package com.powsybl.sensitivity
Class SensitivityValue
- java.lang.Object
-
- com.powsybl.sensitivity.SensitivityValue
-
public class SensitivityValue extends Object
Elementary result value of a sensitivity analysis, given the sensitivity factor and a contingency id (use null to get a pre-contingency value). The value is the impact of the variable change on the monitored equipment. The function reference gives the level of the function in the network pre-contingency state.- Author:
- Geoffroy Jamgotchian
- See Also:
SensitivityFactor
-
-
Constructor Summary
Constructors Constructor Description SensitivityValue(int factorIndex, int contingencyIndex, double value, double functionReference)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getContingencyIndex()
int
getFactorIndex()
double
getFunctionReference()
double
getValue()
static SensitivityValue
parseJson(com.fasterxml.jackson.core.JsonParser parser)
String
toString()
static void
writeJson(com.fasterxml.jackson.core.JsonGenerator generator, SensitivityValue value)
-
-
-
Constructor Detail
-
SensitivityValue
public SensitivityValue(int factorIndex, int contingencyIndex, double value, double functionReference)
Constructor.- Parameters:
factorIndex
- the sensitivity factor indexcontingencyIndex
- the contingency index, -1 for pre-contingency state.value
- the sensitivity value, as a result of the computation.functionReference
- the value of the sensitivity function in the pre-contingency state.
-
-
Method Detail
-
getFactorIndex
public int getFactorIndex()
-
getContingencyIndex
public int getContingencyIndex()
-
getValue
public double getValue()
-
getFunctionReference
public double getFunctionReference()
-
parseJson
public static SensitivityValue parseJson(com.fasterxml.jackson.core.JsonParser parser)
-
writeJson
public static void writeJson(com.fasterxml.jackson.core.JsonGenerator generator, SensitivityValue value)
-
-