![]() |
VR-Forces 4.1.1 Class Documentation
|
The Add Attribute example demonstrates the following:
The Add Attribute example adds a new member (mass) to the entity state repository. It also adds encoders and decoders to send/receive that information over the network. When running the example, make sure to copy the VrfExtend.fed to the binHLA13 or binHLA1516 directory. When running in HLA1516, make sure RTI_forceFullCompliance is not on in your rid.mtl and that you're not turning it on using the RTI Assistant. On the command line, add the -x VrfExtend and -F VrfExtend.fed to load the .fed file
Since this example is loaded as a plugin, it can be used in conjunction with the released VR-Forces application
Select Settings, Plugins... and on the Plugins Editor page, use the combo box at the top of the page to select the plug-in. Then enable the Load Plugin checkbox and re-start VR-Forces with the command line options -x VrfExtend and -F VrfExtend.fed.
To view the new behavior:
The new attribute, 'Mass' will appear under this tab.
| configFomMapper | The routines that encode/decode the mass that is sent as part of the new state repository. |
| MyEntityStateRep | The extended entity state repository that contains the new mass variable. |
| MyIndividualLocalEntityNetInterface | This extension of the local net inferface takes the mass from the VRF entity state repository and puts it into the new MyEntityStateRep state repository. |
| MyIndividualRemoteEntityNetInterface | This extension of the remote net interface takes information read from the network and put into the new MyEntityStateRep and places it into the VRF entity state repository. |