[1]黄继杰,林昌年,杨选怀,等.一种支持私有云仿真的 HLA/ RTI 实现方法[J].计算机技术与发展,2019,29(09):164-168.[doi:10. 3969 / j. issn. 1673-629X. 2019. 09. 031]
 HUANG Ji-jie,LIN Chang-nian,YANG Xuan-huai,et al.An HLA/ RTI Implementation Supporting Private Cloud Simulation[J].,2019,29(09):164-168.[doi:10. 3969 / j. issn. 1673-629X. 2019. 09. 031]
点击复制

一种支持私有云仿真的 HLA/ RTI 实现方法()
分享到:

《计算机技术与发展》[ISSN:1006-6977/CN:61-1281/TN]

卷:
29
期数:
2019年09期
页码:
164-168
栏目:
应用开发研究
出版日期:
2019-09-10

文章信息/Info

Title:
An HLA/ RTI Implementation Supporting Private Cloud Simulation
文章编号:
1673-629X(2019)09-0164-05
作者:
黄继杰林昌年杨选怀王兰香王国平
北京科东电力控制系统有限责任公司,北京 100192
Author(s):
HUANG Ji-jieLIN Chang-nianYANG Xuan-huaiWANG Lan-xiangWANG Guo-ping
Beijing Kedong Electric Control System Co. ,Ltd. ,Beijing 100192,China
关键词:
高层体系结构云仿真微服务属性更新发布
Keywords:
HLAcloud simulationmicroserviceattribute-updatepublish
分类号:
TP391.9
DOI:
10. 3969 / j. issn. 1673-629X. 2019. 09. 031
摘要:
在云仿真中 HLA/RTI 采用 WSPRC 组件实现了联邦成员间信息的交互,这些交互信息大多由联邦成员通过访问模型服务所获得,HLA 还不能直接支持对模型服务的访问。 虚拟化容器 Docker 的出现以及微服务较单体式软件架构的优势,使得部署在基于微服务构建的私有云服务器上的 HLA/RTI,具有了直接访问模型微服务的能力。 文中在 OMT 中将对象类的属性名定义为所调用的微服务的参数名,通过为这些属性名添加上微服务标志的前缀,使 RTI 服务端组件可以识别出此对象类的实例在更新属性时,需要它先调用此对象类所指定的微服务,将微服务计算返回的结果作为新的更新值来发布。 在扩展 RTI 服务端组件时先与数据库建立连接,再利用表中所记录的联邦执行名和实验次数及对象实例号构成三元组,并将此三元组唯一映射到调用模型微服务的租户号,从而使模型微服务可为指定的对象实例连续多次地服务,并记录每次服务的状态信息。 通过将扩展后的 RTI 应用到全球能源互联网电力交易云仿真实验中,验证了 RTI 在识别出OMT 中为对象类属性名添加的特定微服务标识后,还可以调用对象类的微服务来计算对象实例属性的更新并发布,使面向对象的 HLA/RTI 能更好地支持面向服务的仿真。
Abstract:
In cloud simulation,HLA/ RTI adopts WSPRC component to realize the interaction of information among federate members,which is mostly obtained by federated members through accessing model services. HLA cannot directly support the access to model services. With the emergence of virtual container Docker and the advantages of microservice over monolithic software architecture,HLA/RTI deployed on private cloud server based on microservice has the ability to directly access model microservice. In the OMT,the attribute name of the object class is defined as the parameter name of the called microservice. By adding the prefix of the microservice flag to these attribute names,the RTI server component can recognize that when the instance of this object class updates the attribute,it needs to first call the microservice specified by this object class and publish the result returned by the microservice calculation as a new update value. When extending the RTI server component,it first establishes a connection with the database,and then uses the federated execution name,experiment times and object instance number recorded in the table to form a triple which is uniquely mapped to the tenant number that calls the model microservice,so that the model microservice can serve multiple times for a specified object instance and record status information for each service. By applying the extended RTI to the global energy Internet power transaction cloud simulation experiment,it is verified that after identifying the specific micro-service identifier added to the object class attribute name in the OMT,the RTI can also call the micro-service of the object class to calculate attribute-update and publish object instance properties to enable object-oriented HLA/ RTI to better support service-oriented simulation.

相似文献/References:

[1]张毅 胡勤友 施朝健.HLA与MAS在分布式仿真领域的应用比较[J].计算机技术与发展,2006,(01):150.
 ZHANG Yi,HU Qin-you,SHI Chao-jian.A Comparison of MAS with HLA in Distributed Simulation Application[J].,2006,(09):150.
[2]韩剑 芮广杰 汪仁和.基于CGF/HLA的坦克分队攻防对抗系统仿真研究[J].计算机技术与发展,2006,(03):217.
 HAN Jian,RUI Guang-jie,WANG Ren-he.A Simulation System of Attack- Defense Event of Tank Unit Based on HLA/CGF[J].,2006,(09):217.
[3]马善达 万晓冬 李云芳 李辉.基于HLA和移动代理的负载平衡控制技术探讨[J].计算机技术与发展,2012,(06):163.
 MA Shan-da,WAN Xiao-dong,LI Yun-fang,et al.Load Balancing Control Technology Based on Mobile Agent and HLA[J].,2012,(09):163.
[4]史璐莎[],张斌[],张涛[].MATLAB环境中HLA联邦成员开发技术研究[J].计算机技术与发展,2013,(10):10.
 SHI Lu-sha[],ZHANG Bin[],ZHANG Tao[].Research of HLA Federate Development Technology in MATLAB Environment[J].,2013,(09):10.
[5]张德刚,王达达,李泽河,等.基于计算机协同工作的高层体系结构组播扩展[J].计算机技术与发展,2018,28(06):188.[doi:10.3969/ j. issn.1673-629X.2018.06.042]
 ZHANG De-gang,WANG Da-da,LI Ze-he,et al.High-level Architecture Multicast Extension Based on Computer Cooperative Work[J].,2018,28(09):188.[doi:10.3969/ j. issn.1673-629X.2018.06.042]

更新日期/Last Update: 2019-09-10