VR-Link API Documentation for HLA Evolved
Test Interaction Example

The testInter example shows how to add a new interaction class to a FOM.

We need to extend the VR-Link top-level API by adding a new kind of DtInteraction. Then we create mappings between the new FOM class and the new DtInteraction subclass.

This example, adds an interaction class called Test to the VrlExtend.fed FED File. It has two parameters:

To add this class:

  1. Create a new subclass of DtInteraction to represent the new kind of interaction. (See testInter.h and testInter.cxx.)
  2. Create TestEncoder and TestDecoder classes, subclasses of DtInteractionEncoder and DtInteractionDecoder respectively. These classes contain encoding and decoding functions for the attributes of the Test interaction. (See testDec.h, testDec.cxx, testEnc.h and testEnc.cxx.)

The TestInteraction example is contained in the following major files:


Document ID: Generated on Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)