Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » QVT-OML » Refine profiled model in QVT-OML
Refine profiled model in QVT-OML [message #1746829] Sat, 05 November 2016 09:44 Go to next message
Ferdinando Sodano is currently offline Ferdinando SodanoFriend
Messages: 7
Registered: October 2016
Junior Member
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 09:59 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
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 15:07 Go to previous messageGo to next message
Ferdinando Sodano is currently offline Ferdinando SodanoFriend
Messages: 7
Registered: October 2016
Junior Member
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 23:28 Go to previous messageGo to next message
Ferdinando Sodano is currently offline Ferdinando SodanoFriend
Messages: 7
Registered: October 2016
Junior Member
Solved
Re: Refine profiled model in QVT-OML [message #1746848 is a reply to message #1746846] Sun, 06 November 2016 08:58 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
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 16:40 Go to previous message
Ferdinando Sodano is currently offline Ferdinando SodanoFriend
Messages: 7
Registered: October 2016
Junior Member
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: Sat Apr 20 03:10:56 GMT 2024

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

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

Back to the top