Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] how to apply stereotypes???
[ATL] how to apply stereotypes??? [message #58092] Fri, 17 August 2007 10:59 Go to next message
Ivano is currently offline IvanoFriend
Messages: 35
Registered: July 2009
Member
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 08:01 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 147
Registered: July 2009
Senior Member
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 09:54 Go to previous messageGo to next message
Eclipse UserFriend
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/
--------------------------------------------------------
Re: [ATL] how to apply stereotypes??? [message #60145 is a reply to message #59560] Sat, 01 September 2007 15:09 Go to previous message
Ivano is currently offline IvanoFriend
Messages: 35
Registered: July 2009
Member
Thank you very much: everything works perfectly!

Ivano
Previous Topic:[ATL] comparaison of ATL with other transformation languages
Next Topic:[ATL] Splitting ASMModel
Goto Forum:
  


Current Time: Sat Apr 10 14:40:20 GMT 2021

Powered by FUDForum. Page generated in 0.04596 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top