ISSN 1000-1239 CN 11-1777/TP

计算机研究与发展 ›› 2021, Vol. 58 ›› Issue (4): 706-730.doi: 10.7544/issn1000-1239.2021.20200757

所属专题: 2021人工智能背景下的需求工程专题

• 人工智能 • 上一篇    下一篇

基于限定中文自然语言需求的SysML模型自动生成方法

鲍阳1,2,杨志斌1,2,杨永强1,2,谢健1,2,周勇1,2,岳涛1,2,黄志球1,2,郭鹏3   

  1. 1(南京航空航天大学计算机科学与技术学院 南京 211106);2(高安全系统的软件开发与验证技术工信部重点实验室(南京航空航天大学) 南京 211106);3(航空工业计算所 西安 710065) (baoyang_864@163.com)
  • 出版日期: 2021-04-01
  • 基金资助: 
    国家自然科学基金项目(62072233);航空科学基金项目(201919052002);中央高校基本科研业务费专项资金项目(NP2017205)

An Automated Approach to Generate SysML Models from Restricted Natural Language Requirements in Chinese

Bao Yang1,2, Yang Zhibin1,2, Yang Yongqiang1,2, Xie Jian1,2, Zhou Yong1,2, Yue Tao1,2, Huang Zhiqiu1,2, Guo Peng3   

  1. 1(School of Computer Science and Technology,Nanjing University of Aeronautics and Astronautics,Nanjing 211106);2(Key Laboratory of Safety-critical Software,Ministry of Industry and Information Technology (Nanjing University of Aeronautics and Astronautics),Nanjing 211106);3(Aviation Computing Technology Research Institute,Xi'an 710065)
  • Online: 2021-04-01
  • Supported by: 
    This work was supported by the National Natural Science Foundation of China (62072233), the Aviation Science Fund of China (201919052002), and the Fundamental Research Funds for the Central Universities (NP2017205).

摘要: 模型驱动开发方法逐渐成为安全关键信息物理融合系统(safety-critical cyber-physical system, SC-CPS)设计与开发的重要手段.然而,安全关键信息物理融合系统需求往往是通过自然语言描述的,如何自动化或半自动化链接自然语言需求和基于模型驱动的系统设计与开发过程是目前面临的重要挑战.面向安全关键信息物理融合系统,提出基于限定中文自然语言需求的SysML模型自动生成方法RNL2SysML.首先,为了降低自然语言需求表达的二义性,提出一种结构化的限定自然语言需求模板进行需求规约,并通过基于人工智能的(AI)安全关键信息物理融合系统术语提取和推荐方法,对系统需求中的领域术语和数据字典加以自动提取,提高限定自然语言需求规约工作的自动化程度.然后,给出限定自然语言需求规约到SysML系统设计模型的转换方法.最后,基于开源工具Papyrus对所提方法进行了原型工具实现,并通过航空领域的飞机空气增压系统(airplane air compressor system)案例验证了方法的有效性和实用性.

关键词: 安全关键信息物理融合系统, 模型驱动开发方法, 系统建模语言, 术语推荐, 限定自然语言需求, 模型转换

Abstract: Model-driven development has been gradually adopted as an important approach of designing and developing safety-critical cyber-physical systems(SC-CPSs). The requirement of SC-CPSs is often described in natural language. How to link natural language requirements and the model-driven design and development process of SC-CPSs automatically or semi-automatically is a main existing challenge. In this paper, a method named RNL2SysML is proposed for the automatic generation of SysML models from restricted natural language requirements in Chinese. Firstly, in view of the problem that glossaries need to be manually extracted, a method for extracting and recommending terms of SC-CPSs based on artificial intelligence is proposed. Secondly, in order to reduce the ambiguity of natural language requirements, a restricted natural language requirement template is proposed for requirement specification. Then, the method of transformation from natural language requirement specification to SysML model is given. Finally, based on the open source tool Papyrus, the plugin for the method proposed in this paper is implemented, and the effectiveness and practicality of the method is evaluated and proved by an industry case of the airplane air compressor system in the aviation field.

Key words: safety-critical cyber-physical system, model-driven development, SysML, glossary recom-mendation, restricted natural language requirement, model transformation

中图分类号: