<br><font size=2><tt>Vamshi wrote on 04/24/2005 01:34:50 PM:<br>
<br>
&gt; I'll try to make the example clearer:<br>
&gt; 1)<br>
&gt; Lets say I've defined a language with delay, gain, adder and patch-cord
<br>
&gt; components (L1), using MetaGME (MG). This gives me a simple language
for <br>
&gt; describing digital filters. It also gives me a nice visual environment
<br>
&gt; (V1) to do this. Now I give my environment to a signal processing
expert <br>
&gt; and ask him to describe a language that contains predefined filters
like <br>
&gt; feedforward comb filters (FFCFs), feedback comb filters (FBCFs), allpass
<br>
&gt; filters (APs), etc using this environment. The description of this
new <br>
&gt; language L2 is much more concise and clear in L1, than in MG. So one
<br>
&gt; motivation is readability/maintainability.<br>
&gt; 2)<br>
&gt; Now lets assume the expert was able to define L2 and it's corresponding
<br>
&gt; environment V2 using L1-V1. This would give me L2-V2 which has FFCFs
and <br>
&gt; FBCFs, whose parameters are defined visually in V1. (So people familiar
<br>
&gt; with the notation from a typical electrical engineering textbook could
<br>
&gt; use V1 with little training to create the new language+environment
of <br>
&gt; L2-V2). Further, I could define, similar to GReAT, *patterns*/sequences
<br>
&gt; of filters/filter-networks, using the V1 notation. Describing these
<br>
&gt; patterns in the MG notation (class diagrams), might be difficult or
<br>
&gt; impossible for the domain expert, but maybe possible with little effort
<br>
&gt; using V1 + a pattern language.<br>
&gt; So the other motivation is reuse. Can the &quot;domain-specific visual
<br>
&gt; modeling&quot; idea be extended to &quot;domain-specific visual metamodeling&quot;
?<br>
&gt; <br>
&gt; I hope that was a better description.<br>
&gt; One solution I can think of is to write an *interpreter* for L1 which
<br>
&gt; generates and registers the paradigm L2 and the corresponding <br>
&gt; metaconfiguration file for V2. Perhaps I should take a look at the
<br>
&gt; GME-GUI code to see how this is done? Or maybe I can do this with
GReAT?<br>
</tt></font>
<br><font size=2><tt>Now I understand the motivation better. As Mat suggested
you can use the type/subtype/instance feature of GME. This will give a
dynamic type system where say signal processing experts can create more
complex type based on the simple types defined in the meta. Users can use
these concepts by attaching the complex types as libraries.</tt></font>
<br>
<br><font size=2><tt>The other alternative as you mentioned is to write
an interpreter that could convert an instance of P1 to produce a new metamodel
P2. Here you have to be careful because you will be using P1 in two roles,
(1) as a metamodeling environment and (2) as a modeling environment. You
can however, define clear semantics for both and then write the interpreter.</tt></font>
<br>
<br><font size=2><tt>Since the MetaGME paradigm is the same as any other
modeling paradigm in GME, you can use any of the model access API's to
write such an interpreter. GReAT would actually be quite useful for this
task as these are the kind of scenarios it has been designed for.</tt></font>
<br>
<br><font size=2><tt>Thanks,</tt></font>
<br><font size=2><tt>Adi</tt></font>
<br>
<br>