Skip to main content



      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 13:41 Go to next message
Eclipse UserFriend
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 04:42 Go to previous message
Eclipse UserFriend
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: Sun Aug 31 02:13:35 EDT 2025

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

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

Back to the top