![]() |
VR-Forces 5.0.3 Developer's Guide
|
The central class of a DtLocalObject for all communications to and from the object. This class manages all communications on a specific DtLocalObject, though both simulation internal communication, and communication though the simulated radios of the object. All communication is done though the use of the DtVrfObjectMessage class and its subclasses. Callbacks can be registered on this interface which will be called on receipt of a message by this entity. Messages can be sent from this entity by using the message sending functions. These messages may be sent though the SimInternal message mechanism, or the radio message system. Radios will not exist until createRadiosFromDescriptorList() or createRadiosFromDescriptorList(const DtRadioDescriptorList& descList) is called.
Static Public Member Functions | |
| static DtVrfObjectCommunicationInterface * | create (DtLocalObject *vrfObject) |
Protected Types | |
| typedef std::map < DtSymbolString, DtVrfRadio * > | DtRadioMap |
Protected Member Functions | |
| DtVrfObjectCommunicationInterface (DtLocalObject *vrfObject) | |
| virtual bool | init () |
Private Member Functions | |
| DtVrfObjectCommunicationInterface () | |
| DtVrfObjectCommunicationInterface (const DtVrfObjectCommunicationInterface &orig) | |
| DtVrfObjectCommunicationInterface & | operator= (const DtVrfObjectCommunicationInterface &orig) |
| virtual void | processVrfObjectMessage (const DtVrfObjectMessage *msg) |
| static void | vrfObjectMessageCallback (const DtVrfObjectMessage *msg, void *usr) |
|
protected |
|
private |
Not Implemented.
|
private |
Not Implemented.
|
protected |
Use the create() method instead of calling the constructor.
|
virtual |
|
private |
Not Implemented.
|
static |
Calls constructor and init(), and returns the result. Upon return, invoke one of these: createRadiosFromDescriptorList(); or createRadiosFromDescriptorList(const DtRadioDescriptorList& descList); to supply radio creation parameters to the communication interface.
|
protectedvirtual |
Virtual init, called from the create() method.
|
virtual |
|
virtual |
Creates radios from descriptor list. Called from DtLocalObject::createCommunicationsInterface()
|
virtual |
Creates radios from descriptor list. Called from DtLocalObject::createCommunicationsInterface(const DtRadioDescriptorList&)
|
virtual |
Sends the specified message though the DtSimInternalCommunicationInterface. Messages sent this way are intended to be internal simulation types of messages, meaning that they will not be sent over simulated radios, and are guaranteed to get to their addressee.
|
virtual |
Sends the specified message though the radio system. Specify the name of the radio to use, or send though the default radio. Message sender information will be set in the message.
|
virtual |
Sends though the radio with the specified ID. Radio IDs are assigned based on their order in the OPE file, starting with 0 and incrementing by 1.
|
virtual |
Sends though the default radio. The default radio is the first radio listed in the radio list for the entity.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
| DtSimInternalCommunicationInterface* DtVrfObjectCommunicationInterface::simInternalCommunicationInterface | ( | ) |
|
virtual |
Callback which is called for every message that is received by this interface. This includes sim internal messages, and messages from any radio.
|
virtual |
Callback which is called for every message that is received by this interface. This includes sim internal messages, and messages from any radio.
|
inline |
Callback which is called when a specific type of object message is processed. The type parameter is the content type of the message. This includes sim internal messages, and messages from any radio.
|
inline |
Callback which is called when a specific type of object message is processed. The type parameter is the content type of the message. This includes sim internal messages, and messages from any radio.
|
virtual |
Callback which is called when a specific category of object message is processed. Categories are general message types such as: DtTaskMessageType, DtReportMessageType, DtSetDataRequestMessageType, and DtAdminMessageType. This includes sim internal messages, and messages from any radio.
|
virtual |
Callback which is called when a specific category of object message is processed. Categories are general message types such as: DtTaskMessageType, DtReportMessageType, DtSetDataRequestMessageType, and DtAdminMessageType. This includes sim internal messages, and messages from any radio.
|
virtual |
Called each simulation tick. Ticks any radios owned by this communication interface.
|
staticprotected |
Callback processing method for messages received from one of the contained message interfaces.
|
protectedvirtual |
Callback processing method for messages received from one of the contained message interfaces.
|
protected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |