Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2m-atl-dev] M2M UML transformation

Hi Mani,

For this kind of questions, please use the m2m newsgroup (news://news.eclipse.org/eclipse.modeling.m2m). This mailing list is used for ATL development discussions.

Thanks.

Best regards,
Freddy.

On 10/16/07, Mani Seyed Sadri <mani2s@xxxxxx> wrote:
Hello everybody,

I am new in ATL. I am trying to transform an UML-model to an UML-model (2.1). I create an Model and my own profile (Topcased). I added the profile to the source-model and marked my classes and associations with my stereotypes.
I copied a snippet code from the ATL-site (ModelCopy.atl). But it dont works!!!
The classes,associations in my target-model had no stereotypes!!!!
I work with eclipse 3.3 and ATL 0.5.0.

I appreciate your help!

Thank you!

module ModelCopy;

create OUT : UML from IN : UML;

rule Association {
    from s : UML!Association (s.oclIsTypeOf(UML!Association))
    to t : UML!Association mapsTo s (
        name <- s.name,
        ....
           ........

        stereotype <- s.stereotype,
     )
}

rule Class {
    from s : INMODEL!Class (s.oclIsTypeOf(INMODEL!Class))
    to t : OUTMODEL!Class mapsTo s (

        name <- s.name,
          ...
          .....
        stereotype <- s.stereotype,
)
}
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
_______________________________________________
m2m-atl-dev mailing list
m2m-atl-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2m-atl-dev



--
Freddy Allilaire - ATLAS Group (INRIA & LINA)
UFR des Sciences et Techniques - Nantes
2, rue de la Houssinière - 44322 Nantes cedex   3 - France
tel. +33 2 51 12 58 10 - fax. +33 2 51 12 58 12
e.mail: freddy.allilaire@xxxxxxxxxxxxxx
http://www.sciences.univ-nantes.fr/lina/atl/contrib/allilaire

Back to the top