| 
| [ATL] how to apply stereotypes??? [message #58092] | Fri, 17 August 2007 06:59  |  | 
| Eclipse User  |  |  |  |  | Hi guys, can anyone give me an example transformation that takes as input a standard UML model and returns the same model with a profile and some
 stereotypes applied????
 
 I am able to apply a profile to a model, but tried without success for 3-4
 days to apply a stereotype to a UML component...
 
 I used Dennis Wagelaar's UML2Copy.atl and the UML2profile.ecore metamodel
 (as described in this forum), but the concept of stereotypes was totally
 ignored by my ATL transformations!
 
 I also tried to use the UML24ATL driver:
 
 - first I applied the profile to the model
 - but the call of "isStereotypeApplicable(stereotype)" on some component
 returned always "false"...
 
 I don't know what to do, does anyone have some answer??? I am sure someone
 has already applied UML stereotypes...
 
 
 Regards, Ivano
 |  |  |  | 
| 
| Re: [ATL] how to apply stereotypes??? [message #58670 is a reply to message #58092] | Mon, 20 August 2007 04:01   |  | 
| Eclipse User  |  |  |  |  | Ivano schreef: > Hi guys, can anyone give me an example transformation that takes as
 > input a standard UML model and returns the same model with a profile and
 > some stereotypes applied????
 >
 > I am able to apply a profile to a model, but tried without success for
 > 3-4 days to apply a stereotype to a UML component...
 >
 > I used Dennis Wagelaar's UML2Copy.atl and the UML2profile.ecore
 > metamodel (as described in this forum), but the concept of stereotypes
 > was totally ignored by my ATL transformations!
 
 Are you using the same profiles as I do? If not, you need to create your
 own UML2Profiles.ecore meta-model.
 
 I'm afraid I don't have the time to help you out step by step, but if
 you're interested in a working stereotype example, best follow the full
 instructions listed here:
 
 http://ssel.vub.ac.be/ssel/research:mdd:casestudies:installa tion:uml2casestudies
 
 >
 > I also tried to use the UML24ATL driver:
 >
 > - first I applied the profile to the model
 > - but the call of "isStereotypeApplicable(stereotype)" on some component
 > returned always "false"...
 >
 > I don't know what to do, does anyone have some answer??? I am sure
 > someone has already applied UML stereotypes...
 >
 >
 > Regards, Ivano
 >
 >
 
 Since I haven't tried this method recently, I'll leave this to the
 people who know how this works ;-).
 
 Kind regards,
 Dennis
 |  |  |  | 
| 
| Re: [ATL] how to apply stereotypes??? [message #59560 is a reply to message #58092] | Mon, 27 August 2007 05:54   |  | 
| Eclipse User  |  |  |  |  | Originally posted by: Hugo.Bruneliere.univ-nantes.fr 
 Hi Ivano,
 
 Ivano a écrit :
 > Hi guys, can anyone give me an example transformation that takes as
 > input a standard UML model and returns the same model with a profile and
 > some stereotypes applied????
 
 You can find from
 http://www.eclipse.org/gmt/modisco/useCases/PerformanceAnnot atedUmlStateCharts/
 a complete use case, using ATL, in which we apply a profile to a UML
 model (and so stereotypes to UML model elements).
 
 I hope this will help you.
 
 >
 > I am able to apply a profile to a model, but tried without success for
 > 3-4 days to apply a stereotype to a UML component...
 >
 > I used Dennis Wagelaar's UML2Copy.atl and the UML2profile.ecore
 > metamodel (as described in this forum), but the concept of stereotypes
 > was totally ignored by my ATL transformations!
 >
 > I also tried to use the UML24ATL driver:
 >
 > - first I applied the profile to the model
 > - but the call of "isStereotypeApplicable(stereotype)" on some component
 > returned always "false"...
 >
 > I don't know what to do, does anyone have some answer??? I am sure
 > someone has already applied UML stereotypes...
 >
 >
 > Regards, Ivano
 >
 >
 
 Best regards,
 
 Hugo
 
 --
 --------------------------------------------------------
 Hugo Bruneliere - R&D Engineer
 ATLAS Group (INRIA & LINA) - University of Nantes
 2, rue de la Houssiniere
 44322 Nantes Cedex 3 - France
 office +33 2 51 12 58 10 /\ cell.+33 6 07 42 45 30
 EMail: Hugo.Bruneliere@univ-nantes.fr
 http://www.sciences.univ-nantes.fr/lina/atl/
 --------------------------------------------------------
 |  |  |  | 
|  | 
Powered by 
FUDForum. Page generated in 0.03446 seconds