| [ATL] Not transformed all code [message #915699] |
Mon, 17 September 2012 15:46  |
Manuel Carrillo Messages: 2 Registered: September 2012 |
Junior Member |
|
|
Hi,
We are working on a ATL project for transforming code from ADA to JAVA.
We are building our ALT code to read an ADA model and transform it to a JAVA model, but we have a problem.
Sometimes our code is not able to transform a part of the ADA model, because it's wrong or it 'doesn't know' how to do it.
We can only detect this issue if we review all the generated file, but we have to transform a lot of files, so... how can we detect in ATL if any part of our source ADA model has not been transformed?
Thanks.
|
|
|
| Re: [ATL] Not transformed all code [message #915917 is a reply to message #915699] |
Tue, 18 September 2012 04:04   |
Hugo Bruneliere Messages: 467 Registered: July 2009 |
Senior Member |
|
|
Hello,
In its standard execution mode, ATL performs the transformation you explicitly declare in your ".atl" file (only the "refining" mode has a different execution behavior, cf. the ATL user guide): it transforms only the elements which are matched by the rules you've defined in your transformation.
If some elements of your source ADA model are not considered by the transformation, this simply means that you have no rule matching them.
The actually transformed elements can be identified by looking to the source pattern of your different rules: http://wiki.eclipse.org/ATL/User_Guide_-_The_ATL_Language#Source_pattern.
If you want to transform other source elements, you have to add the corresponding matched rules.
Best regards,
Hugo
------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
|
|
|
|
| Re: [ATL] Not transformed all code [message #917571 is a reply to message #917044] |
Thu, 20 September 2012 03:59  |
Hugo Bruneliere Messages: 467 Registered: July 2009 |
Senior Member |
|
|
Hi,
A possible solution to identify more precisely the source of your errors would be to use the ATL debugger on your transformation.
Best regards,
Hugo
------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
|
|
|
Powered by
FUDForum. Page generated in 0.01506 seconds