![]() |
MAK RTIspy API Documentation for HLA 1.3
|
The DtAssistantFederateStateMsg defines a wrapper for the RTI Assistant federate state message used by the rtiexec to inform the Assistant of the current state of a single federate. More...
Inheritance diagram for DtAssistantFederateStateMsg:
Collaboration diagram for DtAssistantFederateStateMsg:Public Member Functions | |
| DtAssistantFederateStateMsg (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Constructors. More... | |
| DtAssistantFederateStateMsg (const DtNetAssistantFederateStateMsg *netRepMsg, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| virtual | ~DtAssistantFederateStateMsg () |
| Destructor. More... | |
| virtual DtAssistantMsg * | clone (bool copy=true) const |
| Return a copy/empty object of the same type as this. More... | |
| virtual unsigned long | connectionId () const |
| Get the connection ID. More... | |
| virtual void | setConnectionId (unsigned long connId) |
| Set the connection ID. More... | |
| virtual unsigned int | federateHandle () const |
| Get the federate handle. More... | |
| virtual void | setFederateHandle (unsigned int handle) |
| Set the federate handle. More... | |
| virtual MAKRti::DtInetAddr | federateHostIp () const |
| Get the federate host IP. More... | |
| virtual void | setFederateHostIp (const MAKRti::DtInetAddr &ip) |
| Set the federate host IP. More... | |
| virtual bool | isTestEnabled () const |
| Get whether or not the federate has network testing enabled. More... | |
| virtual void | setIsTestEnabled (bool enabled) |
| Set whether or not the federate has network testing enabled. More... | |
| virtual bool | isTestInProgress () const |
| Get whether or not the federate has a network test in progress. More... | |
| virtual void | setIsTestInProgress (bool inProgress) |
| Set whether or not the federate has a network test in progress. More... | |
| virtual bool | isContinuousTest () const |
| Get whether or not the federate is configured to run a test continuously. More... | |
| virtual void | setIsContinuousTest (bool continuous) |
| Set whether or not the federate is configured to run a test continuously. More... | |
| virtual unsigned int | numInitiatedTests () const |
| Get the federate's number of initiated network test. More... | |
| virtual void | setNumInitiatedTests (unsigned int num) |
| Set the federate's number of initiated network test. More... | |
| virtual unsigned int | numTestReports () const |
| Get the federate's number of test reports generated. More... | |
| virtual void | setNumTestReports (unsigned int num) |
| Set the federate's number of test reports generated. More... | |
| virtual bool | isReconnecting () const |
| Get whether or not the federate is currently reconnecting. More... | |
| virtual void | setIsReconnecting (bool reconnecting) |
| Set whether or not the federate is currently reconnecting. More... | |
| virtual bool | isDisconnected () const |
| Get whether or not the federate has disconnected. More... | |
| virtual void | setIsDisconnected (bool disconnected) |
| Set whether or not the federate has disconnected. More... | |
| virtual bool | isRemoval () const |
| Get whether or not this federate is being removed. More... | |
| virtual void | setIsRemoval (bool remove) |
| Set whether or not this federate is being removed. More... | |
| virtual DtHlaVersionId | hlaVersion () const |
| Get the federate's HLA version. More... | |
| virtual void | setHlaVersion (DtHlaVersionId version) |
| Set the federate's HLA version. More... | |
| virtual int | assistantCompId () const |
| Get the assistant component ID. More... | |
| virtual void | setAssistantCompId (int compId) |
| Set the connection ID. More... | |
| virtual MAKRti::DtString | federationName () const |
| Get the federation name for this federate. More... | |
| virtual void | setFederationName (const MAKRti::DtString &name) |
| Set the federation name for this federate. More... | |
| virtual MAKRti::DtString | federateType () const |
| Get the federate's type. More... | |
| virtual void | setFederateType (const MAKRti::DtString &type) |
| set the federate's type More... | |
| virtual MAKRti::DtString | federateName () const |
| Get the federates name. More... | |
| virtual void | setFederateName (const MAKRti::DtString &name) |
| Get the federates name. More... | |
| virtual MAKRti::DtString | federateHostName () const |
| Get the name of the host the federate is on. More... | |
| virtual void | setFederateHostName (const MAKRti::DtString &name) |
| Set the name of the host the federate is on. More... | |
| virtual void | printData () const |
| Print the data section. More... | |
Public Member Functions inherited from DtAssistantMsg | |
| virtual | ~DtAssistantMsg () |
| Destructor. More... | |
| virtual DtNetAssistantMsgHeader * | netHeader () const |
| Get header of network representation. More... | |
| virtual int | version () const |
| Return the message version. More... | |
| virtual bool | isValidVersion () const |
| Returns bool: message version is valid? More... | |
| virtual DtAssistantMsgKind | msgKind () const |
| Get the message kind. More... | |
| virtual void | print () const |
| Printing functions. More... | |
| virtual void | printHeader () const |
| virtual void | printSrcDest () const |
| virtual bool | isOk () const |
| Message is good? More... | |
| bool | isAssistantToAssistantMessage () const |
| Returns whether or not this message contains source/destination information included in messages sent between assistants. More... | |
| virtual MAKRti::DtInetAddr | sourceAddr () const |
| Get/Set the IP address of the source of this message. More... | |
| virtual void | setSourceAddr (const MAKRti::DtInetAddr &addr) |
| virtual int | sourceId () const |
| Get/Set the ID of the source of this message. More... | |
| virtual void | setSourceId (int id) |
| virtual MAKRti::DtString | sourceHost () const |
| Get/Set the host name of the source of this message. More... | |
| virtual void | setSourceHost (const MAKRti::DtString &addr) |
| virtual MAKRti::DtInetAddr | destAddr () const |
| Get/Set the IP address of the destination of this message. More... | |
| virtual void | setDestAddr (const MAKRti::DtInetAddr &addr) |
| virtual int | destId () const |
| Get/Set the ID of the destination of this message. More... | |
| virtual void | setDestId (int id) |
| virtual int | compId () const |
| Get/Set the related component's connection ID. More... | |
| virtual void | setCompId (int compId) |
| virtual const DtAssistantUuid & | sourceUuid () const |
| Get/Set the uuid of the source of this message. More... | |
| 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. More... | |
| virtual void | setIsForeign (bool isForeignDestination) |
| virtual DtU32 | sequence () const |
| Get/Set sequence number Assistant-to-Assistant messages only. More... | |
| virtual void | setSequence (DtU32 sequenceNumber) |
Static Public Member Functions | |
| static DtAssistantMsg * | create (const DtNetAssistantMsgHeader *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| Creators. More... | |
| static DtAssistantMsg * | create (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| static void | addCallback (DtRtiAssistantServer *conn, DtAssistantFederateStateCb cb, void *usr) |
| Adds or removes a callback with the given Assistant server for this message type. More... | |
| static void | removeCallback (DtRtiAssistantServer *conn, DtAssistantFederateStateCb cb, void *usr) |
| static void | addCallback (DtRtiAssistantPeer *conn, DtAssistantFederateStateCb cb, void *usr) |
| Adds or removes a callback with the given Assistant peer for this message type. More... | |
| static void | removeCallback (DtRtiAssistantPeer *conn, DtAssistantFederateStateCb cb, void *usr) |
Static Public Member Functions inherited from DtAssistantMsg | |
| static const char * | kindToString (DtAssistantMsgKind kind) |
| Returns the name of the message, by kind enumeration. More... | |
Protected Member Functions | |
| virtual DtNetAssistantFederateStateMsg * | netAssistantFederateStateMsg () |
| The network representation for the message. More... | |
| virtual const DtNetAssistantFederateStateMsg * | netAssistantFederateStateMsg () const |
| virtual DtAssistantMsgKind | internalMsgKind () |
| Returns the kind of a DtAssistantFederateStateMsg message. More... | |
| virtual int | minSize () const |
| Returns minimum size of a message, including header. More... | |
| virtual void | setFederationNameSize (unsigned long size) |
| Set/Get federation name size. More... | |
| virtual unsigned long | federationNameSize () const |
| virtual const char * | federationNamePtr () const |
| Return pointer to federation name location in message. More... | |
| virtual char * | federationNamePtr () |
| virtual void | setFederateTypeSize (unsigned long size) |
| Set/Get federate type size. More... | |
| virtual unsigned long | federateTypeSize () const |
| virtual const char * | federateTypePtr () const |
| Return pointer to federate type location in message. More... | |
| virtual char * | federateTypePtr () |
| virtual void | setFederateNameSize (unsigned long size) |
| Set/Get federate name size. More... | |
| virtual unsigned long | federateNameSize () const |
| virtual const char * | federateNamePtr () const |
| return pointer to federate name location in message More... | |
| virtual char * | federateNamePtr () |
| virtual void | setFederateHostNameSize (unsigned long size) |
| Set/Get federate host name size. More... | |
| virtual unsigned long | federateHostNameSize () const |
| virtual const char * | federateHostNamePtr () const |
| Return pointer to federate host name location in message. More... | |
| virtual char * | federateHostNamePtr () |
Protected Member Functions inherited from DtAssistantMsg | |
| DtAssistantMsg () | |
| Constructor. More... | |
| virtual void | sizeChanged (int size) |
| Called whenever size is changed using changeSize, or insert/deleteBytes. More... | |
| void | initAssistantMsg (int size, DtAssistantMsgKind msgKindVal, DtBufferPtr buffer) |
| Called by ctor, so not virtual. More... | |
| 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. More... | |
| virtual void | adjustBytes (void *address, int numBytes) |
| Adjust the numBytes starting at the indicated address. More... | |
| virtual void | resizeForSrcDestInfo () |
| Allocates memory at the end of the message for source/destination information needed when sending messages between assistants. More... | |
| virtual const DtNetAssistantSrcDestInfo * | srcDestInfoPtr () const |
| Return pointer to source/destination information in the message. More... | |
| virtual DtNetAssistantSrcDestInfo * | srcDestInfoPtr () |
| virtual void | setSourceHostSize (unsigned long size) |
| Set/Get source host name text size. More... | |
| virtual unsigned long | sourceHostSize () const |
| virtual const char * | sourceHostPtr () const |
| Return pointer to source host name in message. More... | |
| virtual char * | sourceHostPtr () |
The DtAssistantFederateStateMsg defines a wrapper for the RTI Assistant federate state message used by the rtiexec to inform the Assistant of the current state of a single federate.
| DtAssistantFederateStateMsg::DtAssistantFederateStateMsg | ( | DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER | ) |
Constructors.
| DtAssistantFederateStateMsg::DtAssistantFederateStateMsg | ( | const DtNetAssistantFederateStateMsg * | netRepMsg, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) |
|
virtual |
Destructor.
|
static |
Adds or removes a callback with the given Assistant server for this message type.
|
static |
Adds or removes a callback with the given Assistant peer for this message type.
|
virtual |
Get the assistant component ID.
|
virtual |
Return a copy/empty object of the same type as this.
Implements DtAssistantMsg.
|
virtual |
Get the connection ID.
|
static |
Creators.
|
static |
|
virtual |
Get the federate handle.
|
virtual |
Get the federate host IP.
|
virtual |
Get the name of the host the federate is on.
|
protectedvirtual |
Return pointer to federate host name location in message.
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
Get the federates name.
|
protectedvirtual |
return pointer to federate name location in message
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
Get the federate's type.
|
protectedvirtual |
Return pointer to federate type location in message.
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
Get the federation name for this federate.
|
protectedvirtual |
Return pointer to federation name location in message.
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
Get the federate's HLA version.
|
protectedvirtual |
Returns the kind of a DtAssistantFederateStateMsg message.
Implements DtAssistantMsg.
|
virtual |
Get whether or not the federate is configured to run a test continuously.
|
virtual |
Get whether or not the federate has disconnected.
|
virtual |
Get whether or not the federate is currently reconnecting.
|
virtual |
Get whether or not this federate is being removed.
|
virtual |
Get whether or not the federate has network testing enabled.
|
virtual |
Get whether or not the federate has a network test in progress.
|
protectedvirtual |
Returns minimum size of a message, including header.
|
protectedvirtual |
The network representation for the message.
|
protectedvirtual |
|
virtual |
Get the federate's number of initiated network test.
|
virtual |
Get the federate's number of test reports generated.
|
virtual |
Print the data section.
Reimplemented from DtAssistantMsg.
|
static |
|
static |
|
virtual |
Set the connection ID.
|
virtual |
Set the connection ID.
|
virtual |
Set the federate handle.
|
virtual |
Set the federate host IP.
|
virtual |
Set the name of the host the federate is on.
|
protectedvirtual |
Set/Get federate host name size.
|
virtual |
Get the federates name.
|
protectedvirtual |
Set/Get federate name size.
|
virtual |
set the federate's type
|
protectedvirtual |
Set/Get federate type size.
|
virtual |
Set the federation name for this federate.
|
protectedvirtual |
Set/Get federation name size.
|
virtual |
Set the federate's HLA version.
|
virtual |
Set whether or not the federate is configured to run a test continuously.
|
virtual |
Set whether or not the federate has disconnected.
|
virtual |
Set whether or not the federate is currently reconnecting.
|
virtual |
Set whether or not this federate is being removed.
|
virtual |
Set whether or not the federate has network testing enabled.
|
virtual |
Set whether or not the federate has a network test in progress.
|
virtual |
Set the federate's number of initiated network test.
|
virtual |
Set the federate's number of test reports generated.