An Introduction to Slice-Based Cohesion and Coupling Metrics
Author
Green, P. D.
Lane, P.C.R.
Rainer, A.
Scholz, S.
Attention
2299/3694
Abstract
This report provides an overview of slice-based software metrics. It brings together information about the development of the metrics from Weiser’s original idea that program slices may be used in the measurement of program complexity, with alternative slice-based measures proposed by other researchers. In particular, it details two aspects of slice-based metric calculation not covered elsewhere in the literature: output variables and worked examples of the calculations. First, output variables are explained, their use explored and standard reference terms and usage proposed. Calculating slice-based metrics requires a clear understanding of ‘output variables’ because they form the basis for extracting the program slices on which the calculations depend. This report includes a survey of the variation in the definition of output variables used by different research groups and suggests standard terms of reference for these variables. Our study identifies four elements which are combined in the definition of output variables. These are the function return value, modified global variables, modified reference parameters and variables printed or otherwise output by the module. Second, slice-based metric calculations are explained with the aid of worked examples, to assist newcomers to the field. Step-by-step calculations of slice-based cohesion and coupling metrics based on the vertices output by the static analysis tool CodeSurfer (R) are presented and compared with line-based calculations.
Publication date
2009Other links
http://hdl.handle.net/2299/3694Metadata
Show full item recordRelated items
Showing items related by title, author, creator and subject.
-
Sensorimotor experience and its metrics: informational geometry and the temporal horizon
Nehaniv, C.L. (2005) -
Software Defect Prediction Using Static Code Metrics: Formulating a Methodology
Gray, David Philip Harry (University of Hertfordshire, 2013-06-24)Software defect prediction is motivated by the huge costs incurred as a result of software failures. In an effort to reduce these costs, researchers have been utilising software metrics to try and build predictive models ... -
Metrics to Evaluate Human Teaching Engagement From a Robot's Point of View
Novanda, Ori (2018-01-29)This thesis was motivated by a study of how robots can be taught by humans, with an emphasis on allowing persons without programming skills to teach robots. The focus of this thesis was to investigate what criteria could ...