transform .atl file to .java file [message #1834963] |
Sun, 22 November 2020 14:39 |
nour nour Messages: 19 Registered: April 2020 |
Junior Member |
|
|
Hello everyone,
I have an ATL model, which transforms a source model into a target model.
I want to deploy this as a service on the cloud.
For research purposes, I needed a cloud simulator, so I downloaded cloudSim, which requires a java file to execute the simulation.
My questions are:
How can I possibly transform my .atl model to a .java file.?
I found an ATLauncher on the following website, which executes atl transformations as java programs, however, i don't quite understand its functionality, or if it does exactly what I am asking for, would you please help me figure that out?
https://github.com/guana/ATLauncher
|
|
|
Re: transform .atl file to .java file [message #1834969 is a reply to message #1834963] |
Sun, 22 November 2020 15:13 |
|
ATL uses a virtual machine written in Java to run either .asm or .emftvm bytecode files. If you're writing new ATL code, I recommend you go with EMFTVM as your virtual machine.
Under normal circumstances, you'll run ATL within an Eclipse IDE environment. To run ATL outside Eclipse, you'll need the ATL standalone binary. Your best bet is to use this standalone binary from a Maven project, such that all dependencies are added automatically.
Once you've got your ATL/EMFTVM runtime all set up, you can use the ATLauncher code as a template to execute your .emftvm transformation of choice.
Cheers,
Dennis
|
|
|
Powered by
FUDForum. Page generated in 0.01507 seconds