MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions
DtAssistantFederateStateMsg Class Reference

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 DtAssistantMsgclone (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 DtNetAssistantMsgHeadernetHeader () 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 DtAssistantUuidsourceUuid () 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 DtAssistantMsgcreate (const DtNetAssistantMsgHeader *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 Creators. More...
 
static DtAssistantMsgcreate (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 DtNetAssistantSrcDestInfosrcDestInfoPtr ()
 
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 ()
 

Detailed Description

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.

Constructor & Destructor Documentation

DtAssistantFederateStateMsg::DtAssistantFederateStateMsg ( DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER)

Constructors.

DtAssistantFederateStateMsg::DtAssistantFederateStateMsg ( const DtNetAssistantFederateStateMsg netRepMsg,
DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER 
)
virtual DtAssistantFederateStateMsg::~DtAssistantFederateStateMsg ( )
virtual

Destructor.

Member Function Documentation

static void DtAssistantFederateStateMsg::addCallback ( DtRtiAssistantServer conn,
DtAssistantFederateStateCb  cb,
void *  usr 
)
static

Adds or removes a callback with the given Assistant server for this message type.

static void DtAssistantFederateStateMsg::addCallback ( DtRtiAssistantPeer conn,
DtAssistantFederateStateCb  cb,
void *  usr 
)
static

Adds or removes a callback with the given Assistant peer for this message type.

virtual int DtAssistantFederateStateMsg::assistantCompId ( ) const
virtual

Get the assistant component ID.

virtual DtAssistantMsg* DtAssistantFederateStateMsg::clone ( bool  copy = true) const
virtual

Return a copy/empty object of the same type as this.

Implements DtAssistantMsg.

virtual unsigned long DtAssistantFederateStateMsg::connectionId ( ) const
virtual

Get the connection ID.

static DtAssistantMsg* DtAssistantFederateStateMsg::create ( const DtNetAssistantMsgHeader initial,
DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER 
)
static

Creators.

static DtAssistantMsg* DtAssistantFederateStateMsg::create ( DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER)
static
virtual unsigned int DtAssistantFederateStateMsg::federateHandle ( ) const
virtual

Get the federate handle.

virtual MAKRti::DtInetAddr DtAssistantFederateStateMsg::federateHostIp ( ) const
virtual

Get the federate host IP.

virtual MAKRti::DtString DtAssistantFederateStateMsg::federateHostName ( ) const
virtual

Get the name of the host the federate is on.

virtual const char* DtAssistantFederateStateMsg::federateHostNamePtr ( ) const
protectedvirtual

Return pointer to federate host name location in message.

virtual char* DtAssistantFederateStateMsg::federateHostNamePtr ( )
protectedvirtual
virtual unsigned long DtAssistantFederateStateMsg::federateHostNameSize ( ) const
protectedvirtual
virtual MAKRti::DtString DtAssistantFederateStateMsg::federateName ( ) const
virtual

Get the federates name.

virtual const char* DtAssistantFederateStateMsg::federateNamePtr ( ) const
protectedvirtual

return pointer to federate name location in message

virtual char* DtAssistantFederateStateMsg::federateNamePtr ( )
protectedvirtual
virtual unsigned long DtAssistantFederateStateMsg::federateNameSize ( ) const
protectedvirtual
virtual MAKRti::DtString DtAssistantFederateStateMsg::federateType ( ) const
virtual

Get the federate's type.

virtual const char* DtAssistantFederateStateMsg::federateTypePtr ( ) const
protectedvirtual

Return pointer to federate type location in message.

virtual char* DtAssistantFederateStateMsg::federateTypePtr ( )
protectedvirtual
virtual unsigned long DtAssistantFederateStateMsg::federateTypeSize ( ) const
protectedvirtual
virtual MAKRti::DtString DtAssistantFederateStateMsg::federationName ( ) const
virtual

Get the federation name for this federate.

virtual const char* DtAssistantFederateStateMsg::federationNamePtr ( ) const
protectedvirtual

Return pointer to federation name location in message.

virtual char* DtAssistantFederateStateMsg::federationNamePtr ( )
protectedvirtual
virtual unsigned long DtAssistantFederateStateMsg::federationNameSize ( ) const
protectedvirtual
virtual DtHlaVersionId DtAssistantFederateStateMsg::hlaVersion ( ) const
virtual

Get the federate's HLA version.

virtual DtAssistantMsgKind DtAssistantFederateStateMsg::internalMsgKind ( )
protectedvirtual

Returns the kind of a DtAssistantFederateStateMsg message.

Implements DtAssistantMsg.

virtual bool DtAssistantFederateStateMsg::isContinuousTest ( ) const
virtual

Get whether or not the federate is configured to run a test continuously.

virtual bool DtAssistantFederateStateMsg::isDisconnected ( ) const
virtual

Get whether or not the federate has disconnected.

virtual bool DtAssistantFederateStateMsg::isReconnecting ( ) const
virtual

Get whether or not the federate is currently reconnecting.

virtual bool DtAssistantFederateStateMsg::isRemoval ( ) const
virtual

Get whether or not this federate is being removed.

virtual bool DtAssistantFederateStateMsg::isTestEnabled ( ) const
virtual

Get whether or not the federate has network testing enabled.

virtual bool DtAssistantFederateStateMsg::isTestInProgress ( ) const
virtual

Get whether or not the federate has a network test in progress.

virtual int DtAssistantFederateStateMsg::minSize ( ) const
protectedvirtual

Returns minimum size of a message, including header.

virtual DtNetAssistantFederateStateMsg* DtAssistantFederateStateMsg::netAssistantFederateStateMsg ( )
protectedvirtual

The network representation for the message.

virtual const DtNetAssistantFederateStateMsg* DtAssistantFederateStateMsg::netAssistantFederateStateMsg ( ) const
protectedvirtual
virtual unsigned int DtAssistantFederateStateMsg::numInitiatedTests ( ) const
virtual

Get the federate's number of initiated network test.

virtual unsigned int DtAssistantFederateStateMsg::numTestReports ( ) const
virtual

Get the federate's number of test reports generated.

virtual void DtAssistantFederateStateMsg::printData ( ) const
virtual

Print the data section.

Reimplemented from DtAssistantMsg.

static void DtAssistantFederateStateMsg::removeCallback ( DtRtiAssistantServer conn,
DtAssistantFederateStateCb  cb,
void *  usr 
)
static
static void DtAssistantFederateStateMsg::removeCallback ( DtRtiAssistantPeer conn,
DtAssistantFederateStateCb  cb,
void *  usr 
)
static
virtual void DtAssistantFederateStateMsg::setAssistantCompId ( int  compId)
virtual

Set the connection ID.

virtual void DtAssistantFederateStateMsg::setConnectionId ( unsigned long  connId)
virtual

Set the connection ID.

virtual void DtAssistantFederateStateMsg::setFederateHandle ( unsigned int  handle)
virtual

Set the federate handle.

virtual void DtAssistantFederateStateMsg::setFederateHostIp ( const MAKRti::DtInetAddr &  ip)
virtual

Set the federate host IP.

virtual void DtAssistantFederateStateMsg::setFederateHostName ( const MAKRti::DtString &  name)
virtual

Set the name of the host the federate is on.

virtual void DtAssistantFederateStateMsg::setFederateHostNameSize ( unsigned long  size)
protectedvirtual

Set/Get federate host name size.

virtual void DtAssistantFederateStateMsg::setFederateName ( const MAKRti::DtString &  name)
virtual

Get the federates name.

virtual void DtAssistantFederateStateMsg::setFederateNameSize ( unsigned long  size)
protectedvirtual

Set/Get federate name size.

virtual void DtAssistantFederateStateMsg::setFederateType ( const MAKRti::DtString &  type)
virtual

set the federate's type

virtual void DtAssistantFederateStateMsg::setFederateTypeSize ( unsigned long  size)
protectedvirtual

Set/Get federate type size.

virtual void DtAssistantFederateStateMsg::setFederationName ( const MAKRti::DtString &  name)
virtual

Set the federation name for this federate.

virtual void DtAssistantFederateStateMsg::setFederationNameSize ( unsigned long  size)
protectedvirtual

Set/Get federation name size.

virtual void DtAssistantFederateStateMsg::setHlaVersion ( DtHlaVersionId  version)
virtual

Set the federate's HLA version.

virtual void DtAssistantFederateStateMsg::setIsContinuousTest ( bool  continuous)
virtual

Set whether or not the federate is configured to run a test continuously.

virtual void DtAssistantFederateStateMsg::setIsDisconnected ( bool  disconnected)
virtual

Set whether or not the federate has disconnected.

virtual void DtAssistantFederateStateMsg::setIsReconnecting ( bool  reconnecting)
virtual

Set whether or not the federate is currently reconnecting.

virtual void DtAssistantFederateStateMsg::setIsRemoval ( bool  remove)
virtual

Set whether or not this federate is being removed.

virtual void DtAssistantFederateStateMsg::setIsTestEnabled ( bool  enabled)
virtual

Set whether or not the federate has network testing enabled.

virtual void DtAssistantFederateStateMsg::setIsTestInProgress ( bool  inProgress)
virtual

Set whether or not the federate has a network test in progress.

virtual void DtAssistantFederateStateMsg::setNumInitiatedTests ( unsigned int  num)
virtual

Set the federate's number of initiated network test.

virtual void DtAssistantFederateStateMsg::setNumTestReports ( unsigned int  num)
virtual

Set the federate's number of test reports generated.


The documentation for this class was generated from the following file:

Document ID: Generated on Mon Sep 7 15:40:32 EDT 2020 from SVN revision 217499
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)