[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.modeling.gmt.amw] Re: AMW Match Example [lauch configuration]


When executing with the launch configuration (second point in your post), use the launch configuration wizard to replace the "left" model by "AMW_Match_SF/models/Book-KM3.ecore", and the "right" model by "AMW_Match_SF/models/Publication-KM3.ecore".


But in this case you need to execute all the transformations manually to obtain the final model.

Marcos.


Marcos Didonet Del Fabro wrote:

Sorry about the previous post, I used the wrong shortcut key. :)


these matching examples use multiple pattern matching in the ATL rules. Multiple patterns are like:

    l_class : KM3L!Class, l_attribute : KM3L!Attribute,
    r_class : KM3R!Class, r_reference : KM3R!Reference


This is a feature of the new compiler of ATL, which is not yet available together with the binaries (it will be released soon), so you should use the version from the CVS, and copy the ATLToASMCompiler.asm file into "org.atl.eclipse.engine/src/org/atl/eclipse/engine/resources", as explained in the Remarks section in the Documentation.


The AM3 Ant script also uses a loop task "<for>", which is not available in the main distribution of Ant. We cannot put it together in the example, but these tasks are available at the Ant Contrib site. They are used to execute the algorithm several times. You can just comment the related code if you don't need to use Ant Contrib.

When executing the "executeAll.xml" AM3 script, it is necessary to set the script properties (for this there are a couple of lines in the beginning of the file).
I copy and paste them below:


<!-- How to configure this ant script:
    Run as->Ant Build...
        Set:
            - Base directory
            - Run in same JRE
            - Refresh

            - ANTLR jar (from the ATL engine/lib folder)
            - ant contrib jar (if you use the loops)
-->

Btw, I am using Eclipse 3.2.1 and EMF 2.2.1.

Regards,

Marcos.


Marcos Didonet Del Fabro wrote:
Hello,

these matching examples use multiple pattern matching in the ATL rules.
Multiple patterns are like:




This is a feature of the new compiler of ATL, which is not yet available together with the binaries (it will be released soon), so you should use the version from the CVS, and copy the ATLToASMCompiler.asm file into "org.atl.eclipse.engine/src/org/atl/eclipse/engine/resources", as explained in the remarks page.









So, I ex

Michael Strommer wrote:
Hi,
I am trying to get the equality matching and similarity flooding example to run, but have some difficulties in doing so. I have used nearly every combination of eclipse, emf, atl, am3 and amw. So it seems to be not a problem of incompatible versions.


When I try to run the ant executeall script, I get the following error message:
[am3.atl] Executing ATL transformation/AMW_Match_SF/PropagationGraph.atl
[am3.atl] java.lang.NullPointerException
[am3.atl] at org.eclipse.emf.common.util.URI.createURIWithCache(URI.java:655)
[am3.atl] at org.eclipse.emf.common.util.URI.createURI(URI.java:535)
[am3.atl] at org.atl.engine.repositories.emf4atl.ASMEMFModel.newASMEMFModel(ASMEMFModel.java:260)




Trying to execute the Atl transformation PropagationGraph.atl via launch configuration separately leads to
WARNING: could not find model KM3L
followed by a NullPointerException.


Any hints welcome. What kind of configuration did you use to get this example run?

Thanks,
Michael