Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » Apply Profiles to UML models?
Apply Profiles to UML models? [message #49198] Tue, 26 June 2007 00:27 Go to next message
Leila Naslavsky is currently offline Leila NaslavskyFriend
Messages: 13
Registered: July 2009
Junior Member
Hi All,
I've seen many Q&A on the subject of applying profiles to an UML model.
I've seen Dennis' examples.
I've also seen posted examples that use applyProfile and getAppliedProfile
methods. I'm trying to use such example (copied from the messages in this
newsgroup) and I'm getting the following error(s):

message: ERROR: could not find operation getAppliedProfile on UML2!Model
having supertypes: [UML2!Package, OclType, OclAny] (including Java
operations)

Message: ERROR: could not find operation getAppliedStereotypes on
UML2!Class having supertypes: [UML2!BehavioredClassifier,
UML2!EncapsulatedClassifier, OclType, OclAny] (including Java operations)

In short, I'm a little lost :).

Could anyone explain how given a uml model M1 (.uml) and a uml profile P1
(.uml) I can generate a new model which results in the application of
profile P1 to model M1?

Is there still a problem on doing so? I'm guessing it was fixed by now...

Thanks!

- Leila
Re: Apply Profiles to UML models? [message #50000 is a reply to message #49198] Thu, 28 June 2007 12:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Hugo.Bruneliere.univ-nantes.fr

Leila a écrit :
> Hi All,

Hi Leila,

> I've seen many Q&A on the subject of applying profiles to an UML model.
> I've seen Dennis' examples. I've also seen posted examples that use
> applyProfile and getAppliedProfile methods. I'm trying to use such
> example (copied from the messages in this newsgroup) and I'm getting the
> following error(s):
>
> message: ERROR: could not find operation getAppliedProfile on UML2!Model
> having supertypes: [UML2!Package, OclType, OclAny] (including Java
> operations)
>
> Message: ERROR: could not find operation getAppliedStereotypes on
> UML2!Class having supertypes: [UML2!BehavioredClassifier,
> UML2!EncapsulatedClassifier, OclType, OclAny] (including Java operations)
>
> In short, I'm a little lost :).
>
> Could anyone explain how given a uml model M1 (.uml) and a uml profile
> P1 (.uml) I can generate a new model which results in the application of
> profile P1 to model M1?
>
> Is there still a problem on doing so? I'm guessing it was fixed by now...

Of course, it is possible to do that using ATL: I have recently been
working on developing such a transformation scenario of applying a UML
profile and it works well.

I'm using the latest version of ATL including the "uml4atl" UML2 driver:
see the complete thread
http://dev.eclipse.org/newslists/news.eclipse.modeling.m2m/m sg01124.html
for getting some instructions on how to install and use it.
Note that the use of this driver also requires the Eclipse/MDT UML2
component to be installed.

You can then used the UML2 model handler (instead of the EMF standard
one) to load the UML2 metamodel and to load the UML2 models.


> Thanks!
>
> - Leila
>
>

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: Apply Profiles to UML models? [message #51265 is a reply to message #50000] Sat, 07 July 2007 06:34 Go to previous message
Leila Naslavsky is currently offline Leila NaslavskyFriend
Messages: 13
Registered: July 2009
Junior Member
Hi Hugo,
Sorry I didn't thank you before, I got caught up in other activities :(.

I actually tried to use the UML handler, but I'm not sure I'm using the
newest ATL version... So, I'll try again with all-newest versions :).
At least I know it is possible, so its a matter of implementing !

Thanks again,

- Leila
Previous Topic:[ATL] how can I reference a remote metamodel
Next Topic:[ATL] Debugging problem
Goto Forum:
  


Current Time: Sun Jun 30 00:19:26 GMT 2024

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

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

Back to the top