Topic
2 replies Latest Post - ‏2011-01-16T12:42:24Z by erik.gollot
fed239
fed239
2 Posts
ACCEPTED ANSWER

Pinned topic Physical model structure import from EMX files

‏2010-02-05T12:28:14Z |
Hi everybody!

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!
Updated on 2011-01-16T12:42:24Z at 2011-01-16T12:42:24Z by erik.gollot
  • fed239
    fed239
    2 Posts
    ACCEPTED ANSWER

    Re: Physical model structure import from EMX files

    ‏2010-02-05T14:59:12Z  in response to fed239
    To 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"/>
    </children>
    <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Gu9ZpOr-Ed6Rwe4xfQp3IA" y="-186"/>
    </children>
    <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)"/>
    </edges>

    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
      erik.gollot
      5 Posts
      ACCEPTED ANSWER

      Re: Physical model structure import from EMX files

      ‏2011-01-16T12:42:24Z  in response to fed239
      not 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