Skip to main content

Evaluating Maintainability with Code Metrics for Model-to-Model Transformations

  • Conference paper
Research into Practice – Reality and Gaps (QoSA 2010)

Part of the book series: Lecture Notes in Computer Science ((LNPSE,volume 6093))

Included in the following conference series:

Abstract

Using model-to-model transformations to generate analysis models or code from architecture models is sought to promote compliance and reuse of components. The maintainability of transformations is influenced by various characteristics - as with every programming language artifact. Code metrics are often used to estimate code maintainability. However, most of the established metrics do not apply to declarative transformation languages (such as QVT Relations) since they focus on imperative (e.g. object-oriented) coding styles. One way to characterize the maintainability of programs are code metrics. However, the vast majority of these metrics focus on imperative (e.g., object-oriented) coding styles and thus cannot be reused as-is for transformations written in declarative languages. In this paper we propose an initial set of quality metrics to evaluate transformations written in the declarative QVT Relations language. We apply the presented set of metrics to several reference transformations to demonstrate how to judge transformation maintainability based on our metrics.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Becker, S.: Quality of Service Modeling Language. In: Eusgeld, I., Freiling, F.C., Reussner, R. (eds.) Dependability Metrics. LNCS, vol. 4909, pp. 43–47. Springer, Heidelberg (2008)

    Chapter  Google Scholar 

  2. Becker, S., Hauck, M., Trifu, M., Krogmann, K., Kofroň, J.: Reverse Engineering Component Models for Quality Predictions. In: Proceedings of the 14th European Conference on Software Maintenance and Reengineering, European Projects Track (2010)

    Google Scholar 

  3. Boehm, B.W., Brown, J.R., Lipow, M.: Quantitative evaluation of software quality. In: ICSE 1976: Proceedings of the 2nd international conference on Software engineering, pp. 592–605. IEEE Computer Society Press, Los Alamitos (1976)

    Google Scholar 

  4. Czarnecki, K., Eisenecker, U.W.: Generative Programming (2000)

    Google Scholar 

  5. Brito, F., Abreu.: Using ocl to formalize object oriented metrics definitions. Technical report, FCT/UNL and INSC (2001)

    Google Scholar 

  6. Fenton, N.E.: Software Metrics: A Rigorous Approach. Chapman & Hall, Ltd., London (1991)

    MATH  Google Scholar 

  7. Fowler, M., Beck, K., Brant, J., Opdyke, W., Roberts, D.: Refactoring: Improving the Design of Existing Code (1999)

    Google Scholar 

  8. Goldschmidt, T., Kuebler, J.: Towards Evaluating Maintainability Within Model-Driven Environments. In: Software Engineering 2008, Workshop Modellgetriebene Softwarearchitektur - Evolution, Integration und Migration (2008)

    Google Scholar 

  9. Goldschmidt, T., Wachsmuth, G.: Refinement transformation support for QVT Relational transformations. In: 3rd Workshop on Model Driven Software Engineering, MDSE 2008 (2008)

    Google Scholar 

  10. Happe, J., Friedrich, H., Becker, S., Reussner, R.H.: A Pattern-Based Performance Completion for Message-Oriented Middleware. In: Proceedings of the 7th International Workshop on Software and Performance (WOSP 2008), pp. 165–176. ACM, New York (2008)

    Chapter  Google Scholar 

  11. Harrison, R., Samaraweera, L.G., Dobie, M.R., Lewis, P.H.: Estimating the quality of functional programs: an empirical investigation. Information and Software Technology 37(12), 701–707 (1995)

    Article  Google Scholar 

  12. Henderson-Sellers, B.: Object-oriented metrics: measures of complexity. Prentice-Hall, Inc., Upper Saddle River (1996)

    Google Scholar 

  13. Kapova, L., Becker, S.: Systematic refinement of performance models for concurrent component-based systems. In: Proceedings of the Seventh International Workshop on Formal Engineering approches to Software Components and Architectures (FESCA 2010). Electronic Notes in Theoretical Computer Science (2010)

    Google Scholar 

  14. Kübler, J., Goldschmidt, T.: A Pattern Mining Approach Using QVT. In: Paige, R.F., Hartman, A., Rensink, A. (eds.) ECMDA-FA 2009. LNCS, vol. 5562, pp. 174–189. Springer, Heidelberg (2009)

    Chapter  Google Scholar 

  15. Lange, C.F.J.: Phd thesis: Assessing and improving the quality of modeling a series of empirical studies (2007)

    Google Scholar 

  16. Masak, D.: Legacysoftware. Springer, Heidelberg (2005)

    Google Scholar 

  17. Object Management Group. MOF 2.0 Query/View/Transformation, version 1.0 (2008)

    Google Scholar 

  18. Reynoso, L., Genero, M., Piattini, M., Manso, E.: Assessing the impact of coupling on the understandability and modifiability of ocl expressions within uml/ocl combined models. In: 11th IEEE International Symposium on Software Metrics, September 19-22 , p. 10 (2005)

    Google Scholar 

  19. Rubey, R.J., Hartwick, R.D.: Quantitative measurement of program quality. In: Proceedings of the 1968, 23rd ACM national conference, pp. 671–677. ACM, New York (1968)

    Google Scholar 

  20. Solso, R.L.: Cognitive Psychology. Allyn and Bacon (2001)

    Google Scholar 

  21. Stammel, J., Reussner, R.: Kamp: Karlsruhe architectural maintainability prediction. In: Proceedings of the 1. Workshop des GI-Arbeitskreises Langlebige Softwaresysteme (L2S2): Design for Future - Langlebige Softwaresysteme, pp. 87–98 (2009)

    Google Scholar 

  22. van Amstel, M.F., Lange, C.F.J., van den Brand, M.G.J.: Metrics for analyzing the quality of model transformations. In: Paige, R.F. (ed.) ICMT 2009. LNCS, vol. 5563, pp. 239–248. Springer, Heidelberg (2009)

    Chapter  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2010 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Kapová, L., Goldschmidt, T., Becker, S., Henss, J. (2010). Evaluating Maintainability with Code Metrics for Model-to-Model Transformations. In: Heineman, G.T., Kofron, J., Plasil, F. (eds) Research into Practice – Reality and Gaps. QoSA 2010. Lecture Notes in Computer Science, vol 6093. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-13821-8_12

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-13821-8_12

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-13820-1

  • Online ISBN: 978-3-642-13821-8

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics