<br><font size=2 face="sans-serif">Attila, you were quicker with the reply
than I was :)</font>
<br>
<br>
<br><font size=2 face="sans-serif">-----------------------------------<br>
Aditya Agrawal<br>
Researcher<br>
IBM T. J. Watson<br>
mailto:aagrawa@us.ibm.com<br>
+1 (914) 784-6068 (TL 863)<br>
</font>
<br>
<br><font size=2><tt>great-users-bounces@list.isis.vanderbilt.edu wrote
on 04/05/2005 12:57:32 PM:<br>
<br>
> Global namespaces introduce model objects into the scope of each and<br>
> every rule in a transformation.<br>
> These model objects are neither instances of your source or target
<br>
> metamodel. Their types are specified in a dedicated, separate class
diagram.<br>
> >From these global accesible objects, other model objects can be
<br>
> traversed, whose type in turn can be part of any metamodel, such as
<br>
> your source or target metamodel.<br>
> Data variables, like those in ordinary programming languages, can
be<br>
> modeled with UML class attributes in GReAT. <br>
> This applies for global objects as well, and you can certainly set
<br>
> their values in AttributeMapping code specifications.<br>
> <br>
> HTH,<br>
> Attila<br>
> <br>
> <br>
> > -----Original Message-----<br>
> > From: Gábor Bátori (IJ/ETH) [mailto:Gabor.Batori@ericsson.com]
<br>
> > Sent: Tuesday, April 05, 2005 11:22<br>
> > To: great-users<br>
> > Subject: [great-users] global variable<br>
> > <br>
> > <br>
> > Is it possible to create 'global variables' in GReat, which <br>
> > are accessible in the AtrributeMappings of different rules? <br>
> > For instance a counter which counts the sub-tree elements of
<br>
> > a model, but the counter is not part of the source and the <br>
> > target meta-models.<br>
> > <br>
> > Thanks in advance,<br>
> > <br>
> > Gabor Batori<br>
> > <br>
> > _______________________________________________<br>
> > great-users mailing list<br>
> > great-users@list.isis.vanderbilt.edu<br>
> > http://list.isis.vanderbilt.edu/mailman/listinfo/great-users<br>
> > <br>
> _______________________________________________<br>
> great-users mailing list<br>
> great-users@list.isis.vanderbilt.edu<br>
> http://list.isis.vanderbilt.edu/mailman/listinfo/great-users<br>
</tt></font>