The invention relates to a reusable simulation model interface design and docking method, device, medium and computer equipment. This method includes: obtaining the simulation model header file or model description file from the workspace, generating the simulation model frame based on the simulation model header file or model description file, and generating the simulation model frame based on the simulation model frame. The simulation model tree displays in the model operation interface, receives the model tree input model to modify data, modifies the simulation model frame according to the model modification data, and gets the reused simulation model. When receiving the data output instruction corresponding to the simulation model tree, the model gets the model according to the reusing simulation model. The file is displayed on the model operation interface. By providing the visual model editing interface to edit the model data, the framework of the reusable simulation model can be built quickly, so that the model developers do not have to pay much attention to the code details of the reusable model development specification, and can put more energy on the model function development and improve the design of the model. And docking efficiency and reusability.
【技术实现步骤摘要】
可重用仿真模型接口设计与对接方法、装置和计算机设备
本专利技术涉及计算机仿真模型设计
,特别是涉及一种可重用仿真模型接口设计与对接方法、装置和计算机设备。
技术介绍
随着科技的快速发展,系统的复杂程度越来越高,为解决复杂系统建模分析时对其各模型重复利用、信息保密等问题和系统内各模型进行接口对接和确定,需要有一种基于可重用的仿真模型接口设计与对接方法。在复杂系统仿真应用中往往要求仿真是可演进的,即随着设计的深入,前一阶段的仿真模型能够在后一阶段继续使用或重用。仿真模型重用与对接也是当前仿真领域的热点和难点问题之一。随着的发展,传统的模型开发方法是采用HLA(HighLevelArchitecture,高层体系结构)分布仿真技术,利用对象模型开发工具(ObjectModelDevelopmentTool,OMDT)进行仿真模型的设计,而OMDT软件普遍采用表单化设计,使用不便,在模型的重用上需要耗费大量的时间,相关的模型文档也得不到很好的管理,模型间的链接也很难实现,传统的模型开发方法存在模型对接效率低、难以重用等缺点。
技术实现思路
基于此,有必要针对上述问题,提供一种对接效率高的可重用仿真模型接口设计与对接方法、装置和计算机设备。一种可重用仿真模型接口设计与对接方法,包括以下步骤:从工作空间获取仿真模型头文件或模型描述文件,根据所述仿真模型头文件或所述模型描述文件生成仿真模型框架;根据所述仿真模型框架生成仿真模型树在模型操作界面进行显示;接收对应所述仿真模型树输入的模型修改数据,根据所述模型修改数据对所述仿真模型框架进行修改,得到重用仿真模型;当接收到对 ...
【技术保护点】
1.一种可重用仿真模型接口设计与对接方法,其特征在于,包括以下步骤:从工作空间获取仿真模型头文件或模型描述文件,根据所述仿真模型头文件或所述模型描述文件生成仿真模型框架;根据所述仿真模型框架生成仿真模型树在模型操作界面进行显示;接收对应所述仿真模型树输入的模型修改数据,根据所述模型修改数据对所述仿真模型框架进行修改,得到重用仿真模型;当接收到对应所述仿真模型树输入的数据输出指令时,根据重用仿真模型得到模型文件并在所述模型操作界面显示。
【技术特征摘要】
1.一种可重用仿真模型接口设计与对接方法,其特征在于,包括以下步骤:从工作空间获取仿真模型头文件或模型描述文件,根据所述仿真模型头文件或所述模型描述文件生成仿真模型框架;根据所述仿真模型框架生成仿真模型树在模型操作界面进行显示;接收对应所述仿真模型树输入的模型修改数据,根据所述模型修改数据对所述仿真模型框架进行修改,得到重用仿真模型;当接收到对应所述仿真模型树输入的数据输出指令时,根据重用仿真模型得到模型文件并在所述模型操作界面显示。2.根据权利要求1所述的可重用仿真模型接口设计与对接方法,其特征在于,所述仿真模型树的子节点包括模型基本信息、宏定义、自定义数据类型、模型成员变量、初始化参数表、输入参数表、输出参数表和工作参数表。3.根据权利要求1所述的可重用仿真模型接口设计与对接方法,其特征在于,所述根据所述仿真模型框架生成仿真模型树在模型操作界面进行显示之后,所述接收对应所述仿真模型树输入的模型修改数据,根据所述模型修改数据对所述仿真模型框架进行修改,得到重用仿真模型之前,还包括以下步骤:当接收到对应所述仿真模型树输入的状态显示指令时,获取所述仿真模型框架的属性参数进行显示。4.根据权利要求1所述的可重用仿真模型接口设计与对接方法,其特征在于,所述从工作空间获取仿真模型头文件或模型描述文件,根据所述仿真模型头文件或所述模型描述文件生成仿真模型框架之前,还包括以下步骤:检测工作空间是否存储有仿真模型头文件或模型描述文件;若是,则进行所述从工作空间获取仿真模型头文件或模型描述文件,根据所述仿真模型头文件或所述模型描述文件生成仿真模型框架的步骤;若否,则生成空白模型树在模型操作界面进行显示;接收对应所述空白模型树输入的模型设置数据,根据所述模型设置数据进行模型设计,得到仿真模型框架进行保存。5.根据权利要求4所述的可重用仿真模型接口设计与对接方法,其特征在于,所述模型设置数据包括模型基本信息、宏定义、自定义数据类型、模型成员变量、参数表和模型对外交互关系。6.一种可重用仿真模型接口设计与对接装置,其特征在于,包括:模型导入模...
【专利技术属性】
技术研发人员:赵宇亮,雷鹏,王立辉,徐超,鄢来斌,
申请(专利权)人:湖南和信智仿信息科技有限公司,
类型:发明
国别省市:湖南,43
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。