[gme-users] how to connect atoms in different models
Nicki Lehmann Møller
nicki at itu.dk
Wed Sep 20 23:26:00 CDT 2006
Hi Akos and Christian,
Thanks a bunch. I got it to work once I deleted my current aspect (and used
the default) and made the connection go through the reference just like
Christian stated (Sorry Christian for not listening :))
Thanks to you both.
-Nicki
On 9/18/06, Akos Ledeczi <akos.ledeczi at vanderbilt.edu> wrote:
>
> Nicki,
>
> Christian is right, you need to have the connection point to the
> reference. So, you probably have another issue such as not adding the
> connection itself to the aspect, if this does not help. BTW, an easy way
> to not having to worry about aspects for a while, is to delete your only
> aspect and then the metainterpreter will insert a default one for you
> and it'll also make sure that everybody is added to it.
>
> Now, back to references. If you have an atom that shows up as a port of
> some model and you can make a connection to the model through that port
> than the same is true for a reference to the model. In that case, it is
> true that you make the connection to the atom in the metamodel and it'll
> work for models and references to those models as long as the atom is a
> port of them. But in your example, I do not see any indication that that
> is what you are trying to do. Again, if you are connecting directly to
> atoms and directly to references (not thru ports) than you need to have
> the connection in the meta allow both. We typically use an abstract fco
> in the metamodel, make the connection to it and have an atom and a ref
> to it inherit from the fco.
>
> Hope this helps,
> Akos
>
>
> Nicki Lehmann Møller wrote:
> > Hi Christian,
> >
> > I'm quite sure that that is not the correct way to use references.
> > However I did try it but without any luck. Thanks for the suggestion
> > though :)
> >
> > -Nicki
> >
> > On 9/18/06, *Christian Brunette* <Christian.Brunette at irisa.fr
> > <mailto:Christian.Brunette at irisa.fr>> wrote:
> >
> > Hi,
> >
> > I think you have to put your connection between ReferenceToAtomB
> (not B)
> > and A.
> >
> > Christian
> >
> > Nicki Lehmann Møller wrote:
> >
> > > Hi all!
> > >
> > > Could someone please help me solve my little aspect problem and
> tell
> > > me how to connect atoms placed in different models.
> > > As can seen on my metamodel (see attachment) I've created a
> reference
> > > between the model-object (ModelA) and the "external" atom (AtomB)
> > > which means that I able to create the reference inside the
> > > model-object (ModelA). However when I'm using the metamodel and I
> try
> > > to create a connection between two atoms (AtomA and
> > ReferenceToAtomB)
> > > I get a paradigm violation stating that I cannot create a
> connection
> > > in the current aspect (WholeAspect). I know that this indicates
> that
> > > something is wrong with my aspect, but I have no clue on what
> > :( Any
> > > suggestions are therefore greatly appreciated.
> > >
> > > --
> > > Kind Regards,
> > > Nicki
> > >
> >
> ------------------------------------------------------------------------
> > >
>
> > >------------------------------------------------------------------------
> >
> > >
> > >_______________________________________________
> > >gme-users mailing list
> > >gme-users at list.isis.vanderbilt.edu
> > <mailto:gme-users at list.isis.vanderbilt.edu>
> > > http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
> > >
> > >
> >
> > --
> > Christian Brunette
> > Expert Engineer in the ESPRESSO team
> > IRISA-INRIA, Campus de Beaulieu, 35042 Rennes cedex, France
> > Phone: +33 (0) 2 99 84 72 31, Fax: +33 (0) 2 99 84 71 71
> >
> > _______________________________________________
> > gme-users mailing list
> > gme-users at list.isis.vanderbilt.edu
> > <mailto:gme-users at list.isis.vanderbilt.edu>
> > http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
> >
> >
> >
> >
> > --
> > Kind Regards,
> > Nicki
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > gme-users mailing list
> > gme-users at list.isis.vanderbilt.edu
> > http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
>
> _______________________________________________
> gme-users mailing list
> gme-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
>
--
Kind Regards,
Nicki
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20060920/f16d47bf/attachment.htm
More information about the gme-users
mailing list