![]() |
VR-Forces 5.0.1 Developer's Guide
|
An implementation of DtCommModel that models a simple radio model, using signal interaction as the network transport type. Messages sent using this radio model are received immediately by the receiver entities. Radios connected to this comm model are always ready to send, as this model never blocks sending of messages.

Public Member Functions | |
| virtual | ~DtSimpleRadioCommModel () |
| virtual DtString | type () const |
| virtual void | registerRadio (DtVrfRadio *radio) |
| virtual void | sendMessage (DtVrfObjectMessage *message, DtVrfRadio *sendingRadio) |
Public Member Functions inherited from DtCommModel | |
| virtual | ~DtCommModel () |
| virtual void | unregisterRadio (DtVrfRadio *radio) |
| virtual bool | publishTransmitters () const |
| virtual bool | sendReceivedCommMessageOnBroadcast () const |
Static Public Member Functions | |
| static DtCommModel * | create (DtCommModelCreationParams ¶ms) |
Static Public Member Functions inherited from DtCommModel | |
| static DtCommModel * | create (DtCommModelCreationParams ¶ms) |
| static void | setFactory (DtCommModelFactory *factory) |
| static DtCommModel * | createCommModel (const DtString &typeString, DtSimulationServices *simManager, const DtCommModelDescriptor *descriptor) |
Protected Types | |
| enum | ConnectionMode { ConnectionModeAll = 0, ConnectionModeAggregate = 1, ConnectionModeForce = 2 } |
| typedef std::deque < DtVrfObjectMessageConstPtr > | DtMessageQueue |
Protected Types inherited from DtCommModel | |
| typedef std::multimap< DtUUID, DtVrfRadio * > | DtRadioMap |
Protected Member Functions | |
| DtSimpleRadioCommModel (DtCommModelCreationParams ¶ms) | |
| virtual bool | init () |
| virtual void | tick () |
| virtual void | clearPendingRadioMessages () |
| virtual DtSignalMessageTransporter * | createTransporter () |
| virtual bool | checkRadioConnectivity (DtSimObjectReference sender, DtSimObjectReference receiver) const |
| virtual void | deliverMessageToRecipients (const DtVrfObjectMessage *message) |
| virtual void | processMessageReceived (DtSignalMessageTransporterCallbackParams *params) |
Protected Member Functions inherited from DtCommModel | |
| DtCommModel (DtCommModelCreationParams ¶ms) | |
| virtual DtVrfRadio * | findRadio (const DtUUID &object, int radioId) const |
| virtual DtVrfRadio * | findRadio (const DtEntityIdentifier &entityId, int radioId) const |
Static Protected Member Functions | |
| static void | messageReceivedCallback (DtSignalMessageTransporterCallbackParams *params, void *usr) |
Protected Attributes | |
| DtSignalMessageTransporter * | myTransporter |
| DtMessageQueue | myMessagesToDeliver |
| const DtSimpleRadioCommModelDescriptor * | mySimpleCommDescriptor |
| ConnectionMode | myConnectionMode |
Protected Attributes inherited from DtCommModel | |
| DtSimulationServices * | mySimulationServices |
| const DtCommModelDescriptor * | myDescriptor |
| DtRadioMap | myRadios |
| tbb::spin_rw_mutex | myMutex |
Private Member Functions | |
| DtSimpleRadioCommModel () | |
| DtSimpleRadioCommModel (const DtSimpleRadioCommModel &orig) | |
| DtSimpleRadioCommModel & | operator= (const DtSimpleRadioCommModel &orig) |
Additional Inherited Members | |
Static Protected Attributes inherited from DtCommModel | |
| static DtCommModelFactory * | theFactory |
|
protected |
|
protected |
|
private |
Not implemented.
|
private |
Not implemented.
|
protected |
Use the create() method instead of calling the constructor.
|
virtual |
|
private |
Not implemented.
|
protectedvirtual |
Virtual init() called from the create() method. Calls createTransporter() to set myTransporter.
Reimplemented from DtCommModel.
Reimplemented in MyCommModel.
|
protectedvirtual |
Delivers any queued messages.
Reimplemented from DtCommModel.
|
protectedvirtual |
Called to clear any pending radio messages in the comm model map that are waiting to be sent. This method is called when a scenario is being rolled back/rewound.
Reimplemented from DtCommModel.
|
static |
Static creator function that can be registered with factories. Calls the constructor, and init() on the new instance before returning it.
|
virtual |
Reimplemented from DtCommModel.
Reimplemented in MyCommModel.
|
virtual |
Overridden from base to set the ReadyToSend status of the radio to true as soon as it registers.
Reimplemented from DtCommModel.
Reimplemented in MyCommModel.
|
virtual |
Uses the transporter to send the message to the network.
Reimplemented from DtCommModel.
|
protectedvirtual |
Creates and returns the transporter subclass that will be used for this DtSimpleRadioCommModel.
|
protectedvirtual |
Checks the connectivity of the radios for delivery of message.
Reimplemented in MyCommModel.
|
protectedvirtual |
Overridden from base class to call checkRadioConnectivity() for each possible receiver of the message before delivering it.
Reimplemented from DtCommModel.
|
staticprotected |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |