Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] working with the href references of two models
[ATL] working with the href references of two models [message #660070] Wed, 16 March 2011 17:41 Go to next message
Kelly Garces is currently offline Kelly GarcesFriend
Messages: 39
Registered: July 2009
Member
Hi,

I am working with two models (e.g., M1 and M2) that conform to different
metamodels. An element of M1 has a reference to an element of M2.
Instead of an "object reference", the reference is a href (kind of
string containing a xmiID).
So, to get the real element of M2, I used the operation
allInstancesFrom('M2') and I select the element having the same xmiID.
Since the allInstanceFrom operation has a high cost, I wonder if there
exist a better way of recovering the M2 element given the href?

Thank you for your suggestions,

--
Kelly Garcés
INRIA Sophia Antipolis - Méditerranée
Post-doct fellow with AOSTE team
http://www-sop.inria.fr/members/Kelly.Garces_Pernett/
Re: [ATL] working with the href references of two models [message #660172 is a reply to message #660070] Thu, 17 March 2011 08:42 Go to previous message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARDFriend
Messages: 556
Registered: July 2009
Senior Member
Just use the reference directly, the href is managed by EMF and you don't have to care about that (don't forget to allow inter model references though).
Previous Topic:[ATL] external parameters
Next Topic:[ATL] Plugin-Development - ClassNotFoundException
Goto Forum:
  


Current Time: Mon Apr 19 07:29:27 GMT 2021

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

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

Back to the top