Public Member Functions |
| | DtAssistantExecStateMsg (MAKRti::DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| | Constructors.
|
| | DtAssistantExecStateMsg (const DtNetAssistantExecStateMsg *netRepMsg, MAKRti::DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| virtual | ~DtAssistantExecStateMsg () |
| | Destructor.
|
| virtual DtAssistantMsg * | clone (bool copy=true) const |
| | Return a copy/empty object of the same type as this.
|
| virtual void | printData () const |
| | Print the data section.
|
| void | getAllData (unsigned int &numFedexs, std::vector< unsigned int > &fedexHandles, std::vector< MAKRti::DtString > &fedexNames, std::vector< unsigned int > &fedsInEachFedex, std::vector< unsigned int > &fedHandles, std::vector< MAKRti::DtString > &fedNames, std::vector< MAKRti::DtString > &fedHostNames, std::vector< MAKRti::DtInetAddr > &federateAddrs, std::vector< DtHlaVersionId > &hlaVers) const |
| bool | setAllData (unsigned int numFedexs, const std::vector< unsigned int > &fedexHandles, const std::vector< MAKRti::DtString > &fedexNames, const std::vector< unsigned int > &federatesInEachFedex, const std::vector< unsigned int > &fedHandles, const std::vector< MAKRti::DtString > &fedNames, const std::vector< MAKRti::DtString > &fedHostNames, const std::vector< MAKRti::DtInetAddr > &federateAddrs, const std::vector< DtHlaVersionId > &hlaVers) |
| virtual | ~DtAssistantMsg () |
| | Destructor.
|
| virtual DtNetAssistantMsgHeader * | netHeader () const |
| | Get header of network representation.
|
| virtual int | version () const |
| | Return the message version.
|
| virtual bool | isValidVersion () const |
| | Returns bool: message version is valid?
|
| virtual DtAssistantMsgKind | msgKind () const |
| | Get the message kind.
|
| virtual void | print () const |
| | Printing functions.
|
| virtual void | printHeader () const |
| virtual void | printSrcDest () const |
| virtual bool | isOk () const |
| | Message is good?
|
| bool | isAssistantToAssistantMessage () const |
| | Returns whether or not this message contains source/destination information included in messages sent between assistants.
|
| virtual MAKRti::DtInetAddr | sourceAddr () const |
| | Get/Set the IP address of the source of this message.
|
| virtual void | setSourceAddr (const MAKRti::DtInetAddr &addr) |
| virtual int | sourceId () const |
| | Get/Set the ID of the source of this message.
|
| virtual void | setSourceId (int id) |
| virtual MAKRti::DtString | sourceHost () const |
| | Get/Set the host name of the source of this message.
|
| virtual void | setSourceHost (const MAKRti::DtString &addr) |
| virtual MAKRti::DtInetAddr | destAddr () const |
| | Get/Set the IP address of the destination of this message.
|
| virtual void | setDestAddr (const MAKRti::DtInetAddr &addr) |
| virtual int | destId () const |
| | Get/Set the ID of the destination of this message.
|
| virtual void | setDestId (int id) |
| virtual int | compId () const |
| | Get/Set the related component's connection ID.
|
| virtual void | setCompId (int compId) |
| virtual const DtAssistantUuid & | sourceUuid () const |
| | Get/Set the uuid of the source of this message.
|
| virtual void | setSourceUuid (const DtAssistantUuid &uuid) |
| virtual bool | isForeign () const |
| | Get/Set the whether the source considers the destination foreign Assistant-to-Assistant messages only.
|
| virtual void | setIsForeign (bool isForeignDestination) |
| virtual DtU32 | sequence () const |
| | Get/Set sequence number Assistant-to-Assistant messages only.
|
| virtual void | setSequence (DtU32 sequenceNumber) |
Protected Member Functions |
virtual
DtNetAssistantExecStateMsg * | netAssistantExecStateMsg () |
| | The network representation for the message.
|
virtual const
DtNetAssistantExecStateMsg * | netAssistantExecStateMsg () const |
| virtual DtAssistantMsgKind | internalMsgKind () |
| | Returns the kind of a DtAssistantExecStateMsg message.
|
| virtual int | minSize () const |
| | Returns minimum size of a message, including header.
|
| virtual unsigned int | numFederations () const |
| | Get / Set total number of federations this exec has.
|
| virtual void | setNumFederations (unsigned int numFed) |
| virtual unsigned long | federationNamesSize () const |
| | Get / Set total size of the names of all of the { sizeOfThisFedexName + thisFedexName }.
|
| virtual void | setFederationNamesSize (unsigned long) |
| virtual const char * | federationNamesPtr () const |
| | Get pointer at start of federation Names data.
|
| virtual char * | federationNamesPtr () |
| virtual bool | setFederationNames (const std::vector< MAKRti::DtString > &fedexNames) |
| virtual void | federationNames (std::vector< MAKRti::DtString > &names) const |
| virtual unsigned int | numFederates () const |
| | Get / Set the total number of federates in all federations.
|
| virtual void | setNumFederates (unsigned int totalNum) |
virtual
MAKRti::DtInetUtils::DtInetAddrFamily | addressFamily () const |
| | Get / Set address family of the federation host addresses.
|
| virtual void | setAddressFamily (MAKRti::DtInetUtils::DtInetAddrFamily totalNum) |
| virtual unsigned long | federateNamesSize () const |
| | Get / Set total size of the names of all the { sizeOfThisFederateName + thisFederateName }.
|
| virtual void | setFederateNamesSize (unsigned long) |
| virtual const char * | federateNamesPtr () const |
| | Get pointer at start of federate Names data.
|
| virtual char * | federateNamesPtr () |
| virtual bool | setFederateNames (const std::vector< MAKRti::DtString > &fedNames) |
| virtual void | federateNames (std::vector< MAKRti::DtString > &fedNames) const |
| virtual unsigned long | federateHostNamesSize () const |
| | Get / Set total size of the names of all the { sizeOfThisFederateHostName + thisFederateHostNameName }.
|
| virtual void | setFederateHostNamesSize (unsigned long) |
| virtual const char * | federateHostNamesPtr () const |
| | Get pointer at start of federate Host names data.
|
| virtual char * | federateHostNamesPtr () |
| virtual bool | setFederateHostNames (const std::vector< MAKRti::DtString > &fedHostNames) |
| virtual void | federateHostNames (std::vector< MAKRti::DtString > &names) const |
| virtual void | federationHandles (std::vector< unsigned int > &handles) const |
| | Get / Set vector containing all federation handles.
|
| virtual bool | setFederationHandles (const std::vector< unsigned int > &fedexHandles) |
| virtual const DtNetU32 * | federationHandlesPtr () const |
| | Get pointer at start of federationHandles data.
|
| virtual DtNetU32 * | federationHandlesPtr () |
| virtual void | federateHandles (std::vector< unsigned int > &handles) const |
| | Get / Set vector containing all federate handles.
|
| virtual bool | setFederateHandles (const std::vector< unsigned int > &fedHandles) |
| virtual const DtNetU32 * | federateHandlesPtr () const |
| | Get pointer at start of federateHandles data.
|
| virtual DtNetU32 * | federateHandlesPtr () |
| virtual void | federateHlaVersions (std::vector< DtHlaVersionId > &versions) const |
| | Get / Set vector containing all federate HLA versions.
|
| virtual bool | setFederateHlaVersions (const std::vector< DtHlaVersionId > &versions) |
| virtual const DtNetU8 * | federateHlaVersionsPtr () const |
| | Get pointer at start of federateHlaVersions data.
|
| virtual DtNetU8 * | federateHlaVersionsPtr () |
| virtual void | federateHostAddresses (std::vector< MAKRti::DtInetAddr > &addrs) const |
| | Get / Set vector containing all federate host Addresses.
|
| virtual bool | setFederateHostAddresses (const std::vector< MAKRti::DtInetAddr > &federateAddrs) |
| virtual const DtNetU128 * | federateHostAddrsPtr () const |
| | Get pointer at start of federate Host Addresses data.
|
| virtual DtNetU128 * | federateHostAddrsPtr () |
| virtual void | numFederatesInEachFederation (std::vector< unsigned int > &numFeds) const |
| | Get / Set vector containing num Federates in each federation.
|
| virtual bool | setNumFederatesInEachFederation (const std::vector< unsigned int > &federatesInEachFedex) |
| virtual const DtNetU16 * | federatesInEachFederationPtr () const |
| virtual DtNetU16 * | federatesInEachFederationPtr () |
| | DtAssistantMsg () |
| | Constructor.
|
| virtual void | sizeChanged (int size) |
| | Called whenever size is changed using changeSize, or insert/deleteBytes.
|
| void | initAssistantMsg (int size, DtAssistantMsgKind msgKindVal, DtBufferPtr buffer) |
| | Called by ctor, so not virtual.
|
| void | initAssistantMsg (const void *initial, int size, DtBufferPtr buffer) |
| void | initAssistantMsg (const DtNetAssistantMsgHeader *header, DtBufferPtr buffer) |
| virtual void | adjustBytes (int offset, int numBytes) |
| | Adjust numBytes bytes at the indicated offset in the net rep.
|
| virtual void | adjustBytes (void *address, int numBytes) |
| | Adjust the numBytes starting at the indicated address.
|
| virtual void | resizeForSrcDestInfo () |
| | Allocates memory at the end of the message for source/destination information needed when sending messages between assistants.
|
virtual const
DtNetAssistantSrcDestInfo * | srcDestInfoPtr () const |
| | Return pointer to source/destination information in the message.
|
| virtual DtNetAssistantSrcDestInfo * | srcDestInfoPtr () |
| virtual void | setSourceHostSize (unsigned long size) |
| | Set/Get source host name text size.
|
| virtual unsigned long | sourceHostSize () const |
| virtual const char * | sourceHostPtr () const |
| | Return pointer to source host name in message.
|
| virtual char * | sourceHostPtr () |
The DtAssistantExecStateMsg defines a wrapper for the RTI Assistant federation state message sent to an assistant from a local rtiexec and between assistants to relay federation information.