Home » Archived » M2M (model-to-model transformation) » Load reference Problem 
| Load reference Problem [message #54796] | 
Thu, 26 July 2007 03:53   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: ali.akar.tni-software.com 
 
I' working on a transformation  from AADL to HRT-UML2 under ATL. 
For HRT-UML2, I use the metamodel loaded in memory while for AADL, I use the  
..ecore which consists of 7 packages. 
The input file of the transformation have an aael extension. It is obtained,  
by a conversion under OSATE, starting from the file with aaxl extension. 
The problem, that ATL does not succeed in charging the references or to  
solve them. 
For example in the following expression: <processImpl name= " GesVol "  
compType= " #//@processType.0 "/> 
when I want to get  the component type, which is the comType, ATL returns an  
empty list!! 
 
Any one can help me ?? 
 
Thanks, 
A AKAR
 |  
 |  
  |  
| [ATL]Re: Load reference Problem [message #55063 is a reply to message #54796] | 
Fri, 27 July 2007 07:56    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Ali a écrit : 
> I' working on a transformation  from AADL to HRT-UML2 under ATL. 
> For HRT-UML2, I use the metamodel loaded in memory while for AADL, I use the  
> .ecore which consists of 7 packages. 
> The input file of the transformation have an aael extension. It is obtained,  
> by a conversion under OSATE, starting from the file with aaxl extension. 
> The problem, that ATL does not succeed in charging the references or to  
> solve them. 
> For example in the following expression: <processImpl name= " GesVol "  
> compType= " #//@processType.0 "/> 
> when I want to get  the component type, which is the comType, ATL returns an  
> empty list!! 
>  
> Any one can help me ?? 
>  
> Thanks, 
> A AKAR  
>  
>  
Hello, 
 
First, could you prefix you subject with [ATL], next time (I did it for  
that post) ? Thanks. 
 
Then I'm not sure, but the problem seems to be in your input model, from  
the compType= " #//@processType.0 " expression. Generally those kind of  
references needs to indicate a filename before the #. Perhaps the  
problem comes from the OSATE conversion. 
 
In order to ensure that, could you also post the atl fragment where you  
try to get that reference ? 
 
Regards, 
--  
William Piers 
MDA Consultant, Obeo (http://www.obeo.fr)
 |  
 |  
  |   |  
| Re: [ATL]Re: [ATL]Re: Load reference Problem [message #55152 is a reply to message #55123] | 
Fri, 27 July 2007 10:55    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Ali a écrit : 
> Hello, 
>  
> I thought that the problem is in the OSATE conversion, so I changed the file  
> extension from aael to xmi, when I open the file, I can see the referenced  
> objects  in the Eclipse property sheet.so I estimate that the problem isn't  
> in the reference, but in the way that ATL resolve them ?? 
>  
> below is the ATL rule : 
>  
> rule ProcessImpl2RCMcomponent { 
>     from 
>         e : AADL!ProcessImpl 
>  
>     to 
>         comp : RCM!RCMcomponent ( 
>             name <- if e.name.oclIsUndefined() then 'myRCMcomponent' else  
> e.name + '_AP' endif, 
>  
>            providedTypes <- thisModule.resolveTemp(e.compType,'e') 
>         ) 
>  
>     do { 
>         e.compType.debug('compType');   -- result is OCLundefined !!! 
>     } 
> } 
>  
> Thanks, 
> A AKAR 
>  
>  
> "William Piers" <william.piers@obeo.fr> a écrit dans le message de news:  
> f8cmh4$74m$1@build.eclipse.org... 
>> Ali a écrit : 
>>> I' working on a transformation  from AADL to HRT-UML2 under ATL. 
>>> For HRT-UML2, I use the metamodel loaded in memory while for AADL, I use  
>>> the .ecore which consists of 7 packages. 
>>> The input file of the transformation have an aael extension. It is  
>>> obtained, by a conversion under OSATE, starting from the file with aaxl  
>>> extension. 
>>> The problem, that ATL does not succeed in charging the references or to  
>>> solve them. 
>>> For example in the following expression: <processImpl name= " GesVol "  
>>> compType= " #//@processType.0 "/> 
>>> when I want to get  the component type, which is the comType, ATL returns  
>>> an empty list!! 
>>> 
>>> Any one can help me ?? 
>>> 
>>> Thanks, 
>>> A AKAR 
>> Hello, 
>> 
>> First, could you prefix you subject with [ATL], next time (I did it for  
>> that post) ? Thanks. 
>> 
>> Then I'm not sure, but the problem seems to be in your input model, from  
>> the compType= " #//@processType.0 " expression. Generally those kind of  
>> references needs to indicate a filename before the #. Perhaps the problem  
>> comes from the OSATE conversion. 
>> 
>> In order to ensure that, could you also post the atl fragment where you  
>> try to get that reference ? 
>> 
>> Regards, 
>> --  
>> William Piers 
>> MDA Consultant, Obeo (http://www.obeo.fr)  
>  
>  
Could you provide us the aael and aaxl files ? This will really help us  
to understand the problem, and to check the conversion result. 
 
Thanks in advance, 
--  
William Piers 
MDA Consultant, Obeo (http://www.obeo.fr)
 |  
 |  
  |   |   |  
| [ATL]Re: Load reference Problem [message #55616 is a reply to message #54796] | 
Wed, 01 August 2007 09:18    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: lwrage.sei.cmu.edu 
 
Ali, 
 
you could try to use the metamodel uri (http:///AADL/core) as the AADL 
metamodel and use the aaxl model files directly. For this to work you 
need to have OSATE and ATL installed in the same eclipse instance. 
 
- Lutz 
 
Ali wrote, on 7/26/2007 3:53 AM: 
> I' working on a transformation  from AADL to HRT-UML2 under ATL. 
> For HRT-UML2, I use the metamodel loaded in memory while for AADL, I use the  
> ..ecore which consists of 7 packages. 
> The input file of the transformation have an aael extension. It is obtained,  
> by a conversion under OSATE, starting from the file with aaxl extension. 
> The problem, that ATL does not succeed in charging the references or to  
> solve them. 
> For example in the following expression: <processImpl name= " GesVol "  
> compType= " #//@processType.0 "/> 
> when I want to get  the component type, which is the comType, ATL returns an  
> empty list!! 
>  
> Any one can help me ?? 
>  
> Thanks, 
> A AKAR  
>  
>
 |  
 |  
  |   |   |   |   |   |   |   
Goto Forum:
 
 Current Time: Tue Nov 04 02:43:09 EST 2025 
 Powered by  FUDForum. Page generated in 0.06266 seconds  
 |