基于UML的CASE平台的代码自动生成

Code Generation of a Visual CASE Platform Based on UML

  • 摘要: 为进一步推广 U ML 这一主流面向对象方法的建模标准的实际应用, 研究基于 UML 软件开发过程的可视化 CASE平台的体系结构, 探讨面向对象的通用代码生成机制. 设计了目标语言 C+ +的代码生成结构, 分析了模型中各种建模元素与生成的源代码之间的映射关系, 提出了代码生成器由模型检查子系统、模型属性设置子系统和代码生成子系统 3部分构成. 最终实现了基于 U ML 可视化 CASE平台的 C+ +源代码的自动生成.

     

    Abstract: To generalize the practical use of UML which is the main modeling standard in the field of object oriented method, the paper (1) introduces the architecture of an visual modeling platform for software development procedures based on UML, (2) discusses the mechanism of object oriented general code generation, (3) designs the code generator structure with target language C++, (4) analyzes the mapping ralationship between each kind of elements in the model and the C++ source code, (5) puts forward that the code generator is made up of the model checking subsystem, the model property setting subsystem and the code generating subsystem, and finally (6) implements the C++ code generator of a visual CASE modeling platform based on UML.

     

/

返回文章
返回
Baidu
map