VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
DtAIBroadcastMessageToGroupInter Class Reference

Instances of DtAIBroadcastMessageToGroupInter are used to store state data for DIGuyInteraction.AIBroadcastMessageToGroup interactions. More...

+ Inheritance diagram for DtAIBroadcastMessageToGroupInter:
+ Collaboration diagram for DtAIBroadcastMessageToGroupInter:

Public Member Functions

 DtAIBroadcastMessageToGroupInter ()
 Constructor. More...
 
virtual ~DtAIBroadcastMessageToGroupInter () override
 Destructor. More...
 
 DtAIBroadcastMessageToGroupInter (const DtAIBroadcastMessageToGroupInter &orig)
 Copy constructor. More...
 
DtAIBroadcastMessageToGroupInter & operator= (const DtAIBroadcastMessageToGroupInter &orig)
 Assignment operator. More...
 
virtual void printData () const override
 Print the interaction's data. More...
 
virtual void printDataToStream (std::ostream &stream) const override
 Print the interaction's data to the specified stream. More...
 
virtual void setSender (const DtString &val)
 sender mutator. More...
 
virtual const DtString & sender () const
 sender accessor. More...
 
virtual void setGroupName (const DtString &val)
 groupName mutator. More...
 
virtual const DtString & groupName () const
 groupName accessor. More...
 
virtual void setRadius (float val)
 radius mutator. More...
 
virtual float radius () const
 radius accessor. More...
 
virtual void setMessageType (const DtString &val)
 messageType mutator. More...
 
virtual const DtString & messageType () const
 messageType accessor. More...
 
virtual void setMessage (const DtString &val)
 message mutator. More...
 
virtual const DtString & message () const
 message accessor. More...
 
virtual void setMessageParams (const DtString &val)
 messageParams mutator. More...
 
virtual const DtString & messageParams () const
 messageParams accessor. More...
 
virtual const char * name () const override
 Name of the interaction. (Not necessarily the ClassName from the FOM.) More...
 
- Public Member Functions inherited from DtInteractionWithEncDec
 DtInteractionWithEncDec ()
 default constructor More...
 
virtual ~DtInteractionWithEncDec ()
 destructor More...
 
 DtInteractionWithEncDec (const DtInteractionWithEncDec &orig)
 copy constructor More...
 
DtInteractionWithEncDec & operator= (const DtInteractionWithEncDec &orig)
 assignment operator More...
 
virtual void setExConn (DtExerciseConn *exConn, DtInterClassDesc *classDesc=NULL)
 Sets the interaction's ExerciseConn and class descriptor. More...
 
virtual const
RTI::ParameterHandleValuePairSet & 
phvps () const
 Get the parameter handle value pair set for the interaction. More...
 
virtual void setFromPhvps (const RTI::ParameterHandleValuePairSet &pvList)
 Set contents from a parameter handle value pair set. More...
 
virtual void useThese (DtInteractionEncoder *enc, DtInteractionDecoder *dec, DtInteractionRep *data)
 Specify an encoder, decoder, and interaction data repository to use in encoding and decoding. More...
 
virtual DtInteractionEncoder * encoder () const
 Return the encoder we are using. More...
 
virtual DtInteractionDecoder * decoder () const
 Return the decoder we are using. More...
 
virtual void setParameterByHandle (const RTI::ParameterHandle &attrHdl, const char *attrValue, unsigned size)
 Set the Parameter with the given handle. More...
 
virtual const char * getParameterByHandle (const RTI::ParameterHandle &attrHdl, unsigned &size) const
 Get a pointer to Parameter value for the Parameter with the given handle. More...
 
virtual void setParameterByName (const DtString &name, const char *attrValue, unsigned size)
 Set the Parameter with the given name. More...
 
virtual const char * getParameterByName (const DtString &name, unsigned &size) const
 Get a pointer to Parameter value for the Parameter with the given name. More...
 
- Public Member Functions inherited from DtInteraction
 DtInteraction ()
 default constructor More...
 
