[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[m2m-atl-dev] M2M UML transformation
|
- From: "Mani Seyed Sadri" <mani2s@xxxxxx>
- Date: Tue, 16 Oct 2007 23:14:46 +0200
- Delivered-to: m2m-atl-dev@eclipse.org
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