![]() |
VR-Forces 4.6.1 Class Documentation
|

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 DtCommModel * | create (DtCommModelCreationParams ¶ms) |
| 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 DtCommModel * | createCommModel (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 ¶ms) | |
| 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 ¶ms) |
| virtual void | processReadyToSend (const DtExternalCommsReadyToSendData &data) |
Protected Member Functions inherited from DtCommModel | |
| DtCommModel (DtCommModelCreationParams ¶ms) | |
| Use the create() method instead of calling the constructor. | |
| virtual DtVrfRadio * | findRadio (const DtUUID &object, int radioId) const |
| Finds a radio registered with this comm model by object UUID and radio ID. | |
| virtual DtVrfRadio * | findRadio (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 ¶ms, 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. | |
| DtExternalCommsMessageTransporter * | myTransporter |
| DtClearToReceiveDeque | myClearToReceiveDeque |
| const DtExternalCommModelDescriptor * | myExternalCommModelDescriptor |
| DtExternalCommsMessageDataMap | myWaitingForMessageMap |
| DtExternalCommsTimeoutMap | myTimedOutMessageMap |
Protected Attributes inherited from DtCommModel | |
| DtSimManager * | mySimManager |
| const DtCommModelDescriptor * | myDescriptor |
| DtRadioMap | myRadios |
Private Member Functions | |
| DtExternalCommModel () | |
| Not implemented. | |
| DtExternalCommModel (const DtExternalCommModel &orig) | |
| DtExternalCommModel & | operator= (const DtExternalCommModel &orig) |
Additional Inherited Members | |
Static Protected Attributes inherited from DtCommModel | |
| static DtCommModelFactory * | theFactory |
|
protected |
|
protected |
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.
|
protected |
This holds information for Qualnet clear to receive, if the transporter hasn't finished collecting all message parts.
|
protected |
This holds information for Qualnet timeout, if the transporter hasn't finished collecting all message parts.
|
private |
Not implemented.
|
private |
|
protected |
Use the create() method instead of calling the constructor.
|
virtual |
|
private |
|
protectedvirtual |
Virtual init() called from the create() method.
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.
Reimplemented from DtCommModel.
|
virtual |
Reimplemented from DtCommModel.
|
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 |
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 |
Delivers any messages that have been approved for delivery and are on the queue.
Reimplemented from DtCommModel.
|
protectedvirtual |
|
protectedvirtual |
Gives the message to the indicated receiver.
|
staticprotected |
|
protectedvirtual |
|
staticprotected |
|
protectedvirtual |
|
staticprotected |
|
protectedvirtual |
|
staticprotected |
|
protectedvirtual |
|
protected |
|
protected |
Contains all the message that have been sent, but are awaiting authorization from the external comms server.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |