Measuring OCL expressions: a “tracing”-based approach

نویسندگان

  • Luis Reynoso
  • Marcela Genero
  • Mario Piattini
چکیده

Owing that class diagrams constitute the backbone of object-oriented (OO) software development, many metrics were proposed to measure internal quality attributes such as the structural complexity, coupling, size, etc. But none of the proposed metrics take into account the added complexity when class diagrams are complemented by Object Constraint Language (OCL) expressions. OCL expressions improve class diagrams enhancing their semantic properties, adding precision, improving their documentation and understandability. The importance of OCL and the lack of defined metrics for OCL expressions motivate us to propose a set of metrics for structural properties of OCL expressions. The first set of metrics we propose considers only those OCL concepts related to “tracing” technique. We believe that “tracing” technique affects the cognitive complexity, and by consequence the understandability of OCL expressions, and the maintenance of a UML class diagram. Therefore, the main goal of this paper is to show how we defined a set of metrics for structural properties of OCL expressions in a methodological way. We will also present the theoretical validation of these metrics according to a property-based framework proposed by Briand et. al..

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Using an OCL Impact Analysis Algorithm for View-Based Textual Modelling

The Object Constraint Language (OCL) has become a vital part of many frameworks, tools and languages within model-driven engineering. One such application of OCL is the use for describing rules in concrete syntax definitions. Within the textual modeling framework FURCAS, OCL is extensively used for the definition of lookup and attribution rules. Based on these rules the model which is described...

متن کامل

A metric for measuring the complexity of OCL expressions

Despite the importance of OCL in the specification of UML models, few existing metrics are devoted to measure the complexity of OCL expressions. The proposed ones are based on the syntactic structure of the expressions (number of referred attributes, number of navigations,...) and on the constructs used in their definition (as the number of forAll and select iterators). Indeed, these metrics ar...

متن کامل

Validating Metrics for OCL Expressions Expressed within UML/OCL models

Measuring quality is the key to developing high-quality software, and it is widely acknowledged that quality assurance of software products must be guaranteed from the early stages of development, assessing through metrics the quality of early models such as UML diagrams. There exists several proposals of metrics to UML diagrams, such as class diagrams, use case diagrams, etc. But, even though ...

متن کامل

Towards a metric suite for OCL Expressions expressed within UML/OCL models

UML models quality is clearly a crucial issue that must be evaluated at the initial stages of object-oriented software development, in order to get software products with better quality. This fact is corroborated by the huge amount of metrics that have appeared in the literature related to the measurement of UML diagrams at a high level design stage. Most of these metrics are focused on the mea...

متن کامل

MySQL4OCL: A Stored Procedure-Based MySQL Code Generator for OCL

In this paper we introduce a MySQL code generator for a significant subset of OCL expressions which is based on the use of stored procedures for mapping OCL iterators. Our code generator is defined recursively over the structure of OCL expressions. We discuss the class of OCL expressions covered by our definition (which includes, possibly nested, iterator expressions) as well as some extensions...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2003