Skip to content

Conversation

EtienneLt
Copy link
Contributor

No description provided.

@EtienneLt EtienneLt self-assigned this Aug 21, 2025
Signed-off-by: Etienne LESOT <[email protected]>
Signed-off-by: Etienne LESOT <[email protected]>
Signed-off-by: Etienne LESOT <[email protected]>
Signed-off-by: Etienne LESOT <[email protected]>
Signed-off-by: Etienne LESOT <[email protected]>
Signed-off-by: Etienne LESOT <[email protected]>
Signed-off-by: Etienne LESOT <[email protected]>
Signed-off-by: Etienne LESOT <[email protected]>
Signed-off-by: Etienne LESOT <[email protected]>
Signed-off-by: Etienne LESOT <[email protected]>
Signed-off-by: Etienne LESOT <[email protected]>
/**
* @author Slimane Amar <slimane.amar at rte-france.com>
*/
public class BusbarSectionFinderTraverser implements Terminal.TopologyTraverser {
Copy link
Contributor

Choose a reason for hiding this comment

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

Move those changes in another PR. So the review can be done with #288. And the changes in the tests will be reviewed with it

Copy link
Contributor

Choose a reason for hiding this comment

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

done

Copy link
Contributor

Choose a reason for hiding this comment

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

It's back lol

}
}

public static ConnectablePositionInfos toMapConnectablePosition(Identifiable<?> identifiable, int index) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
public static ConnectablePositionInfos toMapConnectablePosition(Identifiable<?> identifiable, int index) {
public static ConnectablePositionInfos getConnectablePosition(Identifiable<?> identifiable, ThreeSides side) {

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree with the renaming, but not with changing int index to ThreeSides side, because we need to specify the index to retrieve the feeder

}
}

private static ConnectablePosition.Feeder getFeederInfos(Identifiable<?> identifiable, int index) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This code should use ThreeSides

Suggested change
private static ConnectablePosition.Feeder getFeederInfos(Identifiable<?> identifiable, int index) {
private static ConnectablePosition.Feeder getFeederInfos(Identifiable<?> identifiable, ThreeSides side) {

Copy link
Contributor

Choose a reason for hiding this comment

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

With the index we can handle injections and branches, but the ThreeSides type cannot manage that

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link

Copy link
Contributor

@etiennehomer etiennehomer left a comment

Choose a reason for hiding this comment

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

Too many changes in the test json files. Limit it to the minimum : no formating change, not order change etc...

/**
* @author Slimane Amar <slimane.amar at rte-france.com>
*/
public class BusbarSectionFinderTraverser implements Terminal.TopologyTraverser {
Copy link
Contributor

Choose a reason for hiding this comment

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

It's back lol

BRANCH_SIDE_ONE,
BRANCH_SIDE_TWO;

public static FeederSide from(Optional<ThreeSides> connectableSide) {
Copy link
Contributor

Choose a reason for hiding this comment

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

public static FeederSide from(Optional<ThreeSides> connectableSide) {
            if (connectableSide.isEmpty()) {
                return INJECTION_SINGLE_SIDE;
            }
            return connectableSide.get() == ThreeSides.ONE ? BRANCH_SIDE_ONE : BRANCH_SIDE_TWO;
}

@etiennehomer
Copy link
Contributor

Reworked and finalized in #292
All comments taken in account.

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.

3 participants