摘要
耦合性是两个模块间相互作用的测度。面向方面编程是一种新的编程范型,它支持关注点的分离。目前,对于面向方面软件耦合度量的常用方法是对软件进行结构分析和静态代码分析。然而,由于系统中的动态绑定以及代码中大量无用的方面代码导致静态度量结果无法精确地反映程序运行时的实际耦合。首先提出适用于面向方面软件的动态耦合度量框架。接着,在该框架的基础上,根据不同的耦合关系类型,形式化定义了动态耦合度量指标集,并验证数学属性。最后,讨论了动态耦合度量工具的实现。
Coupling indicates the strength of association established by a connection from one module to another. Aspect-oriented programming (AOP) is a new technique to support separation of concerns in software development. In aspect-oriented (AO) software, a common way to define and measure coupling for AO software is through structural properties and static code analysis. However, because of dynamic biding and the common presence of unused aspect code, the resulting coupling measures are imprecise as they do not perfectly reflect the actual coupling taking place among aspects and/or classes at runtime. In this paper, firstly a framework for dynamic coupling metric fit for AO systems is specially designed. Secondly, based on this framework, a dynamic coupling measure indices set is formally defined according to various types of coupling relations, and the mathematical properties of these measures are verified. Lastly, a dynamic coupling metrics collection tool is discussed.
出处
《计算机应用与软件》
CSCD
北大核心
2008年第12期151-155,共5页
Computer Applications and Software
关键词
耦合性
面向方面
关注点
动态度量
Coupling Aspect-oriented Concern Dynamic metrics