高级检索

    面向对象软件度量中的内聚缺乏度分析

    ANALYSIS OF LACK OF COHESION IN METHODS IN OBJECT ORIENTED SOFTWARE METRICS

    • 摘要: 从理论和实验两方面对面向对象软件度量中内聚缺乏度本质与表现进行了较深入的分析 ,给出了内聚缺乏度的 3种定义 :α,β和γ,比较了它们的优点和缺点 .理论与实验均表明 ,α内聚缺乏度 (也就是 C& K内聚缺乏度 )和β内聚缺乏度均没有“度”的含义 .而γ内聚缺乏度有较好的特性 ,但对于方法数特别少的类 ,稳定性差 .还简要分析了基于α内聚缺乏度 (C& K内聚缺乏度 )派生出的两种内聚缺乏度定义 ,即β′和γ′内聚缺乏度 ,它们与β和γ内聚缺乏度有相同的性质 .并指出 ,内聚缺乏度研究应当与程序员心理学研究相结合 .

       

      Abstract: A deep analysis is made of the essence and behaviors of lack of cohesion in methods (LCOM) in object oriented software metrics from both theoretic and experimental aspects. Three kinds of LCOM definitions are given. They are α LCOM, β LOCM, and γ LCOM. Their advantages and disadvantages are compared. Theory and experiment show that there is a lack of meanings of degree in α LOCM (i. e. C&K LOCM) and in β LCOM, γ LCOM has better characteristics but poor stability in a class with a few of methods. Also analyzed are two kinds of LCOM definitions derived from α LCOM, i. e. β′ LCOM and γ′ LOCM. They have the same characteristics as β LCOM and γ LOCM. It is indicated that the research on LCOM should be combined with the research on psychology about programmers.

       

    /

    返回文章
    返回