面向设计流图的代码支撑工具  被引量:1

An Supporting Tool Based on Design Flowchart

在线阅读下载全文

作  者:戴清涵[1] 李宣东[1] 赵建华[1] 郑国梁[1] 

机构地区:[1]南京大学计算机科学与技术系,南京210093

出  处:《计算机科学》2005年第11期203-206,共4页Computer Science

基  金:国家自然科学基金(6027036;602339291);863计划(2002AA116090);江苏省自然科学基金(BK2002079)

摘  要:在通信网络软件中,代码的可靠性格外重要,编码与测试在很大程度上决定着代码的可靠性。如果让机器自动生成代码,将会减少人工编码出错的概率,而且,也为代码的跟踪、测试提供了方便。为此,本文结合UML的相关理论,提出了设计流图的概念并描述基于设计流图的代码生成的原理及其应用。本文首先描述设计流图在软件开发过程中的作用;然后,给出设计流图的形式化定义;第3部分给出代码自动生成算法;第4部分给出基于设计流图的跟踪、测试方法,最后一部分对工具作了简要的介绍。本文详细描述了如何根据设计流图生成代码,并简要介绍实现基于设计流图的跟踪与测试。本文还实现了一个集成开发环境 AutoCodeGen,在该环境中可以编辑设计流图、对设计流图进行简单的检查、编译设计流图(生成代码)、编译代码、执行设计流图(执行编译后的代码)、基于设计流图的跟踪与测试(动态显示执行路径、当前执行点、路径覆盖情况、异常点位置等)。在实践中,利用该工具实现了 TCAP(Trans-action Capabilities Application Part)协议中部分编码与解码。The stability of telecom system is especially important. Coding and testing affect the stability of code. Machine-generated code will contain less bugs than manual-typed code, and the former provides convenience for tracing and testing. For the sake of stability, this paper puts forward the concept of Design Flowchart through referencing UML related theory. This paper also describes the theory and application of auto generating code based on Design Flowchart. The first part of this paper is about the advantage of Design Flowchart in software development. The second part is about the concept of Design Flowchart. The auto-generated-code algorithm is written in the third part. The forth part describes the tracing and testing. The last part introduces the relative tool. This paper describes how to auto generate code from Design Flowchart in detail and how to trace and test the generated code in simple. This paper also realizes an IDE named AutoCodeGen. Some work can be done in the IDE, such as editing flowchart, checking flowchart, compiling flowchart, compiling code, executing flowchart (executing the compiled code), tracing and testing based on flowchart. In practice, AutoCodeGen is used to generate part of code of TCAP protocol.

关 键 词:设计流图 任务节点 转换边 面向设计 代码生成 支撑工具 流图 自动生成算法 集成开发环境 测试方法 

分 类 号:TP314[自动化与计算机技术—计算机软件与理论] TU375.4[自动化与计算机技术—计算机科学与技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象