virtual ~DtInteraction ()
 destructor More...
 
 DtInteraction (const DtInteraction &orig)
 copy constructor More...
 
DtInteraction & operator= (const DtInteraction &orig)
 assignment operator More...
 
virtual RTI::InteractionClassHandle interactionClassHandle () const
 Get the interaction class handle. Returns 0 if no classDesc. More...
 
virtual char * interactionClassName () const
 Get the interaction class name. Returns NULL if no classDesc. More...
 
virtual int numParameters () const
 Get the number of parameters. Returns 0 if no classDesc. More...
 
virtual bool neededByFederation () const
 Returns true if the interaction class is needed by the federation false otherwise. More...
 
virtual void print () const
 Print the interaction's host rep data, including header. More...
 
virtual void printToStream (std::ostream &stream) const
 Print the interaction to a stream. More...
 
virtual void printHeader () const
 Print the header info. More...
 
virtual void printHeaderToStream (std::ostream &stream) const
 Print the header info to a stream. More...
 
virtual void printDataToString (DtString &buff) const
 Print the interaction's data to the string provided. More...
 
virtual void printParams (bool withHex) const
 Print the header followed by the interaction's parameters. More...
 
virtual void printParamsToStream (std::ostream &stream, bool withHex) const
 Print the header followed by the interaction's parameters to a stream. More...
 
virtual DtExerciseConn * exerciseConn () const
 Get the current exercise connection. More...
 
virtual DtInterClassDesc * classDesc () const
 Get the current class descriptor we're using for this interaction. More...
 
virtual bool customTagSet () const
 Get whether a custom tag has been set on the interaction or not. More...
 
virtual void setCustomTag (const DtString &a_tag)
 Set the user-defined tag. More...
 
virtual void setTag (const DtString &tag)
 Set the user-defined tag. More...
 
virtual const DtString & tag () const
 Get the user-defined tag. More...
 
virtual const RTI::Region * conveyedRegion () const
 Get & Set the conveyed region of the reflected state message. More...
 
virtual void setConveyedRegion (const RTI::Region *region)
 
virtual void setTimeStamp (DtTime time, DtTimeStampType type=DtTimeStampRelative)
 Set the time of validity of the message, and whether this represents relative or absolute time. More...
 
virtual DtTime timeStamp () const
 Return the time of validity of the message (in seconds past an hour) as set by setTimeStamp. More...
 
virtual DtTimeStampType timeStampType () const
 Return the type of the time stamp. More...
 
virtual DtTime guessTimeValid (DtTime referenceTime) const
 Since timestamp only represents number of seconds past the hour, guessTimeValid chooses the hour that would make the timestamp closest to reference time, and returns a time that is timestamp seconds past that hour. More...
 
virtual void setFedTime (const RTI::FedTime &ft)
 This is used for TSO interactions. More...
 
virtual const RTI::FedTime * fedTime () const
 When the interaction is received, if the federate sending the interaction had TSO set then the fedTime will be set. More...
 
virtual void setEventRetractionHandle (const RTI::EventRetractionHandle &handle)
 Get/Set the EventRetractionHandle. More...
 
virtual RTI::EventRetractionHandle eventRetractionHandle () const
 Get the event retraction handle. For more info see setEventRetractionHandle. More...
 

Static Public Member Functions

static DtInteraction * create ()
 Create a DtAIBroadcastMessageToGroupInter. More...
 
static void addCallback (DtExerciseConn *conn, DtAIBroadcastMessageToGroupInterCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
 Add (register)/Remove (deregister) function to be called when interaction occurs. More...
 
static void removeCallback (DtExerciseConn *conn, DtAIBroadcastMessageToGroupInterCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
 
- Static Public Member Functions inherited from DtInteraction
static void setTagIsAsciiTime (bool val)
 Set/Get flag that tells us whether we're using the RPR FOM convention that the UserDefinedTag in updates and interactions represents a DIS-style timestamp. More...
 
static bool tagIsAsciiTime ()
 
static void addCallback (DtExerciseConn *conn, const std::vector< DtString > *classes, DtReceiveInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
 Register/Deregister callback function cb with conn, on all interaction class name (char*) contained in classes. More...
 
static void removeCallback (DtExerciseConn *conn, const std::vector< DtString > *classes, DtReceiveInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
 
static void addCallback (DtExerciseConn *conn, const char *className, DtReceiveInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
 Can be used instead of above for a single class. More...
 
static void removeCallback (DtExerciseConn *conn, const char *className, DtReceiveInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
 

Protected Member Functions

virtual const char * interactionClassToUse (DtExerciseConn *exConn) const override
 Returns the FOM interaction class name to use. More...
 
virtual DtInteractionDecoder * createDecoder (DtExerciseConn *exConn) const override
 Called by decoderToUse to obtain a new'ed decoder. More...
 
virtual DtInteractionEncoder * createEncoder (DtExerciseConn *exConn) const override
 Called by encoderToUse to obtain a new'ed encoder. More...
 
- Protected Member Functions inherited from DtInteractionWithEncDec
virtual DtInteractionDecoder * decoderToUse (DtExerciseConn *exConn) const
 Returns a decoder to use for decoding the interaction. More...
 
virtual DtInteractionEncoder * encoderToUse (DtExerciseConn *exConn) const
 Returns an encoder to use for encoding the interaction. More...
 
- Protected Member Functions inherited from DtInteraction
virtual
RTI::ParameterHandleValuePairSet * 
privPvList () const
 Returns a pointer to a private pvList that can be used as a return value by phvps. More...
 
DtInteraction * self () const
 Get rid of const-ness on the "this" pointer in order to access non-const functions from const member functions (such as simple accessors). More...
 

Protected Attributes

DtString mySender
 
DtString myGroupName
 
float myRadius
 
DtString myMessageType
 
DtString myMessage
 
DtString myMessageParams
 
- Protected Attributes inherited from DtInteractionWithEncDec
DtInteractionDecoder * myDecoder
 
DtInteractionEncoder * myEncoder
 
DtInteractionRep * myData
 
std::map< RTI::ParameterHandle,
DtGenericParameterInfo * > 
myParametersByHandle
 parameters by handle. More...
 
- Protected Attributes inherited from DtInteraction
DtInterClassDesc * myClassDesc
 
DtExerciseConn * myExConn
 
DtTime myTime
 
DtTimeStampType myTimeType
 
DtString myTag
 
RTI::ParameterHandleValuePairSet * myPvList
 
int myPvListMaxSize
 
RTI::FedTime * myFedTime
 
RTI::EventRetractionHandle myRetractionHandle
 
const RTI::Region * myConveyedRegion
 
bool myCustomTagSet
 

Additional Inherited Members

- Static Protected Attributes inherited from DtInteraction
static bool theTagIsAsciiTime
 

Detailed Description

Instances of DtAIBroadcastMessageToGroupInter are used to store state data for DIGuyInteraction.AIBroadcastMessageToGroup interactions.

Constructor & Destructor Documentation

DtAIBroadcastMessageToGroupInter::DtAIBroadcastMessageToGroupInter ( )

Constructor.

virtual DtAIBroadcastMessageToGroupInter::~DtAIBroadcastMessageToGroupInter ( )
overridevirtual

Destructor.

DtAIBroadcastMessageToGroupInter::DtAIBroadcastMessageToGroupInter ( const DtAIBroadcastMessageToGroupInter &  orig)

Copy constructor.

Member Function Documentation

static void DtAIBroadcastMessageToGroupInter::addCallback ( DtExerciseConn *  conn,
DtAIBroadcastMessageToGroupInterCb  cb,
void *  usr,
DtDDMRegionSP  region = DtDDMRegionSP() 
)
static

Add (register)/Remove (deregister) function to be called when interaction occurs.

static DtInteraction* DtAIBroadcastMessageToGroupInter::create ( )
static

Create a DtAIBroadcastMessageToGroupInter.

Caller is responsible for deletion.

virtual DtInteractionDecoder* DtAIBroadcastMessageToGroupInter::createDecoder ( DtExerciseConn *  exConn) const
overrideprotectedvirtual

Called by decoderToUse to obtain a new'ed decoder.

Default implementation is to ask the FOM Mapper. The object is automatically deleted in the interaction's destructor.

Reimplemented from DtInteractionWithEncDec.

virtual DtInteractionEncoder* DtAIBroadcastMessageToGroupInter::createEncoder ( DtExerciseConn *  exConn) const
overrideprotectedvirtual

Called by encoderToUse to obtain a new'ed encoder.

Default implementation is to ask the FOM Mapper. The object is automatically deleted in the interaction's destructor.

Reimplemented from DtInteractionWithEncDec.

virtual const DtString& DtAIBroadcastMessageToGroupInter::groupName ( ) const
virtual

groupName accessor.

virtual const char* DtAIBroadcastMessageToGroupInter::interactionClassToUse ( DtExerciseConn *  exConn) const
overrideprotectedvirtual

Returns the FOM interaction class name to use.

Default implementation is to ask the fomMapper.

Reimplemented from DtInteraction.

virtual const DtString& DtAIBroadcastMessageToGroupInter::message ( ) const
virtual

message accessor.

virtual const DtString& DtAIBroadcastMessageToGroupInter::messageParams ( ) const
virtual

messageParams accessor.

virtual const DtString& DtAIBroadcastMessageToGroupInter::messageType ( ) const
virtual

messageType accessor.

virtual const char* DtAIBroadcastMessageToGroupInter::name ( ) const
inlineoverridevirtual

Name of the interaction. (Not necessarily the ClassName from the FOM.)

Implements DtInteraction.

DtAIBroadcastMessageToGroupInter& DtAIBroadcastMessageToGroupInter::operator= ( const DtAIBroadcastMessageToGroupInter &  orig)

Assignment operator.

virtual void DtAIBroadcastMessageToGroupInter::printData ( ) const
overridevirtual

Print the interaction's data.

Reimplemented from DtInteraction.

virtual void DtAIBroadcastMessageToGroupInter::printDataToStream ( std::ostream &  stream) const
overridevirtual

Print the interaction's data to the specified stream.

Reimplemented from DtInteraction.

virtual float DtAIBroadcastMessageToGroupInter::radius ( ) const
virtual

radius accessor.

static void DtAIBroadcastMessageToGroupInter::removeCallback ( DtExerciseConn *  conn,
DtAIBroadcastMessageToGroupInterCb  cb,
void *  usr,
DtDDMRegionSP  region = DtDDMRegionSP() 
)
static
virtual const DtString& DtAIBroadcastMessageToGroupInter::sender ( ) const
virtual

sender accessor.

virtual void DtAIBroadcastMessageToGroupInter::setGroupName ( const DtString &  val)
virtual

groupName mutator.

virtual void DtAIBroadcastMessageToGroupInter::setMessage ( const DtString &  val)
virtual

message mutator.

virtual void DtAIBroadcastMessageToGroupInter::setMessageParams ( const DtString &  val)
virtual

messageParams mutator.

virtual void DtAIBroadcastMessageToGroupInter::setMessageType ( const DtString &  val)
virtual

messageType mutator.

virtual void DtAIBroadcastMessageToGroupInter::setRadius ( float  val)
virtual

radius mutator.

virtual void DtAIBroadcastMessageToGroupInter::setSender ( const DtString &  val)
virtual

sender mutator.

Member Data Documentation

DtString DtAIBroadcastMessageToGroupInter::myGroupName
protected
DtString DtAIBroadcastMessageToGroupInter::myMessage
protected
DtString DtAIBroadcastMessageToGroupInter::myMessageParams
protected
DtString DtAIBroadcastMessageToGroupInter::myMessageType
protected
float DtAIBroadcastMessageToGroupInter::myRadius
protected
DtString DtAIBroadcastMessageToGroupInter::mySender
protected

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

Document ID: Generated on Mon Sep 28 00:09:32 EDT 2026 from SVN revision 295353
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)