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