VR-Forces 4.1.1 Class Documentation
Add Comm Model

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.

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 Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)