Class ADNSensitivityConversionContext
java.lang.Object
com.rte_france.powsybl.iidm.export.adn.context.ADNConversionContextDecorator
com.rte_france.powsybl.iidm.export.adn.context.Hades2ADNConversionContext
com.rte_france.powsybl.hades2.sensitivity.ADNSensitivityConversionContext
- All Implemented Interfaces:
ADNConversionContext
Sensitivity computation conversion context to ADN format
Composed of sensitivity computation parameters and sensitivity computation inputs.
- Author:
- Sebastien Murgey <sebastien.murgey at rte-france.com>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.rte_france.powsybl.iidm.export.adn.context.Hades2ADNConversionContext
Hades2ADNConversionContext.TypeCalcul
Nested classes/interfaces inherited from interface com.rte_france.powsybl.iidm.export.adn.context.ADNConversionContext
ADNConversionContext.Simulator
-
Constructor Summary
ConstructorDescriptionADNSensitivityConversionContext
(com.powsybl.commons.util.StringToIntMapper<ADNSubset> mapper, Hades2ADNConversionContext.TypeCalcul typeCalcul, boolean withCouplers, com.powsybl.sensitivity.SensitivityAnalysisParameters sensiParameters, com.powsybl.sensitivity.SensitivityFactorReader sensitivityFactorReader, com.powsybl.contingency.ContingenciesProvider contingenciesProvider, List<com.powsybl.sensitivity.SensitivityVariableSet> variableSets, com.powsybl.iidm.network.Network network) ADN format conversion context constructorADNSensitivityConversionContext
(Hades2ADNConversionContext.TypeCalcul typeCalcul, com.powsybl.sensitivity.SensitivityAnalysisParameters sensitivityComputationParameters, com.powsybl.sensitivity.SensitivityFactorReader sensitivityFactorReader, com.powsybl.contingency.ContingenciesProvider contingenciesProvider, List<com.powsybl.sensitivity.SensitivityVariableSet> variableSets, com.powsybl.iidm.network.Network network, ADNConversionContext context) ADNSensitivityConversionContext
(Hades2ADNConversionContext.TypeCalcul typeCalcul, com.powsybl.sensitivity.SensitivityAnalysisParameters sensitivityComputationParameters, com.powsybl.sensitivity.SensitivityFactorReader sensitivityFactorReader, ADNConversionContext context) -
Method Summary
Modifier and TypeMethodDescriptionGet the ADN extension of sensitivity computation parametersint
getContingencyIndex
(com.powsybl.contingency.Contingency contingency) int
getFactorIndex
(com.powsybl.sensitivity.SensitivityFactor sensitivityFactor) List<com.powsybl.sensitivity.SensitivityFactor>
List<com.powsybl.sensitivity.SensitivityFactor>
getFactorsForContingency
(com.powsybl.contingency.Contingency contingency) com.powsybl.sensitivity.SensitivityAnalysisParameters
Get the sensitivity computation parameterscom.powsybl.sensitivity.SensitivityFactorReader
Get the sensitivity computation input factors providerList<com.powsybl.sensitivity.SensitivityVariableSet>
void
setFactors
(List<com.powsybl.sensitivity.SensitivityFactor> factors) Methods inherited from class com.rte_france.powsybl.iidm.export.adn.context.Hades2ADNConversionContext
getAdnLoadFlowParameters, getAdnSecurityAnalysisParameters, getContingencies, getContingenciesProvider, getLoadFlowParameters, getSecurityAnalysisParameters, getSlackBus, getTypeCalcul, isHvdcAcEmulation, setContingenciesProvider, setLoadFlowParameters, setSecurityAnalysisParameters, setSlackBus
Methods inherited from class com.rte_france.powsybl.iidm.export.adn.context.ADNConversionContextDecorator
getBuses, getMapper, getMinimumReactancePerUnit, isComputedLossAngle, isWithCouplers, isWithMinimumReactance, setMapper, withCouplers
-
Constructor Details
-
ADNSensitivityConversionContext
public ADNSensitivityConversionContext(Hades2ADNConversionContext.TypeCalcul typeCalcul, com.powsybl.sensitivity.SensitivityAnalysisParameters sensitivityComputationParameters, com.powsybl.sensitivity.SensitivityFactorReader sensitivityFactorReader, ADNConversionContext context) -
ADNSensitivityConversionContext
public ADNSensitivityConversionContext(Hades2ADNConversionContext.TypeCalcul typeCalcul, com.powsybl.sensitivity.SensitivityAnalysisParameters sensitivityComputationParameters, com.powsybl.sensitivity.SensitivityFactorReader sensitivityFactorReader, com.powsybl.contingency.ContingenciesProvider contingenciesProvider, List<com.powsybl.sensitivity.SensitivityVariableSet> variableSets, com.powsybl.iidm.network.Network network, ADNConversionContext context) -
ADNSensitivityConversionContext
public ADNSensitivityConversionContext(com.powsybl.commons.util.StringToIntMapper<ADNSubset> mapper, Hades2ADNConversionContext.TypeCalcul typeCalcul, boolean withCouplers, com.powsybl.sensitivity.SensitivityAnalysisParameters sensiParameters, com.powsybl.sensitivity.SensitivityFactorReader sensitivityFactorReader, com.powsybl.contingency.ContingenciesProvider contingenciesProvider, List<com.powsybl.sensitivity.SensitivityVariableSet> variableSets, com.powsybl.iidm.network.Network network) ADN format conversion context constructor- Parameters:
mapper
- mapper between String IIDM ids and Integer ADN ids of devicestypeCalcul
- computation typewithCouplers
- true if couplers are kept, false otherwisesensiParameters
- sensitivity computation parameterssensitivityFactorReader
- sensitivity factorscontingenciesProvider
- contingencies provider
-
-
Method Details
-
getSimulator
- Specified by:
getSimulator
in interfaceADNConversionContext
- Overrides:
getSimulator
in classHades2ADNConversionContext
-
getSensitivityFactorReader
public com.powsybl.sensitivity.SensitivityFactorReader getSensitivityFactorReader()Get the sensitivity computation input factors provider- Returns:
- the sensitivity computation input factors provider
-
getSensitivityAnalysisParameters
public com.powsybl.sensitivity.SensitivityAnalysisParameters getSensitivityAnalysisParameters()Get the sensitivity computation parameters- Returns:
- the sensitivity computation parameters
-
getAdnSensitivityComputationParameters
Get the ADN extension of sensitivity computation parameters- Returns:
- the ADN extension of sensitivity computation parameters
-
getFactors
-
getFactorsForContingency
public List<com.powsybl.sensitivity.SensitivityFactor> getFactorsForContingency(com.powsybl.contingency.Contingency contingency) -
getFactorIndex
public int getFactorIndex(com.powsybl.sensitivity.SensitivityFactor sensitivityFactor) -
setFactors
-
getContingencyIndex
public int getContingencyIndex(com.powsybl.contingency.Contingency contingency) -
getVariableSets
-