Package com.powsybl.sensitivity
Class SensitivityVariableSet
- java.lang.Object
-
- com.powsybl.sensitivity.SensitivityVariableSet
-
public class SensitivityVariableSet extends Object
Models a group of variables. A list of weighted variables is used in general to model an injection increase of a group of generators and loads through shift keys, also called GLSK (for Generation and Load shift keys). Note that weights are not normalized.- Author:
- Geoffroy Jamgotchian
-
-
Constructor Summary
Constructors Constructor Description SensitivityVariableSet(String id, List<WeightedSensitivityVariable> variables)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getId()
WeightedSensitivityVariable
getVariable(String key)
Collection<WeightedSensitivityVariable>
getVariables()
Map<String,WeightedSensitivityVariable>
getVariablesById()
static SensitivityVariableSet
parseJson(com.fasterxml.jackson.core.JsonParser parser)
String
toString()
static void
writeJson(com.fasterxml.jackson.core.JsonGenerator jsonGenerator, SensitivityVariableSet variableSet)
-
-
-
Constructor Detail
-
SensitivityVariableSet
public SensitivityVariableSet(String id, List<WeightedSensitivityVariable> variables)
Constructor- Parameters:
id
- ID of this complex variable. It should not correspond to an id present in the network.variables
- the list of weighted variables, seeWeightedSensitivityVariable
-
-
Method Detail
-
getId
public String getId()
-
getVariables
public Collection<WeightedSensitivityVariable> getVariables()
-
getVariablesById
public Map<String,WeightedSensitivityVariable> getVariablesById()
-
getVariable
public WeightedSensitivityVariable getVariable(String key)
-
writeJson
public static void writeJson(com.fasterxml.jackson.core.JsonGenerator jsonGenerator, SensitivityVariableSet variableSet)
-
parseJson
public static SensitivityVariableSet parseJson(com.fasterxml.jackson.core.JsonParser parser)
-
-