|Trasfrom many source elements to one target element [message #988697]
||Sat, 01 December 2012 13:46
| Alessandro Ranieri
Registered: November 2012
Hello to everyone.|
I would like to write a rule that takes an arbitrary set of elements from the input model (for example all those have a particular name or feature) and create a simple target pattern.
In detail my problem is the following:
I would like to trasform a Network Lan in a Graph (in UML and Profiles). I have some simple source patterns and some simple target patterns. For example the source pattern host-link-router is translated in vertex-edge-vertex. The problem is that in the output model I have as many vertex that represent each router as many are the hosts connected to the router. So I thought that a second transformation could merge all the vertexes that correspond to same router in input model in a single vertex based on its name.
Thanks in advance for any suggest.
[Updated on: Sat, 01 December 2012 14:37]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01588 seconds