[gme-users] Compile classes generated from the BonExtenderinterpreter

Kevin Smyth ksmyth at isis.vanderbilt.edu
Wed Jan 20 15:26:31 CST 2010


GME has COM interfaces for running interpreters outside of GME. For
instance, in Python:

 

project = win32com.client.DispatchEx("Mga.MgaProject")

project.Open("MGA=" + mgafilepath)

launcher = win32com.client.DispatchEx("Mga.MgaLauncher")

interpreter = "MGA.Interpreter.MetaInterpreter"

launcher.RunComponent(interpreter, project, None, None, 0)

 

You could also convert your interpreter to a standalone program and call
CoCreateInstance to create the necessary MgaProject.

 

Kevin

 

 

 

From: gme-users-bounces at list.isis.vanderbilt.edu
[mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of Cuong Tran
Sent: Wednesday, January 20, 2010 10:58 AM
To: gme-users
Subject: [gme-users] Compile classes generated from the
BonExtenderinterpreter

 

Hi everyone

 

I am trying to use classes (corresponding to types in my meta-model X)
generated by the BonExtender interpreter in a standalone application. The
generated classes however are tied to the BON framework which is in turn
based on MON and GME. As far as I have studied, the tight coupling with GME
imposes a specific way to use the generated classes i.e. to build
interpreters only.

 

Is there a way to separate generated classes from the BON framework i.e. for
building standalone applications?

 

At least, the BONExtender in GME has no option for what I need. 

 

Many thanks

Cuong Tran

----------------

Research Assistant

School of Computer Science

University of Manchester

Manchester, UK

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20100120/b4b793f7/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5192 bytes
Desc: not available
Url : http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20100120/b4b793f7/attachment.bin 


More information about the gme-users mailing list