diff --git a/cgmes/cgmes-conversion/src/main/java/com/powsybl/cgmes/conversion/export/CgmesExportContext.java b/cgmes/cgmes-conversion/src/main/java/com/powsybl/cgmes/conversion/export/CgmesExportContext.java index 78c5cec8828..fdade42bb61 100644 --- a/cgmes/cgmes-conversion/src/main/java/com/powsybl/cgmes/conversion/export/CgmesExportContext.java +++ b/cgmes/cgmes-conversion/src/main/java/com/powsybl/cgmes/conversion/export/CgmesExportContext.java @@ -384,14 +384,14 @@ private void addIidmMappingsGenerators(Network network) { } } String regulatingControlId = generator.getProperty(Conversion.PROPERTY_REGULATING_CONTROL); - if (regulatingControlId == null && hasVoltageControlCapability(generator)) { + if (regulatingControlId == null && hasRegulatingControlCapability(generator)) { regulatingControlId = namingStrategy.getCgmesId(ref(generator), Part.REGULATING_CONTROL); generator.setProperty(Conversion.PROPERTY_REGULATING_CONTROL, regulatingControlId); } } } - private static boolean hasVoltageControlCapability(Generator generator) { + private static boolean hasRegulatingControlCapability(Generator generator) { return generator.getExtension(RemoteReactivePowerControl.class) != null || !Double.isNaN(generator.getTargetV()) && hasReactiveCapability(generator); }