VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Add Comm Model (addCommModel)

Table of Contents

The Add Comm Model example demonstrates the following:

VR-Forces includes an architecture for plug-in communication models. Communication Models are used by VR-Forces to pass simulated messages such as spot reports from one entity to another. The communication model determines what messages can get through to their destination, and how long that takes.

This example creates a communcation model that uses the radio transmitter power of sending entities, and the range between the entities to determine if a message can get through. A derived sms is used that alters the commModelParams.mtl file to use the new comm model and to publish the objects' transmitters.

Since this example is loaded as a plugin, it can be used in conjunction with the released VR-Forces application

How to Run the Example

Classes

MyCommModelNew comm model code, derived from VRF DtSimpleRadioCommModel.

Plugin Entry Points

/*******************************************************************************
** Copyright (c) 2011 MAK Technologies, Inc.
** All rights reserved.
*******************************************************************************/
/*******************************************************************************
** $RCSfile: plugin.cxx,v $ $Revision: 1.1 $ $State: Exp $
*******************************************************************************/
#include "myCommsModel.h"
#include "vrfcgf/cgf.h"
extern "C" {
{
info.pluginName = "addCommModel";
info.pluginVersion = "1.00";
info.pluginDescription = "An example of how to add a new internal comms model showing how to override radio connectivity";
info.pluginCreator = "MAK Technologies";
info.pluginCreatorEmail = "sales@mak.com";
info.pluginContactWebPage = "www.mak.com";
info.pluginContactMailingAddress = "150 Cambridge Park Drive 3rd Floor - Cambridge, MA 02140 USA";
info.pluginContactPhone = "(617) 876 8085";
}
DT_VRF_DLL_PLUGIN bool DtInitializeVrfPlugin(DtCgf* cgf)
{
//Register new comms model
return true;
}
}

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)