Skip to content

Conversation

@benrejebmoh
Copy link

@benrejebmoh benrejebmoh commented Feb 3, 2026

PR Summary

Enable override of 'validity' property for injections and branches (used in estim/adn-in).

estim-intregation uses both 'validity' property and 'valid' boolean from Measurement IIDM extension, to compute the ADN 4-state "valid" attribute in ptm and qtm xml nodes.
Then apply() method should do the same when a modification wants to force the validity of a P/Q TM.

…sed in estim/adn-in)

Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com>
@benrejebmoh benrejebmoh requested a review from dbraquart February 3, 2026 15:21
benrejebmoh and others added 5 commits February 3, 2026 17:22
Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com>
Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com>
Signed-off-by: David BRAQUART <david.braquart@rte-france.com>
Signed-off-by: David BRAQUART <david.braquart@rte-france.com>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 5, 2026

Copy link
Contributor

@dbraquart dbraquart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code: 1 change required
tests: found a test case with a 2WT having no Measurement extension, where I could not create the extension after modification apply.


private void upsertMeasurement(Measurements<?> measurements, Measurement.Type type, Double value, Boolean validity, List<ReportNode> reports) {
if (value == null && validity == null) {
private void upsertMeasurement(Measurements<?> measurements, Measurement.Type type, Double value, Boolean requestedValidity, List<ReportNode> reports) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function is pretty much the same than in BranchModification, except the "Side" ascpect ... hum dont know if it's better with or without a common function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants