VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions
MyCommModel Class Reference
Inheritance diagram for MyCommModel:
Inheritance graph
[legend]

Public Member Functions

virtual ~MyCommModel ()
 
virtual DtString type () const
 
virtual void registerRadio (DtVrfRadio *radio)
 Overridden from base to set the ReadyToSend status of the radio to true as soon as it registers. More...
 
- Public Member Functions inherited from DtSimpleRadioCommModel
virtual ~DtSimpleRadioCommModel ()
 
virtual void sendMessage (DtVrfObjectMessage *message, DtVrfRadio *sendingRadio)
 Uses the transporter to send the message to the network. More...
 
- Public Member Functions inherited from DtCommModel
virtual ~DtCommModel ()
 
virtual void unregisterRadio (DtVrfRadio *radio)
 Removes a radio from the comm model. More...
 
virtual bool publishTransmitters () const
 Returns true if radios registered to this comm model should publish transmitters. More...
 

Static Public Member Functions

static DtCommModelcreate (DtCommModelCreationParams &params)
 
- Static Public Member Functions inherited from DtSimpleRadioCommModel
static DtCommModelcreate (DtCommModelCreationParams &params)
 Static creator function that can be registered with factories. More...
 
- Static Public Member Functions inherited from DtCommModel
static DtCommModelcreate (DtCommModelCreationParams &params)
 Static creator function that can be registered with factories. More...
 
static void setFactory (DtCommModelFactory *factory)
 Sets the static factory to the specified radio network factory. More...
 
static DtCommModelcreateCommModel (const DtString &typeString, DtSimManager *simManager, const DtCommModelDescriptor *descriptor)
 Uses the static factory to create a new DtCommModel subclass and returns it. More...
 

Protected Member Functions

 MyCommModel (DtCommModelCreationParams &params)
 
virtual bool init ()
 Virtual init() called from the create() method. More...
 
virtual bool checkRadioConnectivity (const DtVrfObject *sender, const DtVrfObject *receiver)
 Checks the connectivity of the radios for delivery of message. More...
 
- Protected Member Functions inherited from DtSimpleRadioCommModel
 DtSimpleRadioCommModel (DtCommModelCreationParams &params)
 Use the create() method instead of calling the constructor. More...
 
virtual void tick ()
 Delivers any queued messages. More...
 
virtual void clearPendingRadioMessages ()
 Called to clear any pending radio messages in the comm model map that are waiting to be sent. More...
 
virtual
DtSignalMessageTransporter
createTransporter ()
 Creates and returns the transporter subclass that will be used for this DtSimpleRadioCommModel. More...
 
virtual void deliverMessageToRecipients (const DtVrfObjectMessage *message)
 Overridden from base class to call checkRadioConnectivity() for each possible receiver of the message before delivering it. More...
 
virtual void processMessageReceived (DtSignalMessageTransporterCallbackParams *params)
 
- Protected Member Functions inherited from DtCommModel
 DtCommModel (DtCommModelCreationParams &params)
 Use the create() method instead of calling the constructor. More...
 
virtual DtVrfRadiofindRadio (const DtUUID &object, int radioId) const
 Finds a radio registered with this comm model by object UUID and radio ID. More...
 
virtual DtVrfRadiofindRadio (const DtEntityIdentifier &entityId, int radioId) const
 Finds a radio registered with this comm model by entity ID and radio ID. More...
 

Private Member Functions

 MyCommModel ()
 
 MyCommModel (const MyCommModel &orig)
 
MyCommModeloperator= (const MyCommModel &orig)
 

Additional Inherited Members

- Protected Types inherited from DtSimpleRadioCommModel
enum  ConnectionMode { ConnectionModeAll = 0, ConnectionModeAggregate = 1, ConnectionModeForce = 2 }
 
typedef std::deque
< DtVrfObjectMessageConstPtr
DtMessageQueue
 
- Protected Types inherited from DtCommModel
typedef std::multimap< DtUUID,
DtVrfRadio * > 
DtRadioMap
 
- Static Protected Member Functions inherited from DtSimpleRadioCommModel
static void messageReceivedCallback (DtSignalMessageTransporterCallbackParams *params, void *usr)
 
- Protected Attributes inherited from DtSimpleRadioCommModel
DtSignalMessageTransportermyTransporter
 
DtMessageQueue myMessagesToDeliver
 
const
DtSimpleRadioCommModelDescriptor
mySimpleCommDescriptor
 
ConnectionMode myConnectionMode
 
- Protected Attributes inherited from DtCommModel
DtSimManagermySimManager
 
const DtCommModelDescriptormyDescriptor
 
DtRadioMap myRadios
 
- Static Protected Attributes inherited from DtCommModel
static DtCommModelFactorytheFactory
 

Constructor & Destructor Documentation

MyCommModel::MyCommModel ( )
private
MyCommModel::MyCommModel ( const MyCommModel orig)
private
MyCommModel::MyCommModel ( DtCommModelCreationParams params)
protected
virtual MyCommModel::~MyCommModel ( )
virtual

Member Function Documentation

MyCommModel& MyCommModel::operator= ( const MyCommModel orig)
private
virtual bool MyCommModel::init ( )
protectedvirtual

Virtual init() called from the create() method.

Calls createTransporter() to set myTransporter.

Reimplemented from DtSimpleRadioCommModel.

static DtCommModel* MyCommModel::create ( DtCommModelCreationParams params)
static
virtual DtString MyCommModel::type ( ) const
virtual
Returns
DtSimpleRadioCommModelType. Type strings for DtSimpleRadioCommModel subclasses are defined in commModelTypes.h.

Reimplemented from DtSimpleRadioCommModel.

virtual void MyCommModel::registerRadio ( DtVrfRadio radio)
virtual

Overridden from base to set the ReadyToSend status of the radio to true as soon as it registers.

Reimplemented from DtSimpleRadioCommModel.

virtual bool MyCommModel::checkRadioConnectivity ( const DtVrfObject sender,
const DtVrfObject receiver 
)
protectedvirtual

Checks the connectivity of the radios for delivery of message.

Returns
True if the message is allowed to be delivered, or false of the sender/receiver radios are not connected. Results will vary, depending on the current connection mode specified in the descriptor.

Reimplemented from DtSimpleRadioCommModel.


The documentation for this class was generated from the following file:

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)