VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
9.3 - Initializing an Exercise Connection

To create an exercise connection in VR-Link for C#, you need an exercise connection initializer.

The ExerciseConnectionInitializer class contains one member, the connection type. Since VR-Link for C# is protocol-agile, you must specify the type of connection. This is so that the C# can tell the VR-Link library which exercise connection to initialize. The connection type variable is defined as such:

enum ConnectionType { DIS, HLA13, HLA1516, HLA1516E, WEBLVC };

A connection type must be supplied when constructing an ExerciseConnectionInitializer.

The following classes are derived from the ExerciseConnectionInitializer. There is one for each supported protocol.

These initializers contain information specific to their protocols. Once created, an exercise connection can be initialized. They also automatically define the ConnectionType of their parent class. Here is an example for DIS:

DisExerciseConnectionInitializer initializer = new DisExerciseConnectionInitializer();
ExerciseConnection exConn = new ExerciseConnection(initializer);

[<< Adding the VR-Link for C#.dll to Your Project] [Home] [Top of Page] [Using the Application Initializer Class >>]


Document ID: Generated on Fri Dec 2 02:42:08 EST 2016 from SVN revision 171416
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)