| 本文已被:浏览 4919次 下载 5907次 |
 码上扫一扫! |
|
|
| 一种从面向对象Z规约到代码的精化演算方法 |
|
王云峰1,2, 庞军1, 查鸣1, 杨朝晖1, 郑国梁1
|
|
1.南京大学计算机软件新技术国家重点实验室,南京,210093;2.解放军理工大学气象学院,南京,211101
|
|
| 摘要: |
| COOZ(complete object-oriented Z)的优势在于精确描述大型程序的规约.COOZ本身的结构 不支持精化演算,这限制了COOZ的应用能力,使COOZ难以作为完整的方法应用于软件的开发. 将精化演算引入COOZ,弥补了COOZ在设计和实现阶段的不足,同时也消除了规约与实现之间在 结构和表示方法上的完全分离,使程序开发在一个完整的框架下平滑进行.该文提出了基于CO OZ和精化演算的软件开发模型,通过实例讨论了数据精化和操作精化问题.在精化演算实现技 术方面构造了一种数据精化算子,提出一 |
| 关键词: 形式化开发方法,精化演算,形式规约,面向对象. |
| DOI: |
| 分类号: |
| 基金项目:本文研究得到国家自然科学基金(No.69673006)和国家“九五”重点科技攻关项目基 金(N o.98-780-01-07-06)资助. |
|
| From Object-Oriented Z Specification to Code by Refinement Calculus |
|
WANG Yun-feng,PANG Jun,ZHA Ming,YANG Zhao -hui,ZHENG Guo-liang
|
| Abstract: |
| The advantage of COOZ (complete object-oriented Z) is to specify large scale so ftware, but it does not support refinement calculus. Thus its application is con fined and it can not be taken as a complete method for software development. I ncluding refinement calculus into COOZ remedies its disadvantage during design and implementation. The separation between the design and implementation for st ructure and notation is removed as well. Then the software can be developed smoo thly in the same frame. In this paper, development model is established, which i s based on COOZ and refinement calculus. Data refinement and operation refinemen t are debated with a example. As for implementary technology of refinement calcu lus, a data refinement calculator is constructed and an approach for data refi nement which is based on data refinement calculus and program window inference is provided. |
| Key words: Formal development method, refinement calculus, formal specification, object-or iented. |