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

Add edge type to metadata in network area diagram SVG #615

Merged
merged 2 commits into from May 13, 2024

Conversation

massimo-ferraro
Copy link
Contributor

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been modified (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Does this PR already have an issue describing the problem?
no

What kind of change does this PR introduce?
feature

What is the new behavior (if this is a feature change)?
Information about the edge type has been added to the metadata in the network area diagram SVG

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

Signed-off-by: massimo.ferraro <massimo.ferraro@soft.it>
graph.getThreeWtEdgesStream().forEach(edge -> metadata.addEdge(getPrefixedId(edge.getDiagramId()), edge.getEquipmentId(),
getPrefixedId(graph.getNode1(edge).getDiagramId()),
getPrefixedId(graph.getNode2(edge).getDiagramId()),
getPrefixedId(graph.getBusGraphNode1(edge).getDiagramId()),
getPrefixedId(graph.getBusGraphNode2(edge).getDiagramId())));
getPrefixedId(graph.getBusGraphNode2(edge).getDiagramId()),
"ThreeWtEdge"));
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be cleaner if ThreeWtEdge holds that string type.

In fact we should move the type attribute which is in BranchEdge in AbstractEdge, and add getType() method in the Edge empty interface. Could you do such a change in this PR?

Signed-off-by: massimo.ferraro <massimo.ferraro@soft.it>
Copy link

sonarcloud bot commented May 3, 2024

@flo-dup flo-dup merged commit 71c275d into main May 13, 2024
6 checks passed
@flo-dup flo-dup deleted the add_nad_metadata_edge_type branch May 13, 2024 07:53
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.

None yet

2 participants