<html>

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered)">
<title>RE: [great-users] Terminating &amp; Aspects</title>

<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
p
        {margin-right:0in;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.emailstyle18
        {font-family:Arial;
        color:navy;}
span.EmailStyle20
        {font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Matt/Tivadar,</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Sorry for responding without reading all
the way thru. Matt, I stand corrected &#8211; I didn&#8217;t realize that GME
has changed its ways in how it stores position :-), tells you its been a long
time since I did any real work :-)</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks,</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Sandeep</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<div>

<p class=MsoAutoSig><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>--</span></font></p>

<p class=MsoAutoSig><font size=3 color=navy face="Times New Roman"><span
 style='font-size:12.0pt;color:navy'>Sandeep Neema</span></font></p>

<p class=MsoAutoSig><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'>Research Scientist,</span></font></p>

<p class=MsoAutoSig><font size=3 color=navy face="Times New Roman"><span
  style='font-size:12.0pt;color:navy'>Institute</span></font><font color=navy><span
 style='color:navy'> of Software</span></font><font color=navy><span
style='color:navy'> Integrated Systems, Vanderbilt University</span></font></p>

<p class=MsoAutoSig><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'>Phone: 615-343-9996</span></font></p>

<p class=MsoAutoSig><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'>Email: <a
href="mailto:sandeep.k.neema@vanderbilt.edu">sandeep.k.neema@vanderbilt.edu</a></span></font></p>

</div>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> great-users-bounces@list.isis.vanderbilt.edu [mailto:great-users-bounces@list.isis.vanderbilt.edu]
<b><span style='font-weight:bold'>On Behalf Of </span></b>Sandeep Neema<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, May 25, 2005
10:27 AM<br>
<b><span style='font-weight:bold'>To:</span></b> great-users<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: [great-users] Terminating &amp; Aspects</span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Matt/Tivadar,</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I believe that it is possible to access
the position information for a specific attribute in a specific aspect, and I
have done that in the past. Unfortunately I was not able to locate a code
snippet that I could send over to you. As far as I recall you could define
position as a &#8220;registry&#8221; attribute in your UML class diagram
(generated from MetaGME2UML &#8211; you will have to hand modify the generated
UML class diagram). If you have multiple aspects then GME stores position as a
string in the registry node somewhat like this
&#8220;Aspect1(100,34),Aspect2(150,95),&#8230;&#8221;, you can look up the
registry node in your GME model to see how specifically it is stored. Using UDM
DS-API you should be able to access this string, from that point on it should
be manageable &#8211;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>-- Sandeep</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<div>

<p class=MsoAutoSig><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>--</span></font></p>

<p class=MsoAutoSig><font size=3 color=navy face="Times New Roman"><span
 style='font-size:12.0pt;color:navy'>Sandeep Neema</span></font></p>

<p class=MsoAutoSig><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'>Research Scientist,</span></font></p>

<p class=MsoAutoSig><font size=3 color=navy face="Times New Roman"><span
 style='font-size:12.0pt;color:navy'>Institute</span></font><font color=navy><span
style='color:navy'> of Software Integrated Systems, Vanderbilt University</span></font></p>

<p class=MsoAutoSig><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'>Phone: 615-343-9996</span></font></p>

<p class=MsoAutoSig><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'>Email: <a
href="mailto:sandeep.k.neema@vanderbilt.edu">sandeep.k.neema@vanderbilt.edu</a></span></font></p>

</div>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> great-users-bounces@list.isis.vanderbilt.edu [mailto:great-users-bounces@list.isis.vanderbilt.edu]
<b><span style='font-weight:bold'>On Behalf Of </span></b>Matthew J. Emerson<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, May 25, 2005
10:02 AM<br>
<b><span style='font-weight:bold'>To:</span></b> great-users; udm-users<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: [great-users] Terminating &amp; Aspects</span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;</span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>In response to 2, here's how it's done in BON2:</span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font><font size=2 color=green face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:green'>// Obtaining the
position of an FCO in the Aspect &#8216;FOO&#8217;</span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>BON::Point pt = BON::FCOExRegistryNode(</span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font><font size=2
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>fco-&gt;getRegistry())-&gt;getLocation(&quot;FOO&quot;);</span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>I know that it's possible to work with registry entries in UDM,
but</span></font> <font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>I really doubt you can get the position information
for a specific</span></font> <font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>aspect. Look</span></font> <font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>how
it shows up in the registry:</span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;</span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>You can see that this is the registry for an object named
RootFolder, which appears in two aspects: Transform and Template. It has a
position attribute for each aspect in which it appears. But, the position part
is nested.</span></font> <font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>IIRC,</span></font> <font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>UDM
doesn't allow access to or creation of nested registry</span></font> <font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>entries.</span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>I'm adding this to the UDM mailing list, since I think it's
really a UDM question.</span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>-Matt</span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt;</span></font> <font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>-----Original Message-----</span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt;</span></font> <font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>From: great-users-bounces@list.isis.vanderbilt.edu
[<a href="mailto:great-users-">mailto:great-users-</a></span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt;</span></font> <font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>bounces@list.isis.vanderbilt.edu]
On Behalf Of Tivadar Szemethy</span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt;</span></font> <font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>Sent: Wednesday, May 25,
2005 9:18 AM</span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt;</span></font> <font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>To: great-users</span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt;</span></font> <font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>Subject: [great-users] Terminating &amp; Aspects</span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt; </span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt;</span></font> <font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>Hi,</span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt; </span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt;</span></font> <font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>I have 2 questions:</span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt; </span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt;</span></font> <font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>1) How do I terminate the
transformation nicely from an AttributeMapping /</span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt;</span></font> <font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>Guard box ?</span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt; </span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt;</span></font> <font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>I figured out that the
MessageBox(...) call works well and I can warn the</span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt;</span></font> <font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>user if something is wrong
with the input model. What if I want to quit</span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt;</span></font> <font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>right after that ?</span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt; </span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt;</span></font> <font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>2) How do I work with
aspects ?</span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt; </span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt;</span></font> <font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>How do I figure out which
aspect is used by the Object.position()</span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt;</span></font> <font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>attribute in the first place
? It looks arbitrary to me.</span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt;</span></font> <font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>The problem is that I have
an input model with multiple aspects (I have to</span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt;</span></font> <font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>define multiple ordering for
certain objects and the meta uses multiple</span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt;</span></font> <font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>aspects to achieve this).
I'd like to extract the position within each</span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt;</span></font> <font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>aspect from a GReAT rule.
How can I do that ?</span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt; </span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt;</span></font> <font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>Thanks,</span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt;</span></font> <font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>Tivadar</span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt;</span></font> <font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>_______________________________________________</span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt;</span></font> <font size=2 face="Courier New"><span
 style='font-size:10.0pt;font-family:"Courier New"'>great-users</span></font><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>
mailing list</span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt;</span></font> <font size=2 face="Courier New"><span
 style='font-size:10.0pt;font-family:"Courier New"'>great-users</span></font><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>@list.isis.vanderbilt.edu</span></font></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&gt;</span></font> <font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><a
href="http://list.isis.vanderbilt.edu/mailman/listinfo/great-users">http://list.isis.vanderbilt.edu/mailman/listinfo/great-users</a></span></font></p>

</div>

</div>

</div>

</body>

</html>