Home » Archived » M2M (model-to-model transformation) » Load reference Problem
Load reference Problem [message #54796] |
Thu, 26 July 2007 07: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 11:56 |
William Piers Messages: 302 Registered: July 2009 |
Senior Member |
|
|
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)
|
|
|
[ATL]Re: [ATL]Re: Load reference Problem [message #55123 is a reply to message #55063] |
Fri, 27 July 2007 14:04 |
Eclipse User |
|
|
|
Originally posted by: ali.akar.tni-software.com
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
|
|
|
Re: [ATL]Re: [ATL]Re: Load reference Problem [message #55152 is a reply to message #55123] |
Fri, 27 July 2007 14:55 |
William Piers Messages: 302 Registered: July 2009 |
Senior Member |
|
|
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 13: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
>
>
|
|
|
Re: [ATL]Re: [ATL]Re: Load reference Problem [message #55886 is a reply to message #55589] |
Fri, 03 August 2007 10:32 |
Eclipse User |
|
|
|
Originally posted by: ali.akar.tni-software.com
Hello,
I checked out from CVS the plugins, but I can't run the transformation and I
have many events error in the Error log, here some of these errors :
>>java.lang.NullPointerException (error appears each time I click in the
>>ATL editor)
at
org.eclipse.m2m.atl.adt.ui.outline.AtlContentOutlinePage.sho wItem(AtlContentOutlinePage.java:503)
at
org.eclipse.m2m.atl.adt.ui.outline.AtlContentOutlinePage.doS etSelection(AtlContentOutlinePage.java:384)
at
org.eclipse.m2m.atl.adt.ui.outline.AtlContentOutlinePage.set Selection(AtlContentOutlinePage.java:489)
at
org.eclipse.m2m.atl.adt.ui.editor.AtlEditor.synchronizeOutli nePageSelection(AtlEditor.java:1191)
at
org.eclipse.m2m.atl.adt.ui.editor.AtlEditor$EditorSelectionC hangedListener.selectionChanged(AtlEditor.java:343)
at
org.eclipse.jface.text.TextViewer.firePostSelectionChanged(T extViewer.java:2512)
at
org.eclipse.jface.text.TextViewer.firePostSelectionChanged(T extViewer.java:2464)
.....
>>An exception stack trace is not available.
I used two ways to work with ATL, by expoting the plugins as jar files and
by run and Eclipse application, with both I have problems.
Morover, in the Help >> About Eclipse >> Plugins details, I can't see all
the ATL plugins.
Can you tell me, which Eclipse version and EMF one you used when you tested
the aael file ??
and if possible can you send me the ATL jar files ?
Best regards
A AKAR
"William Piers" <william.piers@obeo.fr> a
|
|
| | |
Re: [ATL]Re: [ATL]Re: Load reference Problem [message #56048 is a reply to message #55943] |
Fri, 03 August 2007 14:13 |
Eclipse User |
|
|
|
Originally posted by: ali.akar.tni-software.com
Hello,
ATL 2.0RC is Working good,
I would like to know about the bug exactly and the solution if possible!
(about the reference)
Can I check the ATL Bugzilla and how if yes ?
Thank you,
A AKAR
"Fr
|
|
|
Re: [ATL]Re: Load reference Problem [message #56075 is a reply to message #55616] |
Fri, 03 August 2007 14:20 |
Eclipse User |
|
|
|
Originally posted by: ali.akar.tni-software.com
Hello,
I tried to use all the AADL meta model package by using more than one meta
input but I didn't succeed ! I forgat what was the result but I will try
again ?
do you succeed by using this solution in ATL ??
I' m using IDEA v2.2 .
Best regards,
A AKAR
------------------------------------------------------------ ----------------------------------------------
"Lutz Wrage" <lwrage@sei.cmu.edu> a
|
|
| |
Goto Forum:
Current Time: Fri Dec 27 15:00:11 GMT 2024
Powered by FUDForum. Page generated in 0.04394 seconds
|