-
Notifications
You must be signed in to change notification settings - Fork 0
Enhance busbar sections retrieval – rework BusbarSectionFinderTraverser #294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Etienne Homer <[email protected]>
Signed-off-by: Etienne Homer <[email protected]>
Signed-off-by: Etienne Homer <[email protected]>
# Conflicts: # src/main/java/org/gridsuite/network/map/dto/definition/extension/BusbarSectionFinderTraverser.java
Signed-off-by: Etienne Homer <[email protected]>
Signed-off-by: Etienne Homer <[email protected]>
Signed-off-by: Etienne Homer <[email protected]>
|
||
private Network network; | ||
|
||
public static void createSwitch(VoltageLevel vl, String id, SwitchKind kind, boolean open, int node1, int node2) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make public createSwitch() from NetworkMapControllerTest and use it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
*/ | ||
|
||
@SpringBootTest | ||
public class BusbarSectionFinderTraverserTest { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove ConnectablePosition and BusbarSectionPosition from all the equipments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok no. The SLD is dirty without the position. Let's keep it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ConnectablePosition removed
} | ||
|
||
@Test | ||
void testWithClosedSwitch() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
void testWithClosedSwitch() { | |
void testWithClosedLastSwitch() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
network.getSwitch("DISC_BUS1_1").setOpen(false); | ||
Line line11 = network.getLine("LINE_1_1"); | ||
Line line21 = network.getLine("LINE_2_1"); | ||
BusbarSectionFinderTraverser.BusbarSectionResult result11 = BusbarSectionFinderTraverser.getBusbarSectionResult(line11.getTerminal1()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this traverse ? it's AllClosedSwitch and it's almost the same as the traverse below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
} | ||
|
||
@Test | ||
void testWithOpenSwitch() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
void testWithOpenSwitch() { | |
void testWithOpenLastSwitch() { |
|
No description provided.