Abstract
Writing queries and navigation expressions in OCL is an important part of the task of developing a model transformation definition. When such queries are complex and the size of the models is significant, performance issues cannot be neglected.
In this paper we present five patterns intended to optimize the performance of model transformations when OCL queries are involved. For each pattern we will give an example as well as several implementation alternatives. Experimental data gathered by running benchmarks is also shown to compare the alternatives.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
OCL benchmarks, http://muse.informatik.uni-bremen.de/wiki/index.php/ocl_benchmark_-_core
Aho, A.V., Ullman, J.D.: Principles of Compiler Design. Addison-Wesley series in computer science and information processing. Addison-Wesley, Reading (1977)
Beck, K.: Implementation Patterns. Addison-Wesley Professional, Reading (2006)
Jouault, F., Kurtev, I.: Transforming models with ATL. In: Bruel, J.-M. (ed.) MoDELS 2005. LNCS, vol. 3844, pp. 128–138. Springer, Heidelberg (2006)
Kolovos, D.S., Paige, R.F., Polack, F.A.: The epsilon transformation language. In: Vallecillo, A., Gray, J., Pierantonio, A. (eds.) ICMT 2008. LNCS, vol. 5063, pp. 46–60. Springer, Heidelberg (2008)
Kuhlmann, M., Gogolla, M.: Analyzing semantic properties of ocl operations by uncovering interoperational relationships. In: Engels, G., Opdyke, B., Schmidt, D.C., Weil, F. (eds.) MODELS 2007. LNCS, vol. 4735. Springer, Heidelberg (2007)
Langlois, B., Exertier, D., Bonnet, S.: Performance improvement of mdd tools. In: EDOCW 2006: Proceedings of the 10th IEEE on International Enterprise Distributed Object Computing Conference Workshops, p. 19. IEEE Computer Society, Los Alamitos (2006)
Mezei, G., Levendovszky, T., Charaf, H.: Restrictions for ocl constraint optimization algorithms. Technical report, Technische Universität Dresden (October 2006)
Mezei, G., Levendovszky, T., Charaf, H.: An optimizing ocl compiler for metamodeling and model transformation environments. In: Software Engineering Techniques: Design for Quality, pp. 61–71. Springer, Heidelberg (2007)
OMG. Final adopted specification for MOF 2.0 Query/View/Transformation (2005), www.omg.org/docs/ptc/05-11-01.pdf
Varro, G., Schurr, A., Varro, D.: Benchmarking for graph transformation. In: VLHCC 2005: Proceedings of the 2005 IEEE Symposium on Visual Languages and Human-Centric Computing, pp. 79–88. IEEE Computer Society, Los Alamitos (2005)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2009 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Sánchez Cuadrado, J., Jouault, F., García Molina, J., Bézivin, J. (2009). Optimization Patterns for OCL-Based Model Transformations. In: Chaudron, M.R.V. (eds) Models in Software Engineering. MODELS 2008. Lecture Notes in Computer Science, vol 5421. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-01648-6_29
Download citation
DOI: https://doi.org/10.1007/978-3-642-01648-6_29
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-642-01647-9
Online ISBN: 978-3-642-01648-6
eBook Packages: Computer ScienceComputer Science (R0)