Cognitive Weighted Response for a Class: A New Metric for Measuring Cognitive Complexity of OO Systems
Main Article Content
Abstract
Various new techniques, methods and metrics are being developed by researchers for calculating the complexity of the class in Object Oriented (OO) software. Chidamber and Kemerer (CK) have proposed a metric suite for measuring the class complexity of OO design. CK metrics are well known and widely accepted suites of OO metrics. Among those set of metrics, Response For a Class (RFC) is one of the metrics, which is nothing but the number of methods that can be potentially executed in response to a message received by an object of a class. In RFC, each function call statement value is considered to be 1. The cognitive feature is not included in RFC metric which is felt as a major negative aspect of this metric. So here, we are proposing a new metric namely Cognitive Weighted Response For a Class (CWRFC). In CWRFC, the cognitive weights have to be assigned for the function call statement based on the effort needed to understand their type of function calls due to message passed by an object of that class. The proposed metric has been proved to be a better measure of cognitive complexity of class with function call statement through the case studies and experiments.
Keywords: Cognitive Weight, Software Complexity, Cognitive Weighted Response For a Class, Response For a Class, Message Passing.
Downloads
Article Details
COPYRIGHT
Submission of a manuscript implies: that the work described has not been published before, that it is not under consideration for publication elsewhere; that if and when the manuscript is accepted for publication, the authors agree to automatic transfer of the copyright to the publisher.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work
- The journal allows the author(s) to retain publishing rights without restrictions.
- The journal allows the author(s) to hold the copyright without restrictions.