Currently i'm implementing a plug-in for our product which allows to use RSARTE state chart diagrams, so i have to parse EMX files. Logical part is OK, but with physical layout there are some things that puzzles me in the format. So i'm wondering that whether there is some specification of the GMF (and/or EMX) and how i should interpret certain attributes and values with in that?
Thanks in advance!
This topic has been locked.
2 replies Latest Post - 2011-01-16T12:42:24Z by erik.gollot
Pinned topic Physical model structure import from EMX files
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2011-01-16T12:42:24Z at 2011-01-16T12:42:24Z by erik.gollot
fed239 270002VX512 PostsACCEPTED ANSWER
Re: Physical model structure import from EMX files2010-02-05T14:59:12Z in response to fed239To be more concrete I would add that, for example, i don't understand how to interpret targetAnchor and sourceAnchor tags from the following code.
<edges xmi:id="_Gu9ZoOr-Ed6Rwe4xfQp3IA" element="_Gu0PsOr-Ed6Rwe4xfQp3IA" source="_FsM8Ier-Ed6Rwe4xfQp3IA" target="_GBqOwer-Ed6Rwe4xfQp3IA">
<children xmi:id="_Gu9Zo-r-Ed6Rwe4xfQp3IA" type="TransitionLabelCompartment">
<children xmi:id="_Gu9Zper-Ed6Rwe4xfQp3IA" type="Stereotype"/>
<children xmi:id="_Gu9Zpur-Ed6Rwe4xfQp3IA" type="TransitionLabel"/>
<children xmi:id="_Gu9Zp-r-Ed6Rwe4xfQp3IA" type="Triggers">
<styles xmi:type="umlnotation:UMLListCompartmentStyle" xmi:id="_Gu9ZqOr-Ed6Rwe4xfQp3IA"/>
<layoutConstraint xmi:type="notation:Bounds" xmi:id="_Gu9ZpOr-Ed6Rwe4xfQp3IA" y="-186"/>
<styles xmi:type="umlnotation:UMLConnectorStyle" xmi:id="_Gu9Zoer-Ed6Rwe4xfQp3IA" lineWidth="1" showStereotype="Text"/>
<bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_Gu9Zour-Ed6Rwe4xfQp3IA" points="14, 1, -224, -13$214, -11, -24, -25"/>
<sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Gu9Zq-r-Ed6Rwe4xfQp3IA" id="(0.24952741,0.20037808)"/>
I the documentation i only found that "An anchor is a routing constraint installed on edges to identify where the source/target views should anchor that edge".
erik.gollot 06000196KR5 PostsACCEPTED ANSWER
Re: Physical model structure import from EMX files2011-01-16T12:42:24Z in response to fed239not sure because I don't know the exact XSD semantic but the definition seems to be clear. sourceAnchor and tragetAnchor of a edge are the "starting and ending points" of the edge. A edge is a "link" (~line) between 2 GMF elements