• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2014, Vol. 36 ›› Issue (06): 1192-1197.

• 论文 • 上一篇    下一篇

基于UML的仿真应用系统映射方法研究

王晶,翟永翠,周玉芳   

  1. (中国船舶重工集团第七一六研究所,江苏 连云港 222006)
  • 收稿日期:2013-02-17 修回日期:2013-04-27 出版日期:2014-06-25 发布日期:2014-06-25
  • 基金资助:

    江苏省自然科学基金青年基金资助项目(BK2012236)

Research on the mapping method of the
simulation application system based on UML       

WANG Jing,ZHAI Yongcui,ZHOU Yufang   

  1. (716th Research Institute,CSIC,Lianyungang 222006,China)
  • Received:2013-02-17 Revised:2013-04-27 Online:2014-06-25 Published:2014-06-25

摘要:

基于组件的仿真应用系统设计方法在视图建模时往往存在标准不统一的问题,提出了仿真应用系统向统一建模语言UML映射的解决思路,仅用两种视图实现了系统的完整建模,完成了系统静态组成结构向UML复合结构图的映射以及系统动态行为向UML活动图的映射。参考模型驱动架构MDA的开发过程,对完成映射的系统进行了代码自动生成,实现了用户的零编码。最后,通过某一海军作战仿真实例证明,此方法达到了基于组件的仿真应用系统视图建模标准化的目的,提高了系统的一致性。

关键词: 组件;统一建模语言;映射方法;代码自动生成

Abstract:

When designing the componentbased simulation application system,the view modeling standard is always inconsistent.In order to solve the problem,a mapping idea that transforms simulation application into UML(Unified Modeling Language) diagram is proposed.The mapping method only uses two diagrams to realize the complete modeling of the system. It not only transforms static structure of system into UML composite structure diagram,but also transforms the dynamic action of system into UML activity diagram. In addition, automatic code generation is realized based on the development process of MDA (Model Driven Architecture). In the end,a navy combat simulation instance is presented to prove that the method achieves the standardization purpose of the componentbased system view modeling and improves the system consistency.

Key words: component;unified modeling language (UML);mapping method;automatic code generation