作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

›› 2003, Vol. 29 ›› Issue (09): 30-31.

• 论文 • 上一篇    下一篇

算法形式化推导及其在软件重用中的应用

李云清   

  1. 江西师范大学计算机科学技术学院 南昌 330027
  • 发布日期:2003-05-15

Formal Derivation of Algorithm and Its Application of Softwarereuse

LI Yunqing   

  1. (College of Computer Science and Technology, Jiangxi Normal University,Nanchang 330027)
  • Published:2003-05-15

摘要: 将形式化技术和软件复用结合是非常有意义的工作。利用规约进行变换,寻找递推关系,可以比较容易得到抽象算法。在变换中,尽可能地将有关操作抽象表示,将操作细节延迟,以适合现代软件工程的软件开发需要,对一个具体问题将得到包含抽象操作的抽象算法。利用面向对象程序设计语言中的多态性等机制,将抽象操作用虚函数表示,如此设计的类可以作为可重用部件使用。

关键词: 形式化, 软件重用, 算法, 多态性

Abstract: It's a meaningful work to combine formal technology and software reuse. By transforming function specification, the recurrence relation of abstract problem-solving can be easily obtained. In transformation, efforts should be made to express the operations abstractly and delay the operation details so that a specific problem-solving including the abstract operation can be obtained to meet the need of the software developing of the modern software engineering. With the polymorphism in object oriented programming language, the abstract operation is expressed by the virtual function. In this way, the designed class can be used as a reusable software component.

中图分类号: