AY02514741479

Page 1

International Journal Of Computational Engineering Research (ijceronline.com) Vol. 2 Issue. 5

Analysis of object Oriented Metrics 1.

Dr.R.V.Krishnaiah, 2.BANDA SHIVA PRASAD

Abstract

Object Oriented, Design, Development, Metric, Measure, Coupling, Cohesion, Complexity, Size

We can signify nine classes of Object Oriented Metrics. In each of then an aspect of the software would be measured:  Size  Population (# of classes, operations)  Volume (dynamic object count)  Length (e.g., depth of inheritance)  Functionality (# of user functions)  Complexity How classes are interrelated Coupling, collaborations between classes, number of method calls, etc.Sufficiency Does a class reflect the necessary propertiesof the problem domain?Completeness Does a class reflect all the properties of the problem domain? (for reuse) CohesionDo the attributes and operations in a class achieve a single, well-defined purpose in the problemdomain?Primitiveness (Simplicity) Degree to which class operations can’t be composed from other operationsSimilarity Comparison of structure, function, behavior of two or more classesVolatilityThe likelihood that a change will occur in the design or implementation of a class

Introduction

Metrics

Object-Oriented Analysis and Design of software provide many benefits such as reusability, decomposition of problem into easily understood object and the aiding of future modifications. But the OOAD software development life cycle is not easier than the typical procedural approach. Therefore, it is necessary to provide dependable guidelines that one may follow to help ensure good OO programming practices and write reliable code. Object-Oriented programming metrics is an aspect to be considered. Metrics to be a set of standards against which one can measure the effectiveness of Object-Oriented Analysis techniques in thedesign of a system. Five characteristics of Object Oriented Metrics are as following: 1. Localization operations used in many classes 2. Encapsulation metrics for classes, not modules 3. Information Hiding should be measured & improved 4. Inheritance adds complexity, should be measured 5. Object Abstraction metrics represent level of abstraction

Chidamber and Kemerer's metrics suite for OO Design is the deepest research in OO metrics investigation. They have defined six metrics for the OO design. In this section we’ll have a complete description of their metrics:

Now a days Software development plays vital role in the world. We focus on process improvement has increased the demand for software measures, or metrics with which to manage the process. Measurement is fundamental to any engineering discipline. There is considerable evidence that object-oriented design metrics can be used to make quality management decisions. This leads to substantial cost savings in allocation of resources for testing or estimation of maintenance effort for a project. The need for such metrics is particularly acute when an organization is adopting a new technology for which established practices have yet to be developed. This research addresses these needs through the development and implementation of a suite of metrics for OO design. The metric values have been calculated using a semi automated tool. The resulting values have been analyzed to provide significant insight about the object oriented characteristics of the projects.

Index Terms

Issn 2250-3005(online)

Metric 1: Weighted Methods per Class (WMC) Definition: Consider a Class C1, with methods M1... Mn that are defined in the class. Let c1... cn be the complexity of the methods. Then:

If all method complexities are considered to be unity, then WMC = n, the number of methods. Theoretical basis: WMC relates directly to Bunge's1 definition of complexity of a thing, since methods are properties of object classes and complexity is determined by the cardinality of its set of properties. The number of methods is, therefore, a measure of class definition as well as being attributes of a class, since attributes correspond to properties. September| 2012

Page 1474


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.