| 本文已被:浏览 4978次 下载 7453次 |
 码上扫一扫! |
|
|
| 面向方面的计算误差处理技术:实例研究与评估 |
|
崔展齐1,2, 王林章1,2, 刘慧根3, 李宣东1,2
|
|
1.南京大学 计算机软件新技术国家重点实验室,江苏 南京 210093;2.南京大学 计算机科学与技术系,江苏 南京 210093;3.南京大学 天文学系,江苏 南京 210093
|
|
| 摘要: |
| 传统的实现方法通常把误差处理策略与程序的基本功能交织到一起,这会增加程序的耦合度,使得程序难以理解与维护.针对这一问题,提出一种面向方面的解决方案,即将程序的各种误差处理策略封装为方面.为评估该方法的有效性,将一个真实的卫星轨道测算系统中的误差处理策略分别封装为类中的方法和方面,并设计了一系列实验来评估原程序及分别采用两种方式重构后的程序在关注点分离度、耦合度、程序规模及运行时间上的差异.结果实验结果和重构过程中获得的经验可以得出,采用面向方面技术将误差处理功能封装为方面来实现能够有效提高程序的模块化程度和可维护性,并且不会引起程序性能的显著下降. |
| 关键词: 面向方面程序设计 重构 计算误差处理 科学计算 |
| DOI:10.3724/SP.J.1001.2011.03892 |
| 分类号: |
| 基金项目:国家自然科学基金(60721002, 90818022, 61170066); 国家重点基础研究发展计划(973)(2009CB320702) |
|
| Computational Error Handling as Aspects: A Case Study and Evaluation |
|
CUI Zhan-Qi1,2, WANG Lin-Zhang1,2, LIU Hui-Gen3, LI Xuan-Dong1,2
|
|
1.State Key Laboratory for Novel Software Technology, Nanjing University, Nanjing 210093, China;2.Department of Computer Science and Technology, Nanjing University, Nanjing 210093, China;3.Department of Astronomy, Nanjing University, Nanjing 210093, China
|
| Abstract: |
| Traditional approaches tangle the error handling concerns with the primary functional code, which inevitably increase the degree of coupling and decreases the understandability and the maintainability of programs. This paper presents an empirical study of a real-world Satellite Orbit Forecasting system by refactoring error handling policies as methods of classes and aspects, respectively. A set of experiments are constructed to evaluate the original version with the two refactored versions. Based on the results of experiments from the refactoring process, it can be concluded that the modularity and maintainability of the program have been improved without a noticeable compromise in performance by encapsulating computational error handling polices as aspects. |
| Key words: aspect-oriented programming refactoring computational error handling scientific computing |