|Re: Self-reference in viatra [message #1758343 is a reply to message #1758263]
||Mon, 27 March 2017 20:20
| Zoltan Ujhelyi
Registered: July 2015
I don't really understand what are you trying to achieve here. In general, self-references can be easily extended in VQL using two variables, like `Switch.connectsTo(a,b);` or even `Switch.connectsTo(a,a);` depending on what you want to achieve. If you provide a more precise use case, I would be better equipped to suggest a use.
However, if you only want to copy the model (or a subtree of it), you could also have a look at the EcoreUtil#copy static method provided by EMF.
Powered by FUDForum
. Page generated in 0.01961 seconds