Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » how to generate emftvm file
how to generate emftvm file [message #1850190] Mon, 21 February 2022 08:46 Go to next message
Yanhong Dong is currently offline Yanhong DongFriend
Messages: 25
Registered: September 2021
Junior Member
Hello, I don't know how to genrate the emftvm file. If I can't generate this file, can I call the atl engine using JAVA in eclipse
Re: how to generate emftvm file [message #1850191 is a reply to message #1850190] Mon, 21 February 2022 09:21 Go to previous messageGo to next message
Yanhong Dong is currently offline Yanhong DongFriend
Messages: 25
Registered: September 2021
Junior Member
I have another question how can I find the packages for these calls?
import org.eclipse.m2m.atl.emftvm.impl.resource.EMFTVMResourceFactoryImpl;
import org.eclipse.m2m.atl.emftvm.util.DefaultModuleResolver;
import org.eclipse.m2m.atl.emftvm.util.ModuleResolver;
import org.eclipse.m2m.atl.emftvm.util.TimingData;
thank you.
  • Attachment: jar包.png
    (Size: 45.44KB, Downloaded 103 times)
Re: how to generate emftvm file [message #1850192 is a reply to message #1850190] Mon, 21 February 2022 09:21 Go to previous messageGo to next message
Yanhong Dong is currently offline Yanhong DongFriend
Messages: 25
Registered: September 2021
Junior Member
I have another question how can I find the packages for these calls?
import org.eclipse.m2m.atl.emftvm.impl.resource.EMFTVMResourceFactoryImpl;
import org.eclipse.m2m.atl.emftvm.util.DefaultModuleResolver;
import org.eclipse.m2m.atl.emftvm.util.ModuleResolver;
import org.eclipse.m2m.atl.emftvm.util.TimingData;
thank you.
  • Attachment: jar包.png
    (Size: 45.44KB, Downloaded 94 times)
Re: how to generate emftvm file [message #1850215 is a reply to message #1850190] Mon, 21 February 2022 21:07 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 589
Registered: September 2012
Location: Belgium
Senior Member

Yanhong Dong wrote on Mon, 21 February 2022 09:46
Hello, I don't know how to genrate the emftvm file. If I can't generate this file, can I call the atl engine using JAVA in eclipse


The emftvm files are generated automatically for Eclipse ATL projects. If your Eclipse project does not have the ATL nature, you can add it by right-clicking the project and then select: Configure -> Convert to ATL Project.


Cheers,
Dennis
Re: how to generate emftvm file [message #1850224 is a reply to message #1850215] Tue, 22 February 2022 08:51 Go to previous messageGo to next message
Yanhong Dong is currently offline Yanhong DongFriend
Messages: 25
Registered: September 2021
Junior Member
thanks for your answer.
Now I have generated the emftvm file and update jar package, but I got this error: it tell me can not find the module.
I don't know why, so I hope you can help me.
I guess my emftvm file is wrong, and I contrast the file proveded by you. And then I find your file contains the module information, but I don't have.
My emftvm file is generated automatically, so do you have any configuration before generate?
The picture is my emftvm file.
  • Attachment: emffile.png
    (Size: 9.85KB, Downloaded 107 times)
  • Attachment: error.png
    (Size: 108.83KB, Downloaded 106 times)
Re: how to generate emftvm file [message #1850282 is a reply to message #1850224] Wed, 23 February 2022 18:03 Go to previous message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 589
Registered: September 2012
Location: Belgium
Senior Member

In EMFTVM the module name should match the file name, e.g. a file named "TestModule.atl" should start like this:
-- @atlcompiler emftvm
module TestModule;
...

If the names don't match, EMFTVM will say it cannot find the module.


Cheers,
Dennis
Previous Topic:Applying Profiles and stereotypes
Next Topic:how to use lazy rule to output various value
Goto Forum:
  


Current Time: Fri Apr 26 02:33:29 GMT 2024

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

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

Back to the top