Research on Cohesion Metric of Component
Lei Han · Microcomputer Information · 2009
It is important to cohesion metric in the quality metric of component. Classical Program slice is a good way to measure component cohesion, but its value is different to different slice of the same component. This paper not only can measure component cohesion but also makes the value exclusive. Firstly, the formal definition of elements in the component is given. Then a dependence graph of component can be created to describe the relationship of variable, function and so on. Cohesion between variable and variable, function and variable, function and function of component is measured on the above dependence graph. What ’s more, the im- plement algorithms are given, and the theorems which influence component cohesion are proposed to make implementing high cohesion component easy.