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

Public Member Functions | |
| DtVrfMessageInterface (DtEventManager *eventManager, bool useDefaultInterfaceFactory=true) | |
| virtual | ~DtVrfMessageInterface () |
| destructor More... | |
| virtual bool | init () |
| Creates all the other pieces. More... | |
| virtual bool | createMessageExecutive () |
| Creator functions. More... | |
| virtual void | createSplitMessageCollector () |
| Replaces mySplitMessageCollector with a new one. More... | |
| virtual DtSplitMessageCollector * | splitMessageCollector () |
| virtual const DtSplitMessageCollector * | splitMessageCollector () const |
| virtual bool | deliverMessage (const DtSimInterfaceMessage &msg, bool overrideTimestampOrder=true) |
| Send a message. More... | |
| virtual bool | receiveMessage (const DtSimInterfaceMessage &msg) |
| virtual bool | createAndDeliverMessage (const DtSimulationAddress &recipient, const DtSimInterfaceContent &content, bool overrideTimestampOrder=true) |
| virtual bool | getContentFromNet (DtDataInteraction *dataInter, DtSimInterfaceContent *&content) const |
| Create/set objects based on DtDataInteraction information. More... | |
| virtual bool | getContentFromNet (unsigned nBufferSize, int nContentType, const char *pContentBuffer, DtSimInterfaceContent *&content) const |
| virtual bool | setContentForNet (DtDataInteraction *dataInter, DtSimInterfaceContent *content) const |
| virtual void | setSequence (DtU32 num) |
| Get/Set the sequence number. More... | |
| virtual DtU32 | sequence () const |
| virtual void | setSessionId (DtU32 num) |
| Get/Set the session id. More... | |
| virtual DtU32 | sessionId () const |
| virtual void | setVrfMessageVersionSupported (DtU32 num) |
| Get/Set the vrf message version. More... | |
| virtual DtU32 | vrfMessageVersionSupported () const |
| virtual bool | isMessageVrfVersionSupported (DtDataInteraction *) const |
| Returns true if this data interaction passes the message version check. More... | |
| virtual void | addVrfMessageVersionValidCallback (DtIsValidVrfMessageVersionFcn fcn, void *usr) |
| Register vrf message interface version valid. More... | |
| virtual void | removeVrfMessageVersionValidCallback (DtIsValidVrfMessageVersionFcn fcn, void *usr) |
| virtual bool | isVrfMessageVersionTransparentMessageType (int messageType) const |
| Returns true if the given message type is message version transparent (i.e. More... | |
| virtual bool | isSessionTransparentMessageType (int messageType) |
| Returns true if the given message type is session transparent (i.e. More... | |
| DtEventManager * | eventManager () |
| Get the exercise connection ptr. More... | |
| virtual void | addEvent (const DtEvent &) |
| {@ Adds an event to the event manager More... | |
| virtual void | addEvent (const DtDetonationInteraction &) |
| Convenience functions. More... | |
| virtual void | addEvent (const DtFireInteraction &) |
| virtual void | addEvent (const DtAcknowledgeInteraction &) |
| virtual void | addEvent (const DtStopFreezeInteraction &) |
| virtual void | addEvent (const DtStartResumeInteraction &) |
| virtual void | addEvent (const DtDataInteraction &) |
| virtual void | addEvent (const DtSignalInteraction &) |
| virtual void | addEvent (const DtCommentInteraction &) |
| virtual void | addEvent (const DtSensorFieldOfViewControlInter &) |
| virtual void | addevent (const DtSimInterfaceContent &) |
| virtual void | addEvent (const DtDataInteractionWithTransportType &) |
| virtual void | addEvent (const DtInfluenceInteraction &) |
| virtual void | addEvent (const DtEndGestureInter &) |
| virtual void | addEvent (const DtExecuteGestureInter &) |
| virtual void | clearEventManager () |
| virtual DtInterfaceContentFactory * | factory () const |
| Get/Set the factory used for creating interface content msgs. More... | |
| virtual void | setFactory (DtInterfaceContentFactory *fact) |
| virtual DtInterfaceMessageExecutive * | messageExecutive () const |
| Get the message executive ptr. More... | |
| virtual const DtSimulationAddress & | messageAddress () const |
| Get the address that should be used as the sender for all messages originating from the backend. More... | |
| virtual void | receiveMessage (DtDataInteraction *dataInter) |
| Process a received data interaction from the network. More... | |
| virtual bool | sendMessage (const DtSimInterfaceMessage &message, bool overrideTimestampOrder) |
| Send a sim interface message. More... | |
| virtual void | addMessageCallback (int type, DtMessageCallbackFcn fcn, void *usrData) |
| Add/Remove interface message callback functions. More... | |
| virtual void | removeMessageCallback (int type, DtMessageCallbackFcn fcn, void *usrData) |
| virtual bool | sendSplitContent (const char *pContentBuffer, unsigned int nBufferSize, int nContentType, const DtSimulationAddress &sender, const DtSimulationAddress &recipient, DtSplitMessageHandle &msgHandleReturn, bool overrideTimestampOrder) |
| Sends oversize message content as multiple DtSimInterfaceMessages with DtIfSplitContent. More... | |
| virtual bool | sendSplitContent (const char *pContentBuffer, unsigned int nBufferSize, int nContentType, const DtSimulationAddress &sender, const DtSimulationAddress &recipient, bool overrideTimestampOrder) |
| Sends oversize message content as multiple DtSimInterfaceMessages with DtIfSplitContent. More... | |
| virtual void | processReassembledContent (const char *pContent, int nContentSize, int nContentType, const DtSimulationAddress &messageIdSender, int messageIdNumber, const DtSimulationAddress &recipient) |
| Reconstitute a message based on previously split content. More... | |
| virtual void | setEventManager (DtEventManager *) |
| Sets the event manager. More... | |
| virtual void | netMessageCallback (const DtEvent &) |
| virtual void | simInterfaceContentMessageEvent (const DtEvent &c) |
| virtual bool | receiveMessage (const DtSimInterfaceContent &content) |
| Call this to receive a message internally – this will not go out over the network. More... | |
| virtual DtExerciseConn * | exerciseConnection () const |
| Gets the exercise connection from the event manager (if it supports it) More... | |
Protected Member Functions | |
| virtual void | removeConnections () |
| virtual void | initializeConnections () |
| bool | sendNormalMessage (const DtSimInterfaceMessage &message, bool overrideTimestampOrder) |
| Send a message, called from sendMessage if message content does not exceed maximum size. More... | |
Static Protected Member Functions | |
| static bool | matchPattern (const DtSimulationAddress &address, const DtSimulationAddress &pattern) |
| Utility function that returns true if the address matches the given pattern. More... | |
Protected Attributes | |
| DtInterfaceContentFactory * | myContentFactory |
| DtInterfaceMessageExecutive * | myMessageExecutive |
| DtEventManager * | myEventManager |
| bool | myOwnsEventManager |
| bool | myCreatedInterfaceFactory |
| DtU32 | mySequenceNumber |
| DtU32 | mySessionId |
| DtSplitMessageCollector * | mySplitMessageCollector |
| DtU32 | myVrfMessageVersionSupported |
| The vrf version is set (by default) from the values found in version.h. More... | |
| DtList | myCallbacks |
Private Member Functions | |
| DtVrfMessageInterface (const DtVrfMessageInterface &orig) | |
| DtVrfMessageInterface & | operator= (const DtVrfMessageInterface &orig) |
| DtVrfMessageInterface () | |
| DtVrfMessageInterface::DtVrfMessageInterface | ( | DtEventManager * | eventManager, |
| bool | useDefaultInterfaceFactory = true |
||
| ) |
|
virtual |
destructor
|
private |
|
private |
|
virtual |
Creates all the other pieces.
Reimplemented in DtVrfMsgPrinter.
|
virtual |
Creator functions.
These can be overridden to create managed objects that are derived from the base objects we provide.
|
virtual |
Replaces mySplitMessageCollector with a new one.
|
inlinevirtual |
References mySplitMessageCollector.
|
inlinevirtual |
References mySplitMessageCollector.
|
virtual |
Send a message.
|
virtual |
|
virtual |
|
virtual |
Create/set objects based on DtDataInteraction information.
Reimplemented in DtVrfMsgPrinter.
|
virtual |
|
virtual |
|
virtual |
Get/Set the sequence number.
|
inlinevirtual |
References mySequenceNumber.
|
inlinevirtual |
Get/Set the session id.
References mySessionId.
|
inlinevirtual |
References mySessionId.
|
inlinevirtual |
Get/Set the vrf message version.
References myVrfMessageVersionSupported.
|
inlinevirtual |
References myVrfMessageVersionSupported.
|
virtual |
Returns true if this data interaction passes the message version check.
This will be true if: 1) The Major, Minor and Extra version info match between the version of the message interface or 2) Any installed version check callbacks return true. NOTE that it is important that if a callback returns true it is sure that it will not have a detrimental effect in the system. Returning true to support a message that might otherwise would be ignored for version reasons could cause system instability
Note that if a data interaction does not have a version record, the version of that interaction will be assumed to be 0.
|
virtual |
Register vrf message interface version valid.
|
virtual |
|
inlinevirtual |
Returns true if the given message type is message version transparent (i.e.
delivered to all message interfaces, regardless of their vrf message version)
References DtVrfObjectDataMessageType.
Returns true if the given message type is session transparent (i.e.
delivered to all message interfaces, regardless of their session ID)
References DtVrfObjectDataMessageType.
|
inline |
Get the exercise connection ptr.
References myEventManager.
|
virtual |
{@ Adds an event to the event manager
|
virtual |
Convenience functions.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
Sets the exercise conn to NULL
References myEventManager, and myOwnsEventManager.
|
virtual |
Get/Set the factory used for creating interface content msgs.
|
virtual |
|
virtual |
Get the message executive ptr.
|
virtual |
Get the address that should be used as the sender for all messages originating from the backend.
|
virtual |
Process a received data interaction from the network.
Reimplemented in DtVrfMsgPrinter.
|
virtual |
Send a sim interface message.
|
virtual |
Add/Remove interface message callback functions.
|
virtual |
|
virtual |
Sends oversize message content as multiple DtSimInterfaceMessages with DtIfSplitContent.
This is called from sendMessage() when the size of content will exceed the maximum allowable packet size. sendSplitContent() will break up the buffer into chunks and transmit them as DtIfSplitContent, to be reconstructed on the receiving end.
| [in] | pContentBuffer | The original content, assumed to be oversized. |
| [in] | nBufferSize | The size of pContentBuffer in bytes. |
| [in] | nContentType | The original content type. |
| [in] | sender | The simulator from which the message is being sent. |
| [in] | recipient | The simulator(s) to which the message should be sent. |
| [out] | msgHandleReturn | Will contain information about how the DtIfSplitContent messages were prepared. |
|
virtual |
Sends oversize message content as multiple DtSimInterfaceMessages with DtIfSplitContent.
This call will redirect to sendSplitContent(...), above.
|
virtual |
Reconstitute a message based on previously split content.
|
virtual |
Sets the event manager.
If an event manager is already created disconnects signals, deletes it (if owned) and assigns new event manager
|
virtual |
|
virtual |
|
virtual |
Call this to receive a message internally – this will not go out over the network.
The sender and recipient will be the address of this exercise connection
|
virtual |
Gets the exercise connection from the event manager (if it supports it)
|
protectedvirtual |
|
protectedvirtual |
|
protected |
Send a message, called from sendMessage if message content does not exceed maximum size.
|
staticprotected |
Utility function that returns true if the address matches the given pattern.
Returns true for the following cases: address.site == -1 && address.applicationId == -1 address.site == pattern.site && address.applicationId == -1 address.site == pattern.site && address.applicationId == pattern.applicationId
returns false otherwise
|
private |
|
protected |
|
protected |
|
protected |
Referenced by clearEventManager(), and eventManager().
|
protected |
Referenced by clearEventManager().
|
protected |
|
protected |
Referenced by sequence().
|
protected |
Referenced by sessionId(), and setSessionId().
|
protected |
Referenced by splitMessageCollector().
|
protected |
The vrf version is set (by default) from the values found in version.h.
Call setVrfMessageVersionSupported after construction to change to a new version
Referenced by setVrfMessageVersionSupported(), and vrfMessageVersionSupported().
|
protected |