Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Two virtual machines, two transformations results(ATL virtual machines)
[ATL] Two virtual machines, two transformations results [message #496297] Mon, 09 November 2009 15:58 Go to next message
Julio  is currently offline Julio Friend
Messages: 5
Registered: November 2009
Junior Member
I am trying to reuse my ATL transformation files that worked some weeks ago in Ganymede and ATL 2.2.
Now it seems that they are not anymore useful.
If I launch my transformation using the "Regular VM" it works as before, but if I use the "EMF-specific..VM." the result of the transformation is different, and there is no error message associated....
A good thing of the Regular VM is that I can debug whereas in the other VM this is apparently not possible (at least not for me).
Is there some solution to this problem of VM incompatibility?

Thanks,

J.
Re: [ATL] Two virtual machines, two transformations results [message #496321 is a reply to message #496297] Mon, 09 November 2009 17:18 Go to previous messageGo to next message
William Piers is currently offline William PiersFriend
Messages: 297
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------060609070005020800000409
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Hello,

ATL 3.1 will provide a debugger for both VMs, you can download it here
http://www.eclipse.org/modeling/m2m/downloads/index.php?proj ect=atl#S200911090453
and test it, e.g. to localize your issue.

Could you report a bug if you find or locate the issue ? Thanks in advance.

Best regards,

William

Julio a écrit :
> I am trying to reuse my ATL transformation files that worked some weeks
> ago in Ganymede and ATL 2.2.
> Now it seems that they are not anymore useful.
> If I launch my transformation using the "Regular VM" it works as before,
> but if I use the "EMF-specific..VM." the result of the transformation
> is different, and there is no error message associated....
> A good thing of the Regular VM is that I can debug whereas in the other
> VM this is apparently not possible (at least not for me).
> Is there some solution to this problem of VM incompatibility?
>
> Thanks,
>
> J.
>

--
Ne manquez pas notre prochaine formation ATL inter entreprises:
ATL - Paris - du 2 au 3 Décembre 2009
Pour plus de dates et pour le détail de cette formation:
http://www.obeo.fr/pages/formations/fr

Don't forget our next ATL training:
ATL - Paris - 2009 December from 2th to 3th
More dates and training program on:
http://www.obeo.fr/pages/formations/fr

--------------060609070005020800000409
Content-Type: text/x-vcard; charset=utf-8;
name="william_piers.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="william_piers.vcf"

YmVnaW46dmNhcmQNCmZuOldpbGxpYW0gUGllcnMNCm46UGllcnM7V2lsbGlh bQ0Kb3JnOk9i
ZW8NCmFkcjoyIHJ1ZSBSb2JlcnQgU2NodW1hbm47O2xvdCAyNDtOQU5URVM7 OzQ0NDA4O0Zy
YW5jZQ0KZW1haWw7aW50ZXJuZXQ6d2lsbGlhbS5waWVyc0BvYmVvLmZyDQp0 aXRsZTpNREEg
Q29uc3VsdGFudA0KdGVsO3dvcms6KzMzICgwKTIgNTEgMTMgNTAgNTMNCnVy bDpodHRwOi8v
d3d3Lm9iZW8uZnINCnZlcnNpb246Mi4xDQplbmQ6dmNhcmQNCg0K
--------------060609070005020800000409--
Re: [ATL] Two virtual machines, two transformations results [message #496489 is a reply to message #496321] Tue, 10 November 2009 10:14 Go to previous messageGo to next message
Julio  is currently offline Julio Friend
Messages: 5
Registered: November 2009
Junior Member
I've tried ATL 3.1.0 (Stable version).
It appears that the debugger won't stop anywhere, it always executes until termination (despite several breakpoints).
The problem of different executions persists.
Apparently the source of the problem is that the string manipulation in the "EMF-specific VM" has changed, but I cannot tell how.
Here is a sample helper that should return an Integer if the input string is one integer, otherwise it should return OclUndefined.
Try it (e.g. with ' -130 ', or ' 2 5 ')

helper context String def: Trim2Integer():
Integer = let s:String = self.trim() in
let ss:Sequence(String) = s->toSequence() in
let ints:Sequence(String) = '0123456789'->toSequence() in
if ss.first() = '-' then
let sp:Sequence(String) = ss->excluding('-') in
if ints->includesAll(sp)
then 0-(sp->iterate(i;acc:String=''| acc+i).toInteger())
else OclUndefined endif
else
if ints->includesAll(ss)
then s.toInteger()else OclUndefined endif
endif;

J.
Re: [ATL] Two virtual machines, two transformations results [message #496623 is a reply to message #496489] Tue, 10 November 2009 17:10 Go to previous messageGo to next message
William Piers is currently offline William PiersFriend
Messages: 297
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------090803040307050101030809
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Hello,

Could you please report a bug about that ? Thanks in advance.

Julio a écrit :
> I've tried ATL 3.1.0 (Stable version).
> It appears that the debugger won't stop anywhere, it always executes
> until termination (despite several breakpoints).

Strange. Did you open the debug perspective ?

Best regards,

William

> The problem of different executions persists.
> Apparently the source of the problem is that the string manipulation in
> the "EMF-specific VM" has changed, but I cannot tell how.
> Here is a sample helper that should return an Integer if the input
> string is one integer, otherwise it should return OclUndefined. Try it
> (e.g. with ' -130 ', or ' 2 5 ')
>
> helper context String def: Trim2Integer():
> Integer = let s:String = self.trim() in
> let ss:Sequence(String) = s->toSequence() in
> let ints:Sequence(String) = '0123456789'->toSequence() in
> if ss.first() = '-' then
> let sp:Sequence(String) = ss->excluding('-') in
> if ints->includesAll(sp) then
> 0-(sp->iterate(i;acc:String=''| acc+i).toInteger())
> else OclUndefined endif
> else
> if ints->includesAll(ss) then
> s.toInteger()else OclUndefined endif
> endif;
>
> J.

--
Ne manquez pas notre prochaine formation ATL inter entreprises:
ATL - Paris - du 2 au 3 Décembre 2009
Pour plus de dates et pour le détail de cette formation:
http://www.obeo.fr/pages/formations/fr

Don't forget our next ATL training:
ATL - Paris - 2009 December from 2th to 3th
More dates and training program on:
http://www.obeo.fr/pages/formations/fr

--------------090803040307050101030809
Content-Type: text/x-vcard; charset=utf-8;
name="william_piers.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="william_piers.vcf"

YmVnaW46dmNhcmQNCmZuOldpbGxpYW0gUGllcnMNCm46UGllcnM7V2lsbGlh bQ0Kb3JnOk9i
ZW8NCmFkcjoyIHJ1ZSBSb2JlcnQgU2NodW1hbm47O2xvdCAyNDtOQU5URVM7 OzQ0NDA4O0Zy
YW5jZQ0KZW1haWw7aW50ZXJuZXQ6d2lsbGlhbS5waWVyc0BvYmVvLmZyDQp0 aXRsZTpNREEg
Q29uc3VsdGFudA0KdGVsO3dvcms6KzMzICgwKTIgNTEgMTMgNTAgNTMNCnVy bDpodHRwOi8v
d3d3Lm9iZW8uZnINCnZlcnNpb246Mi4xDQplbmQ6dmNhcmQNCg0K
--------------090803040307050101030809--
Re: [ATL] Two virtual machines, two transformations results [message #497150 is a reply to message #496623] Thu, 12 November 2009 16:53 Go to previous messageGo to next message
Julio  is currently offline Julio Friend
Messages: 5
Registered: November 2009
Junior Member
Hi William,

About your question of opening the Debug perspective.
Yes, I did.
Can you do it otherwise?

J.

p.s. Can you test strings for equality, in ATL, using the '=' symbol?
I could not find this symbol in ATL documentation, but I use it myself.
Perhaps this causes problems...
Re: [ATL] Two virtual machines, two transformations results [message #497980 is a reply to message #497150] Fri, 13 November 2009 15:14 Go to previous message
William Piers is currently offline William PiersFriend
Messages: 297
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------000008010202040004080001
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Hello,

The = operator is described here:
http://wiki.eclipse.org/ATL/User_Guide#OclAny_operations
As it is available for any type (Strings included).

Anyway, the problem you have is due to an incorrect implementation of
the includesAll() method. Could you report a bug about that (
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=M2M ), e.g.
"includesAll() does not work in EMFVM" ?

Thanks in advance,

William

Julio a écrit :
> Hi William,
>
> About your question of opening the Debug perspective.
> Yes, I did.
> Can you do it otherwise?
>
> J.
>
> p.s. Can you test strings for equality, in ATL, using the '=' symbol?
> I could not find this symbol in ATL documentation, but I use it myself.
> Perhaps this causes problems...

--
Ne manquez pas notre prochaine formation ATL inter entreprises:
ATL - Paris - du 2 au 3 Décembre 2009
Pour plus de dates et pour le détail de cette formation:
http://www.obeo.fr/pages/formations/fr

Don't forget our next ATL training:
ATL - Paris - 2009 December from 2th to 3th
More dates and training program on:
http://www.obeo.fr/pages/formations/fr

--------------000008010202040004080001
Content-Type: text/x-vcard; charset=utf-8;
name="william_piers.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="william_piers.vcf"

YmVnaW46dmNhcmQNCmZuOldpbGxpYW0gUGllcnMNCm46UGllcnM7V2lsbGlh bQ0Kb3JnOk9i
ZW8NCmFkcjoyIHJ1ZSBSb2JlcnQgU2NodW1hbm47O2xvdCAyNDtOQU5URVM7 OzQ0NDA4O0Zy
YW5jZQ0KZW1haWw7aW50ZXJuZXQ6d2lsbGlhbS5waWVyc0BvYmVvLmZyDQp0 aXRsZTpNREEg
Q29uc3VsdGFudA0KdGVsO3dvcms6KzMzICgwKTIgNTEgMTMgNTAgNTMNCnVy bDpodHRwOi8v
d3d3Lm9iZW8uZnINCnZlcnNpb246Mi4xDQplbmQ6dmNhcmQNCg0K
--------------000008010202040004080001--
Previous Topic:[ATL]Problem setting element value
Next Topic:[QVT] Library as a plugin
Goto Forum:
  


Current Time: Sun Aug 18 04:30:42 GMT 2019

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

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

Back to the top