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

Classes

struct  DtClearToReceiveData

Public Member Functions

virtual ~DtExternalCommModel ()
virtual DtString type () const
virtual void registerRadio (DtVrfRadio *radio)
 Overridden to set ReadyToSend on the radio to true if the model is not using external ready to send signals.
virtual void sendMessage (DtVrfObjectMessage *message, DtVrfRadio *sendingRadio)
 Send this message if/when the external comms server indicates that it should be sent.
virtual void tick ()
 Delivers any messages that have been approved for delivery and are on the queue.
- Public Member Functions inherited from DtCommModel
virtual ~DtCommModel ()
virtual void unregisterRadio (DtVrfRadio *radio)
 Removes a radio from the comm model.
virtual bool publishTransmitters () const
 Returns true if radios registered to this comm model should publish transmitters.

Static Public Member Functions

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

Protected Types

typedef std::map< DtU32,
DtVrfObjectMessageConstPtr
DtRadioMessageMap
typedef std::deque
< DtClearToReceiveData
DtClearToReceiveDeque
 This holds messages that have been cleared for sending by the external comms server.
typedef std::map< DtU32,
DtExternalCommsProcessMessageData
DtExternalCommsMessageDataMap
 This holds information for Qualnet clear to receive, if the transporter hasn't finished collecting all message parts.
typedef std::map< DtU32,
DtExternalCommsTimeoutData
DtExternalCommsTimeoutMap
 This holds information for Qualnet timeout, if the transporter hasn't finished collecting all message parts.
- Protected Types inherited from DtCommModel
typedef std::multimap< DtUUID,
DtVrfRadio * > 
DtRadioMap

Protected Member Functions

 DtExternalCommModel (DtCommModelCreationParams &params)
 Use the create() method instead of calling the constructor.
virtual bool init ()
 Virtual init() called from the create() method.
virtual DtU32 nextMessageId (const DtEntityIdentifier &entityId)
virtual void passMessageToReceiver (DtVrfObjectMessageConstPtr, const DtEntityIdentifier &receiver)
 Gives the message to the indicated receiver.
virtual void processMessageClearToReceive (const DtExternalCommsProcessMessageData &data)
virtual void processMessageTimeout (const DtExternalCommsTimeoutData &data)
virtual void processNewMessage (const DtExternalCommsMessageTransporter::DtExternalCommsMessageCallbackParams &params)
virtual void processReadyToSend (const DtExternalCommsReadyToSendData &data)
- Protected Member Functions inherited from DtCommModel
 DtCommModel (DtCommModelCreationParams &params)
 Use the create() method instead of calling the constructor.
virtual DtVrfRadiofindRadio (const DtUUID &object, int radioId) const
 Finds a radio registered with this comm model by object UUID and radio ID.
virtual DtVrfRadiofindRadio (const DtEntityIdentifier &entityId, int radioId) const
 Finds a radio registered with this comm model by entity ID and radio ID.
virtual void deliverMessageToRecipients (const DtVrfObjectMessage *message)
 Finds all local radios to which this message should be delivered and sends the message to those radios.

Static Protected Member Functions

static void messageClearToReceiveCallback (const DtExternalCommsProcessMessageData &data, void *usr)
static void messageTimeoutCallback (const DtExternalCommsTimeoutData &data, void *usr)
static void newMessageCallback (const DtExternalCommsMessageTransporter::DtExternalCommsMessageCallbackParams &params, void *usr)
static void readyToSendCallback (const DtExternalCommsReadyToSendData &data, void *usr)

Protected Attributes

DtU32 myLastMessageId
DtRadioMessageMap mySentMessages
 Contains all the message that have been sent, but are awaiting authorization from the external comms server.
DtExternalCommsMessageTransportermyTransporter
DtClearToReceiveDeque myClearToReceiveDeque
const
DtExternalCommModelDescriptor
myExternalCommModelDescriptor
DtExternalCommsMessageDataMap myWaitingForMessageMap
DtExternalCommsTimeoutMap myTimedOutMessageMap
- Protected Attributes inherited from DtCommModel
DtSimManagermySimManager
const DtCommModelDescriptormyDescriptor
DtRadioMap myRadios

Private Member Functions

 DtExternalCommModel ()
 Not implemented.
 DtExternalCommModel (const DtExternalCommModel &orig)
 Not implemented.
DtExternalCommModeloperator= (const DtExternalCommModel &orig)
 Not implemented.

