Skip to content

Commit

Permalink
docs(): Add comment over a strange test case
Browse files Browse the repository at this point in the history
Signed-off-by: sBouzols <[email protected]>
  • Loading branch information
sBouzols committed Feb 9, 2024
1 parent eaf9180 commit e1fa819
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ private static List<AbstractBaseImpact> createBranchImpacts(ImpactType impactTyp
createElementImpact(impactType, IdentifiableType.SWITCH, disconnectorId2, Set.of(substationId2))
);
if (impactType == ImpactType.CREATION) {
// During a creation of a 2WT we use the TapChangerAdder which set the tapChangerAttributes to the 2WT
// This setRatioTapChanger/setPhaseTapChanger calling generates a notifyUpdate for the newly created 2WT
// Then we must add a MODIFICATION impact on this newly created 2WT.
// TODO fix this
impacts.add(createElementImpact(ImpactType.MODIFICATION, branchType, branchId, new TreeSet<>(List.of(substationId1, substationId2)))); // case with newtapChanger
}
if (impactType == ImpactType.DELETION) {
Expand Down

0 comments on commit e1fa819

Please sign in to comment.