<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Sandeep, Joe<br>
<br>
<blockquote
 cite="mid7AB1C26C64423249964AB392C6EBF0E00515B5@discovery.isis.vanderbilt.edu"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator" content="Microsoft Word 11 (filtered)">
  <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:purple;
        text-decoration:underline;}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle17
        {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>
  <div class="Section1">
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Joe,</span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">This did
come up in prior discussions wrt
GREAT. The idea there was to create templatized patterns that could be
instantiated
and reused in different transformation contexts. I am not sure to what
extent it
has been implemented &#8211; perhaps one of the core developers could comment
&#8211;</span></font></p>
  </div>
</blockquote>
(I'm not a GR developer, I'm just chiming in if I might)<br>
<br>
This can _almost_ be done even with the current GReAT, I tried it once.<br>
(and I'm not sure if what's&nbsp; preventing you from doing it is actually a
bug or a feature).<br>
<br>
The idea is that you define your generic patterns on MgaObjects of a
very simplistic metamodel, and then use the<br>
LibraryUpdater to customize the patterns for your metamodel (i.e.
redirect MgaObj references). This part&nbsp; works.<br>
<br>
What does not work though is that you cannot create generic
connections, i.e. the pattern matcher does not recognize<br>
"Any" connections associated with MgaObjects. I can think of this as a
bug, since I'm not sure what ConnectorAny was <br>
intended for (if not for this - I know that connection inheritance is a
shady business in GReAT anyway, so I'm not sure).<br>
<br>
<br>
Tivadar<br>
<br>
<br>
<blockquote
 cite="mid7AB1C26C64423249964AB392C6EBF0E00515B5@discovery.isis.vanderbilt.edu"
 type="cite">
  <div class="Section1">
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Thanks,</span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Sandeep</span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>
  <div>
  <p class="MsoAutoSig"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">--</span></font></p>
  <p class="MsoAutoSig"><font color="navy" face="Times New Roman"
 size="3"><span style="font-size: 12pt; color: navy;">Sandeep Neema</span></font></p>
  <p class="MsoAutoSig"><font color="navy" face="Times New Roman"
 size="3"><span style="font-size: 12pt; color: navy;">Research
Scientist,</span></font></p>
  <p class="MsoAutoSig"><font color="navy" face="Times New Roman"
 size="3"><span style="font-size: 12pt; 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 color="navy" face="Times New Roman"
 size="3"><span style="font-size: 12pt; color: navy;">Phone:
615-343-9996</span></font></p>
  <p class="MsoAutoSig"><font color="navy" face="Times New Roman"
 size="3"><span style="font-size: 12pt; color: navy;">Email: <a
 href="mailto:sandeep.k.neema@vanderbilt.edu">sandeep.k.neema@vanderbilt.edu</a></span></font></p>
  </div>
  <div
 style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; padding: 0in 0in 0in 4pt;">
  <div>
  <div class="MsoNormal" style="text-align: center;" align="center"><font
 face="Times New Roman" size="3"><span style="font-size: 12pt;">
  <hr tabindex="-1" align="center" size="2" width="100%"></span></font></div>
  <p class="MsoNormal"><b><font face="Tahoma" size="2"><span
 style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font
 face="Tahoma" size="2"><span
 style="font-size: 10pt; font-family: Tahoma;">
  <a class="moz-txt-link-abbreviated"
 href="mailto:great-users-bounces@list.isis.vanderbilt.edu">great-users-bounces@list.isis.vanderbilt.edu</a>
[<a class="moz-txt-link-freetext"
 href="mailto:great-users-bounces@list.isis.vanderbilt.edu">mailto:great-users-bounces@list.isis.vanderbilt.edu</a>]
  <b><span style="font-weight: bold;">On Behalf Of </span></b>Joe
Porter<br>
  <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, May 09,
2006 9:20
AM<br>
  <b><span style="font-weight: bold;">To:</span></b> great-users<br>
  <b><span style="font-weight: bold;">Subject:</span></b> [great-users]
Transformation idioms</span></font></p>
  </div>
  <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;">&nbsp;</span></font></p>
  <p class="MsoNormal" style="margin-bottom: 12pt;"><font
 face="Times New Roman" size="3"><span style="font-size: 12pt;">I have
a question:<br>
  <br>
Looking at the approach and capabilities of the GReAT toolchain, it
seems like
you would want to have some common algorithmic idioms.&nbsp; I'm thinking of
things like finding disjoint subgraphs or spanning trees.&nbsp; One of the
examples also mentioned topological sort. I'm stretching a little here
since I
haven't used the tool, but this is a journey of understanding.&nbsp;&nbsp; Is
there a way to do that sort of thing generically for different
metamodels, or
are things like that even useful in practice?&nbsp; Or rather, have I missed
something regarding the approach? <br>
  <br>
Hopefully all of you that use GReAT on a regular basis can steer me in
the
right direction.<br>
  <br>
Thanks,<br>
-Joe Porter<br>
Southwest Research Institute</span></font></p>
  </div>
  </div>
  <pre wrap=""><hr size="4" width="90%">
_______________________________________________
great-users mailing list
<a class="moz-txt-link-abbreviated"
 href="mailto:great-users@list.isis.vanderbilt.edu">great-users@list.isis.vanderbilt.edu</a>
<a class="moz-txt-link-freetext"
 href="http://list.isis.vanderbilt.edu/mailman/listinfo/great-users">http://list.isis.vanderbilt.edu/mailman/listinfo/great-users</a>
  </pre>
</blockquote>
<br>
</body>
</html>