Skip to content

Fix notifyUpdate for setTargetV/Q - #4120

Merged
olperr1 merged 5 commits into
mainfrom
msa/fix_notifyUpdate_targetQV_generator_battery
Oct 5, 2026
Merged

olperr1 merged 5 commits into
mainfrom
msa/fix_notifyUpdate_targetQV_generator_battery

Conversation

@MatthieuSAUR

Copy link
Copy Markdown
Contributor

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • A PR or issue has been opened in all impacted repositories (if any)

Does this PR already have an issue describing the problem?

No

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

  • Calling Generator.setTargetQ(double) notifies about localTargetQ
  • Calling Generator.setTargetV(double) and Generator.setTargetV(double, double) notifies about localTargetV and/or VoltageRegulation.TargetValue
  • Calling Battery.setTargetQ(double) notifies about targetQ

What is the new behavior (if this is a feature change)?

  • Calling Generator.setTargetQ(double) notifies about localTargetQ and the deprecated notification targetQ
  • Calling Generator.setTargetV(double) and Generator.setTargetV(double, double) notifies about localTargetV and/or VoltageRegulation.TargetValue and the deprecated notification targetV
  • Calling Battery.setTargetQ(double) notifies about localTargetQ and the deprecated notification targetQ

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

If yes, please check if the following requirements are fulfilled

  • The Breaking Change or Deprecated label has been added
  • The migration steps are described in the following section

What changes might users need to make in their application due to this PR? (migration steps)

Other information:

…ethods in GeneratorImpl and BatteryImpl

Signed-off-by: Matthieu SAUR <matthieu.saur@rte-france.com>
…l and BatteryImpl

Signed-off-by: Matthieu SAUR <matthieu.saur@rte-france.com>
@olperr1 olperr1 added the bug label Sep 29, 2026
Comment thread iidm/iidm-impl/src/main/java/com/powsybl/iidm/network/impl/BatteryImpl.java Outdated
Signed-off-by: Matthieu SAUR <matthieu.saur@rte-france.com>
…orImpl

Signed-off-by: Matthieu SAUR <matthieu.saur@rte-france.com>
@sonarqubecloud

sonarqubecloud Bot commented Oct 2, 2026

Copy link
Copy Markdown

@olperr1
olperr1 merged commit ec075bf into main Oct 5, 2026
9 checks passed
@olperr1
olperr1 deleted the msa/fix_notifyUpdate_targetQV_generator_battery branch October 5, 2026 05:47
olperr1 pushed a commit that referenced this pull request Oct 5, 2026
* Add previous `notifyUpdate` calls for `setTargetQ` and `setTargetV` methods in GeneratorImpl and BatteryImpl
* Fix `notifyUpdate` calls and tests for `setTargetQ/V` in GeneratorImpl and BatteryImpl
* Add `notifyUpdate` call in `setLocalTargetV` method of ShuntCompensatorImpl

Signed-off-by: Matthieu SAUR <matthieu.saur@rte-france.com>
(cherry picked from commit ec075bf)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants