Skip to content
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

Tie line API improvement #2650

Closed
annetill opened this issue Jul 17, 2023 · 0 comments · Fixed by #2680
Closed

Tie line API improvement #2650

annetill opened this issue Jul 17, 2023 · 0 comments · Fixed by #2680
Assignees

Comments

@annetill
Copy link
Member

Describe the current behavior

What we have to do now is:

Optional<TieLine> optionalTieLine = danglingLine.getTieLine();
if (optionalTieLine.isPresent()) {
       TieLine tieLine = optionalTieLine.get();
       DanglingLine otherSide = tieLine.getDanglingLine1() == danglingLine ? tieLine.getDanglingLine2() : tieLine.getDanglingLine1();

Describe the expected behavior

Add a dedicated method in the API that returns the optional other side dangling line.

Describe the motivation

No response

Extra Information

No response

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 a pull request may close this issue.

2 participants