VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
10.6 - ManagedInterface Concepts

Table of Contents

10.6.1 - Strategies

Strategies are the modular components within ManagedInterface; they process object state updates and interactions from VR-Link and create the messages to send to the C# application, and vice versa. There are several strategies included with VR-Link C#:

There are copies of each of these strategies for each of the protocols supported by VR-Link (DIS, HLA 1.3, HLA 1516, HLA 1516-Evolved). The initialization strategy is responsible for creating the other strategies when a network connection is requested. You can add new types of strategies or replace existing ones with updated behaviors through the use of plug-ins.

Strategies are given some CPU time every frame during a tick() function. During this function, any internal work may be done and is typically used to update any entity publishers that the strategy owns.

10.6.2 - Resources

During execution, certain data structures and classes need to be shared between different strategies. Typically shared resources are reflected objects, the simulation clock, and the initialization strategy. Sharing objects between strategies is done with a resource manager that is accessible from the ManagedInterface class. Resources are generic pointers to objects wrapped in Handles, which are discussed below. The resource manager does not manage the memory of stored objects throughout their lifetime, but does proved a generic means to find and access stored objects and data structures.

There are several default names used for commonly used objects that are defined in ManagedInterface/utility.h:

10.6.3 - Delegates

Delegates are C++ classes that wrap a function to callback at a later time. These are used for message handlers that are registered with ManagedInterface. When a strategy wants notification that a message arrives from the C# application, it will create a delegate with one of the strategy's member functions and register that with the ManagedInterface message handlers.

[<< Initializing Connections] [Home] [Top of Page] [Messages >>]


Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)