摘要
面向对象软件设计最优规则能够指导设计出优化结构,提高OO设计的结构质量,使设计更易维护。Riel规则是其中一种重要的设计最优规则。链接分析度量是针对OO类图模型质量的一种度量方法。文中研究了Riel规则及链接分析度量方法,并分析了链接分析度量方法与Riel规则及OO模型质量的关系。结论表明Riel规则指出了OO设计应避免创建“上帝”(God)类,链接分析度量能够识别出具有上帝(“God”)角色的类,指导设计者的设计遵守Riel规则。有效地使用链接分析度量,使OO设计符合Riel规则,可以及早发现问题,提出改进意见,从而提高OO软件的质量。
OO design heuristics can direct to design a good structure and improve OO design, so that it can be maintained easily. Riel heuristics is one of the important design heuristics. The link-analysis metric is a kind of design metric to the quality of OO class diagram. In this paper, Rid heuristic is researched, then the link-analysis metric is introduced, the relation between link-analysis metric, Rid heuristic and the OO model quality is analyzed. The result is that Riel heuristic imposes OO design should avoid creating God class, the link-analysis metric can recognize God class and direct a design to abide to Riel heuristic. Using the link-analysis metric efficiently may find the design question early and improve OO design quality.
出处
《微机发展》
2005年第11期118-119,共2页
Microcomputer Development
关键词
OO度量
可维护性
设计最优规则
OO模型质量
object-oriented metrics
maintainability
design heuristics
object-oriented model quality