面向对象软件度量

面向对象软件度量

Basic (基本的支持java, c++,c#)
===========================
LOC - Lines Of Code 代码行
NOA - Number Of Attributes 属性数量
NOC - Number Of Classes 类数量
NOCON - Number Of Constructors 构造器数量
NOIS - Number Of Import Statements 输入申明数
NOM - Number Of Members 成员数
NOO - Number Of Operations 操作数

Cohesion:(内聚)
-------------
LOCOM1 - Lack of Cohesion of Methods 1
LOCOM2 - Lack Of Cohesion Of Methods 2
LOCOM3 - Lack Of Cohesion Of Methods 3 (also known as LOCOM*)

Complexity (复杂性)
---------------------------------
AC - Attribute Complexity 属性复杂
CC - Cyclomatic Complexity 循环复杂
NORM - Number Of Remote Methods 远程方法数
RFC - Response For Class 类响应
WMPC1 - Weighted Methods Per Class 1 类有利方法1
WMPC2 - Weighted Methods Per Class 2

Coupling 耦合(度)
----------
CBO - Coupling Between Objects 对象间耦合
CDBC - Change Dependency Between Classes 类间依赖改变
CF - Coupling Factor 耦合要素
DAC - Data Abstraction Coupling 数据提取耦合
FO - FanOut 扇出

MIC Method Invocation Coupling 方法调用耦合
MICnorm = nMIC / (N -1)


Encapsulation (封装)
=================
AHF - Attribute Hiding Factor 属性隐含要素
MHF - Method Hiding Factor 方法隐含要素

Halstead (halstead度量法)
==============
HDIFF - Halstead Difficulty
HEFF - Halstead Effort
HPLEN - Halstead Program Length
HPVoc - Halstead program vocabulary
NOPrnd- Number of Operands
NUOprnd-Number of unique Operands
NUOprtr-Number of Unique operators

Inheritance(继承)
==============
================
AIF - Attribute inheritance factor 属性继承要素
DOIH - Depth of inheritance Hierarchy 继承层次深度
MIF - Method inheritance factor 方法继承要素
NOCC - Number of child classes 子类数

Inheritance-based coupling 基于耦合的继承
========================
TRAp -Total reuse from ancestors percentage 从祖先类重用百分比
TRAu - Total resuse from ancestors unitary 从祖先类重用的单元
TRDp - Total reuse in descendants percentage 从子孙重用的百分比
TRDu - Total resue in descendants unitary 从子孙重用的单元

Maximun (最大化)
==================
MNOL - Maximum number of levels 层次最大数
MNOP - Maximum Number of parameters 参数最大数
MSOO - Maximum size of operation 操作最大数

Polymorphism(多态)
==================
NOAM - Number of added methods 附加的方法数
NOOM - number of overridden methods 不考虑的方法数
PF - Polymorphism factor 多态要素

Ratio 比例
====================
CR -Comment Ratio 注释比例
PPkgM - Percentage of package members 包成员百分比
PPrivM - Percentage of private members 私有包成员百分比
PProtm - Percentage of Protected members 保护包成员百分比
PPubM - Percentage of public members 公共包成员百分比
TCR - True comment ratio 实际注释比例
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值