Measuring Cohesion and Coupling in Object Oriented System Using Java Reflection
نویسندگان
چکیده
Creating an efficient and effective system is a motto of a software engineer. The companies are spending 60% of cost for producing good quality software, software metrics require to measure qualitative in terms of software performance and reliability related characteristics like dependencies, coupling and cohesion etc. This paper proposes a set of new measures to find coupling and cohesion in a developmental system using Java reflection components to assess the usability. It will predict the fault in an object oriented system. Coupling and cohesion metrics are calculated by considering a number of relationships of a class. In this paper these metrics are calculated by using structural parameters like classes, methods and attributes. The structured information embedded in the source code. Classes, methods and attributes are retrieved in a package by using Java reflection. The retrieved information helps to measure the coupling and cohesion.
منابع مشابه
Empirical Exploration for the Correlation between Class Object-Oriented Connectivity-Based Cohesion and Coupling
Attributes and methods are the basic contents of an object-oriented class. The connectivity among these class members and the relationship between the class and other classes play an important role in determining the quality of an object-oriented system. Class cohesion evaluates the degree of relatedness of class attributes and methods, whereas class coupling refers to the degree to which a cla...
متن کاملInvestigating effect of Design Metrics on Fault Proneness in Object-Oriented Systems
Demand for quality software has undergone with rapid growth during the last few years. This is leading to an increase in the development of metrics for measuring the properties of software such as coupling, cohesion or inheritance that can be used in early quality assessments. Quality models that explore the relationship between these properties and quality attributes such as fault proneness, m...
متن کاملA Novel Class, Object and Inheritance based Coupling Measure (COICM) to Find Better OOP Paradigm using JAVA
The extent of coupling and cohesion in an objectoriented system has implications for its external quality. Various static coupling and cohesion metrics have been proposed and used in past empirical investigations; however none of these have taken the run-time properties of a program into account. As program behavior is a function of its operational environment as well as the complexity of the s...
متن کاملA Class Cohesion Metric Focusing on Cohesive-Part Size
Cohesion is an important software attribute, and it is one of significant criteria for assessing object-oriented software quality. Although several metrics for measuring cohesion have been proposed, there is an aspect which has not been supported by those existing metrics, that is “cohesive-part size.” This paper proposes a new metric focusing on “cohesive-part size,” and evaluates it in both o...
متن کاملPredicting Maintainability with Object-Oriented Metrics - An Empirical Comparison
A large number of metrics have been proposed for measuring properties of object-oriented software such as size, inheritance, cohesion and coupling. We have been investigating which of these object-oriented metrics can be used as significant predictors for the maintainability of software. For this purpose, we have designed and conducted an empirical study based on historical data collected from ...
متن کامل