|AQL for deleting edges to/from alias [message #1824186]
||Thu, 09 April 2020 08:25
| Akira Tanaka
Registered: March 2010
Dear Sirius experts/users,|
I am working on aql for deleting edges to/from alias model element. I would very much appreciate any suggestion or comment from you.
Since the real project is complex, I created a simplified version of ecore model and odesign file, which are for slightly extended network (node+link) diagramming tool based on Sirius.
Interesting part is an introduction of Alias pointing to original Node. Since diagram size increases, it is sometimes very useful to have alias element to represent common or important concepts to connect to at various places in the large diagram.
Above sample diagram shows 3 nodes (A, B, and C) and 1 allias, representing node A, and links among them.
I would like to achieve the following. When deleting the original node (in this case, node A), any number of aliases representing original node should also be deleted with incoming/outgoing edges associated with them.
I am able to delete diagram elements, but am not able to delete semantic element. In this case, if I delete node A, the result looks like:
However the model file looks like this, and I get error messages when trying to save the file (because of those undeleted elements).
[Delete tool for Node]
Code for loop i, j, k are:
i: aql:elementView.incomingEdges.target + elementView.outgoingEdges.target ->asOrderedSet()
k: aql:j.oclAsType(DNode).incomingEdges.target+ j.oclAsType(DNode).outgoingEdges.target ->asOrderedSet()
It seems i works but j and k do not work. I would appreciate any comment or suggestion.
Thank you very much in advance.
(Size: 41.76KB, Downloaded 338 times)
(Size: 36.97KB, Downloaded 181 times)
(Size: 16.44KB, Downloaded 160 times)
(Size: 22.65KB, Downloaded 165 times)
(Size: 37.23KB, Downloaded 164 times)
[Updated on: Thu, 09 April 2020 08:32]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01810 seconds