Abstract
Copy and paste is a function that is very popular in software programming. In software modeling, when a person performs a copy and paste, she/he expects that the copy will be similar to the original. The similarity refers to a selection of what properties and references from the original element have to be copied. This problem seems difficult because this feature is not addressed in scientific literature, is rarely available in — de-facto standard — editors of UML class diagram or functions differently from one editor to another. In this article, we will show that a significant part of the solution depends on the metrics used. We propose three families of metrics that produce various copy and paste behaviors. We adopted an empirical approach to assess their ergonomic qualities. We asked 67 people to predict results of a series of copy-pasting experiments. We observed two populations, one influenced by the visual representation and the other by semantics.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
References
Alais, D., Blake, R., Lee, S.H.: Visual features that vary together over time group together over space. Nature Neuroscience 1(2), 160–164 (1998)
Blok, M.C., Cybulski, J.L.: Reusing UML specifications in a constrained application domain. In: Proceedings of 1998 Asia Pacific Software Engineering Conference, pp. 196–202 (December 1998)
Booch, G., Rumbaugh, J., Jacobson, I.: The Unified Modeling Language User Guide. Addison Wesley Professional (2005)
Burkhardt, J.M., Détienne, F., Wiedenbeck, S.: Object-oriented program comprehension: Effect of expertise, task and phase. Empirical Software Engineering 7(2), 115–156 (2002), http://dx.doi.org/10.1023/A%3A1015297914742
Harel, D., Rumpe, B.: Meaningful modeling: what’s the semantics of “semantics”? Computer 37(10), 64–72 (2004)
Jézéquel, J.M.: Model driven design and aspect weaving. Software & Systems Modeling 7(2), 209–218 (2008)
Kelly, S., Tolvanen, J.P.: Domain-Specific Modeling: Enabling Full Code Generation. John Wiley & Sons, Inc., Hoboken (2007)
Caskurlu, B.: Model driven engineering. In: Butler, M., Petre, L., Sere, K. (eds.) IFM 2002. LNCS, vol. 2335, pp. 286–298. Springer, Heidelberg (2002)
Kim, M., Bergman, L., Lau, T., Notkin, D.: An ethnographic study of copy and paste programming practices in oopl. In: Proceedings of 2004 International Symposium on Empirical Software Engineering, ISESE 2004, pp. 83–92 (August 2004)
Koschke, R.: Identifying and removing software clones. In: Software Evolution, pp. 15–36. Springer, Heidelberg (2008)
Li, Z., Lu, S., Myagmar, S., Zhou, Y.: Cp-miner: finding copy-paste and related bugs in large-scale software code. IEEE Transactions on Software Engineering 32(3), 176–192 (2006)
Mann, Z.: Three public enemies: cut, copy, and paste. Computer 39(7), 31–35 (2006)
Moody, D.: The “physics” of notations: Toward a scientific basis for constructing visual notations in software engineering. IEEE Transactions on Software Engineering 35(6), 756–779 (2009)
Object Management Group: OMG Unified Modeling Language (OMG UML), Infrastructure. Version 2.4.1. OMG Document Number: formal/2011-08-05 (August 2011), http://www.omg.org/spec/UML/2.4.1/Infrastructure/PDF/
Palmer, S., Rock, I.: Rethinking perceptual organization: The role of uniform connectedness. Psychonomic Bulletin & Review 1(1), 29–55 (1994)
Palmer, S.E.: Common region: A new principle of perceptual grouping. Cognitive Psychology 24(3), 436–447 (1992)
Robles, K., Fraga, A., Morato, J., Llorens, J.: Towards an ontology-based retrieval of UML class diagrams. Information and Software Technology 54(1), 72–86 (2012)
Roddick, J.F., Hornsby, K., de Vries, D.: A unifying semantic distance model for determining the similarity of attribute values. In: Proceedings of the 26th Australasian Computer Science Conference, ACSC 2003, pp. 111–118. Australian Computer Society, Inc., Darlinghurst (2003)
Rufai, R.A.: New Structural Similarity Metrics for UML Models. Ph.D. thesis, King Fahd University of Petroleum & Minerals, Saudi Arabia (2003)
Schmidt, D.: Guest editor’s introduction: Model-driven engineering. Computer 39(2), 25–31 (2006)
Wagemans, J., Elder, J.H., Kubovy, M., Palmer, S.E., Peterson, M.A., Singh, M., von der Heydt, R.: A century of Gestalt psychology in visual perception: I. Perceptual grouping and figure-ground organization. Psychological Bulletin 138(6), 1172–1217 (2012)
Wertheimer, M.: Untersuchungen zur lehre von der gestalt. ii. Psychologische Forschung 4(1), 301–350 (1923)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2014 Springer International Publishing Switzerland
About this paper
Cite this paper
Liabeuf, D., Le Pallec, X., Rouillard, J. (2014). An Empirical Study on the Anticipation of the Result of Copying and Pasting among UML Editors. In: Amyot, D., Fonseca i Casas, P., Mussbacher, G. (eds) System Analysis and Modeling: Models and Reusability. SAM 2014. Lecture Notes in Computer Science, vol 8769. Springer, Cham. https://doi.org/10.1007/978-3-319-11743-0_3
Download citation
DOI: https://doi.org/10.1007/978-3-319-11743-0_3
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-11742-3
Online ISBN: 978-3-319-11743-0
eBook Packages: Computer ScienceComputer Science (R0)