Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Using generated code to calculate in standalone application
Using generated code to calculate in standalone application [message #725296] Wed, 14 September 2011 13:09 Go to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
Hi,

In my standalone application, i am creating Ecore Model programmatically and i am also generating java code using the created Ecore file in the same standalone application. Now i would like to create N numbers of XMI(concrete models) and would like to calculate that using the generated code from ecore in the same application sesssion. Can you guide me in this. What are the neccessary steps to achieve that.

The motive behind using generated code is performance as currently i am calculting XMI models by using global setting and invocation delegates for standalone apps and performance is not soo good.

i will really appreciate your help and input.

Thanks in advance
Re: Using generated code to calculate in standalone application [message #725309 is a reply to message #725296] Wed, 14 September 2011 13:36 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Comments below.

On 14/09/2011 6:09 AM, ModelGeek wrote:
> Hi,
>
> In my standalone application, i am creating Ecore Model
> programmatically and i am also generating java code using the created
> Ecore file in the same standalone application. Now i would like to
> create N numbers of XMI(concrete models) and would like to calculate
> that using the generated code from ecore in the same application
> sesssion. Can you guide me in this. What are the neccessary steps to
> achieve that.
I'm not sure I follow. Generated models and the EMF runtime bundles on
which they depend do all work in stand alone mode...
>
> The motive behind using generated code is performance as currently i
> am calculting XMI models by using global setting and invocation
> delegates for standalone apps and performance is not soo good.
Which implementations of these are you using? The generated code will
still use these same delegates, so I'm not sure this will help at all...

I guess you mean you want to generate a model and then load that
generated code into your running process. That aspect isn't really an
EMF question, but a basic Java one. You can look at how JETEmitter
uses a URLClassLoader for dynamic templates (which involves compiling
the classes produced from converter the jet templates to .java files and
then loading the .class files resulting from that).
>
> i will really appreciate your help and input.
>
> Thanks in advance
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Ecore model for filesystems
Next Topic:Forcing xsi:type on the top level element
Goto Forum:
  


Current Time: Thu Apr 25 18:07:23 GMT 2024

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

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

Back to the top