Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » Help on QVT (M2M)(Examples)
icon5.gif  Help on QVT (M2M) [message #496486] Tue, 10 November 2009 09:54 Go to next message
Rahul Chandrashekar is currently offline Rahul ChandrashekarFriend
Messages: 43
Registered: July 2009
Member
I checked the example of QVT (UML to RDB) which is available within the IDE, it was useful in giving me the abstract knwoledge on the conversion and am looking to start with my own example.

I want to convert a Java source file to a corresponding C file. Can any one in the forum help me out in mapping the rules required for conversion.

Sample input java file:

public class HelloWorld {

public static void main(String[] args) {
System.out.println("Hello World");
}

}


2)Also tell me what should the metamodel reference be.

3) Is it possible for me to debug the QVTO code?

Thanks in advance.
Rahul Chandrashekar.

Re: Help on QVT (M2M) [message #496544 is a reply to message #496486] Tue, 10 November 2009 13:35 Go to previous message
Eclipse UserFriend
Originally posted by: dvorak.radek.gmail.com

Hi Rahul Chandrashekar,

1) You have to spent some time on research how to get an ecore based model
from your Java file first.
I assume you refer to a file containing a Java concrete syntax.
Once succeeded, you just get to the border of M2M domain as it deals
with model-model transformation.
Note, that M2M would give you only a model representation of your C
stuff, so another step would be converting
a C model to a corresponding C concrete syntax.

A simpler approach would be to use M2T, skipping the step of a C model
creation and
generating the C source code directly from the Java model.

2) QVTO debugger will be available in a week.


Regards,
/Radek


On Tue, 10 Nov 2009 10:54:51 +0100, Rahul Chandrashekar
<rahul.chandrashekar@in.bosch.com> wrote:

> I checked the example of QVT (UML to RDB) which is available within the
> IDE, it was useful in giving me the abstract knwoledge on the conversion
> and am looking to start with my own example. I want to convert a Java
> source file to a corresponding C file. Can any one in the forum help me
> out in mapping the rules required for conversion.
>
> Sample input java file:
>
> public class HelloWorld {
>
> public static void main(String[] args) {
> System.out.println("Hello World");
> }
>
> }
>
> 2)Also tell me what should the metamodel reference be.
>
> 3) Is it possible for me to debug the QVTO code?
>
> Thanks in advance.
> Rahul Chandrashekar.
>
>
Previous Topic:[QVTO] syntax for raise (and try except)
Next Topic:[QVTO] Runtime error : QvtEvaluator: failed to evaluate oclOperationCall
Goto Forum:
  


Current Time: Wed Apr 24 22:17:39 GMT 2024

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

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

Back to the top