Abstract

In order to solve the error of simulation result because of data loss in VR-Link traditional simulation framework, in this paper data transfer mechanism of instance attribute on VR-Link object class is researched in detail. Registration method of call-back function is given, and the key codes of relevant steps are published. The problem of data loss is solved by the call-back function of VR-Link.

Highlights

  • 1 Introduction In HLA simulation applications developed based on MAK RTI, VR-Link is generally used to develop HLA framework code to achieve network communication for simulation applications

  • Before the simulation thread updates the HLA object instance properties owned by the member, the other object class information needed is obtained by traversing the reflection object list, and the reflection object list is automatically generated by the VR-Link framework code according to the RTI working mechanism

  • The process of publishing the object class completes the following tasks: First, the global exercise pointer and object class instance name "ClassA" represented by the DtExerciseConn class instance are passed to the base class DtObjectPublisher of the publishing object class, so that the base class gets the publishing object class The basic information required; second, the local state repository and the remote state repository are specified for the base class; third, the setHlaObject function of the published base class is used to indicate which instance of the object class is to be published, and the encoding used for the object instance And decoder

Read more

Summary

Introduction

In HLA simulation applications developed based on MAK RTI, VR-Link is generally used to develop HLA framework code to achieve network communication for simulation applications. Before the simulation thread updates the HLA object instance properties owned by the member, the other object class information needed is obtained by traversing the reflection object list, and the reflection object list is automatically generated by the VR-Link framework code according to the RTI working mechanism. Even under the same input conditions, the simulation output or result will not be exactly the same, and there will always be a certain difference. In order to solve the problem of "lost counts" in the HLA framework code based on VR-Link and realize the passive notification process of the simulated members, this article.

General simulation structure based on Mak RTI
VR-Link attribute transfer mechanism
Publication of object classes and registration examples
Update instance properties
Order object class and its function
Response of the purchaser after the target instance is announced
Order response after updating data
Extract the attributes of objects in the reflection object list
Implementation method of property update callback function
Implementation of Property Update Function
Summary
Conclusions
Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.