Skip to main content



      Home
Home » Modeling » QVT-OML » Refine profiled model in QVT-OML
Refine profiled model in QVT-OML [message #1746829] Sat, 05 November 2016 05:44 Go to next message
Eclipse UserFriend
Hi, guys.
Is it possibile to refine a profiled UML Model in order to add some elements without modify anything else in a qvt-oml transformation? Thank you for the answer.
Re: Refine profiled model in QVT-OML [message #1746831 is a reply to message #1746829] Sat, 05 November 2016 05:59 Go to previous messageGo to next message
Eclipse UserFriend
Hi

I don't see why it should not be possible.

Regards

Ed Willink
Re: Refine profiled model in QVT-OML [message #1746841 is a reply to message #1746831] Sat, 05 November 2016 11:07 Go to previous messageGo to next message
Eclipse UserFriend
I'm trying to do this operation with a inout profiled model as parameter of the transformation , but i lose the stereotypes applied. Can you explain me How to do this operation in the right manner? Can you show me some example? Thanks.
Re: Refine profiled model in QVT-OML [message #1746846 is a reply to message #1746841] Sat, 05 November 2016 19:28 Go to previous messageGo to next message
Eclipse UserFriend
Solved
Re: Refine profiled model in QVT-OML [message #1746848 is a reply to message #1746846] Sun, 06 November 2016 03:58 Go to previous messageGo to next message
Eclipse UserFriend
HI

Good. Other users may make the similar mistakes and developers can learn from the mistakes users make, so please share the secret of your solution, no matter how stupid you may feel about it.

Regards

Ed Willink
Re: Refine profiled model in QVT-OML [message #1746918 is a reply to message #1746848] Mon, 07 November 2016 11:40 Go to previous message
Eclipse UserFriend
in transformation FooBar(inout mymodel : UML);

property stereotype_bla_bla  : Stereotype =  mymodel.objects()[Stereotype]![name = 'BlaBla'];


didn't work properly.

I solved the problem adding the profile.uml as input parameter and writing
property stereotype_bla_bla  : Stereotype =  profile.objects()[Stereotype]![name = 'BlaBla'];



I thought it was not necessary to pass the profile as additional input because the model was already profiled.
Previous Topic:How to set tagged values after applying a profile
Next Topic:set XMI id of object during a QVTo transformation
Goto Forum:
  


Current Time: Mon Apr 28 04:44:58 EDT 2025

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

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

Back to the top