系统仿真学报 ›› 2021, Vol. 33 ›› Issue (9): 2202-2214.doi: 10.16182/j.issn1004731x.joss.20-0364

• 仿真支撑平台/系统技术 • 上一篇    下一篇

面向plug-in-play模式的仿真对象接口研究

林忠伟1, 李修和1, 姚益平2, 沈阳1, 戴少奇1, 石倩倩1   

  1. 1.国防科技大学 电子对 抗学院,安徽 合肥 230031;
    2.国防科技大学 系统工程学院,湖南 长沙 410073
  • 收稿日期:2020-06-16 修回日期:2020-08-31 出版日期:2021-09-18 发布日期:2021-09-17
  • 作者简介:林忠伟(1986-),男,博士,讲师,研究方向为计算机仿真、高性能计算、人工智能。E-mail:zwlin@nudt.edu.cn
  • 基金资助:
    国家自然科学基金(61802422)

Research on Simulation Object Interfaces Oriented to Plug-in-play Pattern

Lin Zhongwei1, Li Xiuhe1, Yao Yiping2, Shen Yang1, Dai Shaoqi1, Shi Qianqian1   

  1. 1. College of Electronic Engineering, National University of Defense Technology, Hefei 230031, China;
    2. College of System Engineering, National University of Defense Technology, Changsha 410073, China
  • Received:2020-06-16 Revised:2020-08-31 Online:2021-09-18 Published:2021-09-17

摘要: 云环境下模型和仿真引擎多以可执行文件形式提供服务,使得plug-in-play仿真应用开发模式成为首选,这就需要相应接口关联模型处理逻辑和仿真引擎控制逻辑。提出了覆盖仿真对象初始化,事件调度、处理与撤销,发布与处理订购,回滚,退出仿真全生命周期的面向plug-in-play模式的仿真对象接口,并以C++语言定义其原型,通过实例阐述其使用过程,结果表明:该套接口能够灵活定义仿真对象。配合仿真对象实例生成和销毁方法,仿真引擎托管所有实例并调用相应接口控制仿真运行,从而支持plug-in-play仿真应用开发。

关键词: 仿真对象接口, plug-in-play, 云仿真, 并行仿真

Abstract: Models and simulation engines provide services mainly in the format of executable files in cloud environment, thus plug-in-play pattern becomes the first choice of simulation, which needs necessitating interfaces to connect the model processing logics and the simulation engine control logics. A set of simulation object interfaces that covers the simulation full life cycle of initialization, event scheduling, processing and cancel, publish and processing of subscription, roll-back and termination is proposed, and then defined in C++ language. Two examples show the process of the interfaces and the effectiveness of constructing the simulation objects. With the instantiation and disposal methods, the simulation engines take over all instances and calls the corresponding interfaces to execute the simulation, which supports simulation development in plug-in-play pattern.

Key words: simulation object interface, plug-in-play, cloud simulation, parallel simulation

中图分类号: