Issue No. 10 - October (2005 vol. 31)
DOI Bookmark: http://doi.ieeecomputersociety.org/10.1109/TSE.2005.105
Massimiliano Di Penta , IEEE
Lionel C. Briand , IEEE
Yvan Labiche , IEEE Computer Society
The Object Constraint Language (OCL) was introduced as part of the Unified Modeling Language (UML). Its main purpose is to make UML models more precise and unambiguous by providing a constraint language describing constraints that the UML diagrams alone do not convey, including class invariants, operation contracts, and statechart guard conditions. There is an ongoing debate regarding the usefulness of using OCL in UML-based development, questioning whether the additional effort and formality is worth the benefit. It is argued that natural language may be sufficient, and using OCL may not bring any tangible benefits. This debate is in fact similar to the discussion about the effectiveness of formal methods in software engineering, but in a much more specific context. This paper presents the results of two controlled experiments that investigate the impact of using OCL on three software engineering activities using UML analysis models: detection of model defects through inspections, comprehension of the system logic and functionality, and impact analysis of changes. The results show that, once past an initial learning curve, significant benefits can be obtained by using OCL in combination with UML analysis diagrams to form a precise UML analysis model. But, this result is however conditioned on providing substantial, thorough training to the experiment participants.
Index Terms- Comprehension of software models, software engineering experimentation, UML, OCL.
Massimiliano Di Penta, Lionel C. Briand, Yvan Labiche, Han (Daphne) Yan-Bondoc, "An Experimental Investigation of Formality in UML-Based Development", IEEE Transactions on Software Engineering, vol. 31, no. , pp. 833-849, October 2005, doi:10.1109/TSE.2005.105