Skip to content

Commit

Permalink
Rename method
Browse files Browse the repository at this point in the history
Signed-off-by: Romain Courtier <[email protected]>
  • Loading branch information
rcourtier committed Jan 22, 2025
1 parent 2308c51 commit 193f1f6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 193f1f6

Please sign in to comment.