Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » Load reference Problem
Load reference Problem [message #54796] Thu, 26 July 2007 07:53 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
William Piers is currently offline William PiersFriend
Messages: 301
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
William Piers is currently offline William PiersFriend
Messages: 301
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)
Re: [ATL]Re: [ATL]Re: Load reference Problem [message #55455 is a reply to message #55152] Wed, 01 August 2007 06:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ali.akar.tni-software.com

Hello,

you find the files in attachments (aael, aaxl, AADL.ecore & RCM.ecore)

Regards,

A AKAR


"William Piers" <william.piers@obeo.fr> a
  • Attachment: Files.rar
    (Size: 15.60KB, Downloaded 194 times)
Re: [ATL]Re: [ATL]Re: Load reference Problem [message #55589 is a reply to message #55455] Wed, 01 August 2007 12:38 Go to previous messageGo to next message
William Piers is currently offline William PiersFriend
Messages: 301
Registered: July 2009
Senior Member
Hello,

I test your files, and it works with the last ATL version. But when I do
the same test with the ATL bundle (available in the download section),
the debug point returns OclUndefined... so I presume that you're using
that bundle.

The problem you have may be a bug, and won't be corrected on old ATL
versions, so the best thing you have to do is to switch to ATL versions
which are available on CVS.

A guide explain how to use and install those versions :
http://wiki.eclipse.org/ATL/How_Install_ATL_From_CVS/

Best regards,

--
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #55918 is a reply to message #55886] Fri, 03 August 2007 11:03 Go to previous messageGo to next message
William Piers is currently offline William PiersFriend
Messages: 301
Registered: July 2009
Senior Member
Hello,

I also tried with the last bundle version (2.0RC2), and it works too.
Could you try with this version ?
You can download the updatesite archive here :
http://www.eclipse.org/downloads/download.php?file=/modeling /m2m/atl/archivedSite/atl-ArchivedSite_2.0.0RC2.zip
Then install it in Eclipse, as an archived update-site.

Before trying it, you may have to launch eclipse with the -clean option.

Regards,
--
William Piers
MDA Consultant, Obeo (http://www.obeo.fr)
Re: [ATL]Re: [ATL]Re: Load reference Problem [message #55943 is a reply to message #55918] Fri, 03 August 2007 11:50 Go to previous messageGo to next message
Frédéric Jouault is currently offline Frédéric JouaultFriend
Messages: 572
Registered: July 2009
Senior Member
Hello,

Of course, you may also directly use the update site ;-)


Regards,

Frédéric Jouault


William Piers wrote:
> Hello,
>
> I also tried with the last bundle version (2.0RC2), and it works too.
> Could you try with this version ?
> You can download the updatesite archive here :
> http://www.eclipse.org/downloads/download.php?file=/modeling /m2m/atl/archivedSite/atl-ArchivedSite_2.0.0RC2.zip
>
> Then install it in Eclipse, as an archived update-site.
>
> Before trying it, you may have to launch eclipse with the -clean option.
>
> Regards,
Re: [ATL]Re: [ATL]Re: Load reference Problem [message #56048 is a reply to message #55943] Fri, 03 August 2007 14:13 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: [ATL]Re: [ATL]Re: Load reference Problem [message #56307 is a reply to message #56048] Fri, 03 August 2007 14:42 Go to previous message
William Piers is currently offline William PiersFriend
Messages: 301
Registered: July 2009
Senior Member
I don't know if the bug has been referenced in the bugzilla, but you can
consult it via the "ATL Developer Box" section in the main ATL page.

Does that answer your question?

Regards,

--
William Piers
MDA Consultant, Obeo (http://www.obeo.fr)
Previous Topic:[ATL]wiki :ATL Developer Doc
Next Topic:[ATL] ant launch configuration ( am3.loadModel and am3.saveModel)
Goto Forum:
  


Current Time: Tue Apr 23 13:30:17 GMT 2024

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

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

Back to the top