Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Compiling an EMFModel with the 3.0.0M7 (2009/05/05) ATL version API?
[ATL] Compiling an EMFModel with the 3.0.0M7 (2009/05/05) ATL version API? [message #104917] Mon, 11 May 2009 14:28 Go to next message
Skander TURKI is currently offline Skander TURKIFriend
Messages: 130
Registered: July 2009
Senior Member
Hi,
I tried the new internalCompile method in the 3.0.0M7 (2009/05/05) ATL
version API that is supposed to compile an ATL model but it didn't work
and the trace is not intelligible enough to understand the cause, but i
tried the other internalCompile method that compiles an inputStream and
this worked for me, i wanted to directly compile the EMFModel to optimize
the time that the transformation takes, and to simplify the code, here is
the two method calls:

**First method(that do not work):
Atl2006Compiler compiler = new Atl2006Compiler();
compiler.internalCompile(atlEMFModel, path);

---------------------------
--Here i get this message:
------------------------------------------------------------ ----------
at process_match(ATLCompiler.atl)
local variables: self=IN!<unnamed>:ATL!SimpleOutPatternElement
at process_create(ATLCompiler.atl:732)
local variables: self=IN!InstanceSpec_Xilinx_multiproc:ATL!MatchedRule,
forEach=Sequence {}, v=IN!<unnamed>:ATL!SimpleInPatternElement,
opes=Sequence {IN!<unnamed>:ATL!SimpleOutPatternElement}
at process_checkSubRules(ATLCompiler.atl:697)
local variables: self=IN!InstanceSpec_Xilinx_multiproc:ATL!MatchedRule
at process_matcher(ATLCompiler.atl:582)
local variables: self=IN!InstanceSpec_Xilinx_multiproc:ATL!MatchedRule,
forEach=Sequence {IN!<unnamed>:ATL!SimpleInPatternElement},
ipe=IN!<unnamed>:ATL!SimpleInPatternElement
at process(ATLCompiler.atl:537)
local variables: self=IN!InstanceSpec_Xilinx_multiproc:ATL!MatchedRule
at process(ATLCompiler.atl:448)
local variables: self=IN!MarteToAAXL:ATL!Module
at main(ATLCompiler.atl)
local variables: self=thisModule,
WriteTo='C:/.../resources/temp/MarteToAAXL_V3_Compiled.asm'
------------------------------------------------------------ ----------

**Second method (that works ok):
final ByteArrayOutputStream streamOut = new ByteArrayOutputStream();
AtlParser.getDefault().extract(atlEMFModelModified, streamOut, null);
Atl2006Compiler compiler = new Atl2006Compiler();
ByteArrayInputStream inStr = new
ByteArrayInputStream(streamOut.toByteArray());
compiler.internalCompile(inStr, "c:/...path");
Re: [ATL] Compiling an EMFModel with the 3.0.0M7 (2009/05/05) ATL version API? [message #104946 is a reply to message #104917] Tue, 12 May 2009 09:59 Go to previous messageGo to next message
William Piers is currently offline William PiersFriend
Messages: 301
Registered: July 2009
Senior Member
Hi,

Could you report a bug about that ? Just copy your post in it.

Thanks in advance,

William

Skander a écrit :
> Hi,
> I tried the new internalCompile method in the 3.0.0M7 (2009/05/05) ATL
> version API that is supposed to compile an ATL model but it didn't work
> and the trace is not intelligible enough to understand the cause, but i
> tried the other internalCompile method that compiles an inputStream and
> this worked for me, i wanted to directly compile the EMFModel to
> optimize the time that the transformation takes, and to simplify the
> code, here is the two method calls:
>
> **First method(that do not work):
> Atl2006Compiler compiler = new Atl2006Compiler();
> compiler.internalCompile(atlEMFModel, path);
>
> ---------------------------
> --Here i get this message:
> ------------------------------------------------------------ ----------
> at process_match(ATLCompiler.atl)
> local variables: self=IN!<unnamed>:ATL!SimpleOutPatternElement
> at process_create(ATLCompiler.atl:732)
> local variables:
> self=IN!InstanceSpec_Xilinx_multiproc:ATL!MatchedRule, forEach=Sequence
> {}, v=IN!<unnamed>:ATL!SimpleInPatternElement, opes=Sequence
> {IN!<unnamed>:ATL!SimpleOutPatternElement}
> at process_checkSubRules(ATLCompiler.atl:697)
> local variables: self=IN!InstanceSpec_Xilinx_multiproc:ATL!MatchedRule
> at process_matcher(ATLCompiler.atl:582)
> local variables:
> self=IN!InstanceSpec_Xilinx_multiproc:ATL!MatchedRule, forEach=Sequence
> {IN!<unnamed>:ATL!SimpleInPatternElement},
> ipe=IN!<unnamed>:ATL!SimpleInPatternElement
> at process(ATLCompiler.atl:537)
> local variables: self=IN!InstanceSpec_Xilinx_multiproc:ATL!MatchedRule
> at process(ATLCompiler.atl:448)
> local variables: self=IN!MarteToAAXL:ATL!Module
> at main(ATLCompiler.atl)
> local variables: self=thisModule,
> WriteTo='C:/.../resources/temp/MarteToAAXL_V3_Compiled.asm'
> ------------------------------------------------------------ ----------
>
> **Second method (that works ok):
> final ByteArrayOutputStream streamOut = new ByteArrayOutputStream();
> AtlParser.getDefault().extract(atlEMFModelModified, streamOut, null);
> Atl2006Compiler compiler = new Atl2006Compiler();
> ByteArrayInputStream inStr = new
> ByteArrayInputStream(streamOut.toByteArray());
> compiler.internalCompile(inStr, "c:/...path");
>
>
>
Re: [ATL] Compiling an EMFModel with the 3.0.0M7 (2009/05/05) ATL version API? [message #104957 is a reply to message #104946] Tue, 12 May 2009 10:37 Go to previous messageGo to next message
Skander TURKI is currently offline Skander TURKIFriend
Messages: 130
Registered: July 2009
Senior Member
ok william, thanks for keeping up the good work.

here's the bug link:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=275842
Re: [ATL] Compiling an EMFModel with the 3.0.0M7 (2009/05/05) ATL version API? [message #104962 is a reply to message #104957] Tue, 12 May 2009 13:32 Go to previous message
Skander TURKI is currently offline Skander TURKIFriend
Messages: 130
Registered: July 2009
Senior Member
William wrote:
--- Comment #1 from William Piers <william.piers@obeo.fr> 2009-05-12
07:32:58 -0400 ---
Hello,

The bug has been corrected on CVS HEAD, the correction will be available
on the
ATL 3.0 release.
Thanks for reporting it!

William

-----

That was real quick william, thanks.

-------------------------------------

Skander TURKI
Post-Doctorant
Université de Bretagne Sud
Lab-STICC / CNRS UMR 3192

Centre de Recherches
BP92116 / 56321 LORIENT Cedex
http://www-labsticc.univ-ubs.fr
Previous Topic:[QVTO] Number Conversion Issue
Next Topic:[ATL] Multiple output models with the same metamodel, possible?
Goto Forum:
  


Current Time: Fri Apr 26 03:02:56 GMT 2024

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

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

Back to the top