Apply Profiles to UML models? [message #49198] |
Mon, 25 June 2007 20:27  |
Eclipse User |
|
|
|
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 08:12   |
Eclipse User |
|
|
|
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 02:34  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.04073 seconds