Additional Inherited Members

- Static Protected Attributes inherited from DtCommModel
static DtCommModelFactorytheFactory

Member Typedef Documentation

This holds messages that have been cleared for sending by the external comms server.

The messages will not be sent until the next tick of the propagator.

This holds information for Qualnet clear to receive, if the transporter hasn't finished collecting all message parts.

This holds information for Qualnet timeout, if the transporter hasn't finished collecting all message parts.

Constructor & Destructor Documentation

DtExternalCommModel::DtExternalCommModel ( )
private

Not implemented.

DtExternalCommModel::DtExternalCommModel ( const DtExternalCommModel orig)
private

Not implemented.

DtExternalCommModel::DtExternalCommModel ( DtCommModelCreationParams params)
protected

Use the create() method instead of calling the constructor.

virtual DtExternalCommModel::~DtExternalCommModel ( )
virtual

Member Function Documentation

DtExternalCommModel& DtExternalCommModel::operator= ( const DtExternalCommModel orig)
private

Not implemented.

virtual bool DtExternalCommModel::init ( )
protectedvirtual

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

Reimplemented from DtCommModel.

static DtCommModel* DtExternalCommModel::create ( DtCommModelCreationParams params)
static

Static creator function that can be registered with factories.

Calls the constructor, and init() on the new instance before returning it.

Reimplemented from DtCommModel.

virtual DtString DtExternalCommModel::type ( ) const
virtual
Returns
DtExternalCommModelType.

Reimplemented from DtCommModel.

virtual void DtExternalCommModel::registerRadio ( DtVrfRadio radio)
virtual

Overridden to set ReadyToSend on the radio to true if the model is not using external ready to send signals.

Reimplemented from DtCommModel.

virtual void DtExternalCommModel::sendMessage ( DtVrfObjectMessage message,
DtVrfRadio sendingRadio 
)
virtual

Send this message if/when the external comms server indicates that it should be sent.

The sender and receiver in the message are used as the sender and receiver for the comms server.

Reimplemented from DtCommModel.

virtual void DtExternalCommModel::tick ( )
virtual

Delivers any messages that have been approved for delivery and are on the queue.

Reimplemented from DtCommModel.

virtual DtU32 DtExternalCommModel::nextMessageId ( const DtEntityIdentifier &  entityId)
protectedvirtual
virtual void DtExternalCommModel::passMessageToReceiver ( DtVrfObjectMessageConstPtr  ,
const DtEntityIdentifier &  receiver 
)
protectedvirtual

Gives the message to the indicated receiver.

static void DtExternalCommModel::messageClearToReceiveCallback ( const DtExternalCommsProcessMessageData data,
void *  usr 
)
staticprotected
virtual void DtExternalCommModel::processMessageClearToReceive ( const DtExternalCommsProcessMessageData data)
protectedvirtual
static void DtExternalCommModel::messageTimeoutCallback ( const DtExternalCommsTimeoutData data,
void *  usr 
)
staticprotected
virtual void DtExternalCommModel::processMessageTimeout ( const DtExternalCommsTimeoutData data)
protectedvirtual
static void DtExternalCommModel::newMessageCallback ( const DtExternalCommsMessageTransporter::DtExternalCommsMessageCallbackParams params,
void *  usr 
)
staticprotected
virtual void DtExternalCommModel::processNewMessage ( const DtExternalCommsMessageTransporter::DtExternalCommsMessageCallbackParams params)
protectedvirtual
static void DtExternalCommModel::readyToSendCallback ( const DtExternalCommsReadyToSendData data,
void *  usr 
)
staticprotected
virtual void DtExternalCommModel::processReadyToSend ( const DtExternalCommsReadyToSendData data)
protectedvirtual

Member Data Documentation

DtU32 DtExternalCommModel::myLastMessageId
protected
DtRadioMessageMap DtExternalCommModel::mySentMessages
protected

Contains all the message that have been sent, but are awaiting authorization from the external comms server.

DtExternalCommsMessageTransporter* DtExternalCommModel::myTransporter
protected
DtClearToReceiveDeque DtExternalCommModel::myClearToReceiveDeque
protected
const DtExternalCommModelDescriptor* DtExternalCommModel::myExternalCommModelDescriptor
protected
DtExternalCommsMessageDataMap DtExternalCommModel::myWaitingForMessageMap
protected
DtExternalCommsTimeoutMap DtExternalCommModel::myTimedOutMessageMap
protected

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

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)