Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2m-dev] Quality Assessment of QVTO Model Transformations

Dear members of project modeling.m2m.qvt-oml,

May I ask you some questions about how to parse qvto files?

My name is Phu Nguyen. I am doing my Master thesis in Software Engineering & Technology group, at the Eindhoven University of Technology. My research topic is Quality Assessment of Model Transformations (by means of metrics, coverage, dependencies…)
 
Our approach is aimed at assessing the internal quality of model transformations by extracting metrics from the model transformations directly. Actually, many metrics have been defined for measuring the quality of model transformations (created with ASF+SDF and ATL) by our reseach group. (*)
 
We are also interested in enabling quality measurement of model transformations (M2M) created using Operational QVT. But, in order to enable quality measurement of QVTO model transformations, it is vital to parse the qvto files to get the Abstract Syntax Trees
  
I have investigated the source code of org.eclipse.m2m.qvt.oml project. If I understand correctly, the qvto files to be parsed, can only be referred to in run-time of QVTO eclipse plugins. Is there another way to use the QVTOCompiler to parse the qvto files without plugins?

For example, I would like to parse the file book2pub.qvto, I have written:

org.eclipse.emf.common.util.URI transformationURI = URI.createFileURI("/my.qvto.extractor/book2pub/book2pub.qvto");

UnitProxy unit = URIUnitResolver.getUnit(transformationURI);

QVTOCompiler compiler = CompilerUtils.createCompiler(unit.getResolver());
       
QvtCompilerOptions options = new QvtCompilerOptions();
options.setGenerateCompletionData(false);
       
return new CompiledUnit[] { compiler.compile(unit, options, new BasicMonitor()) };


But certainly, it does not work because the UnitProxy object will be NULL. I have tried other ways but not successfully. Could you please give me some advices about how I can use the QVTOCompilerto parse the qvto files or any other ways possible?
 
Hope to hear from you soon. Thank you very much!
 
 
Best regards,
 
Phu
 
---(*)
M.F. van Amstel, C.F.J. Lange, M.G.J. van den Brand. Using Metrics for Assessing the Quality of ASF+SDF Model Transformations. In Theory and Practice of Model Transformations, Proceedings of the Second International Conference on Model Transformation (ICMT'09), volume 5563 of Lecture Notes in Computer Science, pages 239-248, Zürich, Switzerland, June 2009
 
M.F. van Amstel and M.G.J. van den Brand, Quality Assessment of ATL Model Transformations using Metrics, Proceedings of the Second International Workshop on Model Transformation with ATL, Málaga, Spain, June 2010

On Sun, Sep 5, 2010 at 6:00 AM, portal on behalf of emo <emo@xxxxxxxxxxx> wrote:
m2m-dev@xxxxxxxxxxx


Back to the top