MAK RTIspy API Documentation for HLA 4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions
DtTestInteraction Class Referenceabstract

DtTestInteraction holds the data needed to send a test interaction An instance of this interaction be used to both send and receive interaction data. More...

+ Inheritance diagram for DtTestInteraction:
+ Collaboration diagram for DtTestInteraction:

Public Member Functions

 DtTestInteraction (DtFomClassMgr *fomMgr, MAKRti::DtString className)
 Constructor. More...
 
virtual ~DtTestInteraction ()
 Destructor. More...
 
virtual const MAKRti::DtString & className () const
 Return the interaction class name. More...
 
virtual DtInteractionClassHandle classHandle () const
 Return the interaction class handle. More...
 
virtual const DtPhvpsparameters ()=0
 Return the parameter handle value pair set Calling this accessor results in the encoding of member data into the PHVPS. More...
 
virtual bool setFromParameters (const DtPhvps &phvps)=0
 Initialize this interaction using the given parameters Return true if parameters were set successfully. More...
 
virtual DtFederateHandle targetFederate () const
 get interaction target federate handle parameter More...
 
virtual void setTargetFederate (DtFederateHandle handle)
 set interaction target federate handle parameter More...
 
virtual void setTransportType (MAKRti::DtTransportType transport)
 set transport of parameters. More...
 
virtual void setPayloadSize (unsigned int payload)
 Set payload size. More...
 
virtual unsigned int payloadSize () const
 Get payload size. More...
 
virtual MAKRti::DtU32 testId () const
 get test id parameter More...
 
virtual void setTestId (unsigned int id)
 set test id parameter More...
 

Static Public Attributes

static const MAKRti::DtString theNameTargetFederate
 Parameter name. More...
 
static const MAKRti::DtString theNameTestId
 Parameter name. More...
 
static const MAKRti::DtString theNamePayload
 Parameter name. More...
 

Protected Member Functions

virtual void encodeTargetFederate ()
 Encode target federate value into PHVPS. More...
 
virtual void encodeTestId ()
 Encode test id value into PHVPS. More...
 
virtual void encodePayload ()
 Encode payload into phvps. More...
 
virtual bool decodeTargetFederate (const DtPhvps &parameters, int index)
 Decode target federate from given parameters into this interaction Return true if decoded successfully. More...
 
virtual bool decodeTestId (const DtPhvps &parameters, int index)
 Decode test id from given parameters into this interaction Return true if decoded successfully. More...
 
virtual bool decodePayload (const DtPhvps &parameters, int index)
 Decode payload from given parameters into this interaction Returns true if decoded successfully. More...
 

Static Protected Member Functions

static bool decodeU32 (const DtPhvps &parameters, int index, MAKRti::DtU32 &value)
 Decode a 32 bit unsigned int from the given PHVPS Return true if decoded successfully. More...
 
static bool decodeU64 (const DtPhvps &parameters, int index, MAKRti::DtU64 &value)
 Decode a 64 bit unsigned int from the given PHVPS Return true if decoded successfully. More...
 

Protected Attributes

DtFomClassMgrmyFomMgr
 
MAKRti::DtString myClassName
 
DtInteractionClassHandle myClassHandle
 
DtPhvpsmyParameters
 
RTI_API::ParameterHandleValueMap myValueMap
 
DtParameterHandle myHandleTargetFederate
 Parameter handle. More...
 
DtParameterHandle myHandleTestId
 Parameter handle. More...
 
DtParameterHandle myHandlePayload
 Parameter handle. More...
 
DtFederateHandle myTargetFederate
 Parameter value. More...
 
MAKRti::DtU32 myTestId
 Parameter value. More...
 
MAKRti::DtU32 myPayloadSize
 Parameter value. More...
 

Private Member Functions

 DtTestInteraction (DtTestInteraction const &orig)
 Copy Constructor - not allowed. More...
 
DtTestInteractionoperator= (DtTestInteraction const &orig)
 Assignment operator - not allowed. More...
 

Detailed Description

DtTestInteraction holds the data needed to send a test interaction An instance of this interaction be used to both send and receive interaction data.

To send data, the parameter values are set using accessors and the parameter handle value pair set (PHVPS) can then be accessed. To receive data, a PHVPS is given to the interaction and the values are decoded into the interaction's data members.

Constructor & Destructor Documentation

DtTestInteraction::DtTestInteraction ( DtFomClassMgr fomMgr,
MAKRti::DtString  className 
)

Constructor.

virtual DtTestInteraction::~DtTestInteraction ( )
virtual

Destructor.

DtTestInteraction::DtTestInteraction ( DtTestInteraction const &  orig)
private

Copy Constructor - not allowed.

Member Function Documentation

virtual DtInteractionClassHandle DtTestInteraction::classHandle ( ) const
virtual

Return the interaction class handle.

virtual const MAKRti::DtString& DtTestInteraction::className ( ) const
virtual

Return the interaction class name.

virtual bool DtTestInteraction::decodePayload ( const DtPhvps parameters,
int  index 
)
protectedvirtual

Decode payload from given parameters into this interaction Returns true if decoded successfully.

virtual bool DtTestInteraction::decodeTargetFederate ( const DtPhvps parameters,
int  index 
)
protectedvirtual

Decode target federate from given parameters into this interaction Return true if decoded successfully.

virtual bool DtTestInteraction::decodeTestId ( const DtPhvps parameters,
int  index 
)
protectedvirtual

Decode test id from given parameters into this interaction Return true if decoded successfully.

static bool DtTestInteraction::decodeU32 ( const DtPhvps parameters,
int  index,
MAKRti::DtU32 &  value 
)
staticprotected

Decode a 32 bit unsigned int from the given PHVPS Return true if decoded successfully.

static bool DtTestInteraction::decodeU64 ( const DtPhvps parameters,
int  index,
MAKRti::DtU64 &  value 
)
staticprotected

Decode a 64 bit unsigned int from the given PHVPS Return true if decoded successfully.

virtual void DtTestInteraction::encodePayload ( )
protectedvirtual

Encode payload into phvps.

virtual void DtTestInteraction::encodeTargetFederate ( )
protectedvirtual

Encode target federate value into PHVPS.

virtual void DtTestInteraction::encodeTestId ( )
protectedvirtual

Encode test id value into PHVPS.

DtTestInteraction& DtTestInteraction::operator= ( DtTestInteraction const &  orig)
private

Assignment operator - not allowed.

virtual const DtPhvps& DtTestInteraction::parameters ( )
pure virtual

Return the parameter handle value pair set Calling this accessor results in the encoding of member data into the PHVPS.

Implemented in DtLatencyTestInteraction.

virtual unsigned int DtTestInteraction::payloadSize ( ) const
virtual

Get payload size.

virtual bool DtTestInteraction::setFromParameters ( const DtPhvps phvps)
pure virtual

Initialize this interaction using the given parameters Return true if parameters were set successfully.

Implemented in DtLatencyTestInteraction.

virtual void DtTestInteraction::setPayloadSize ( unsigned int  payload)
virtual

Set payload size.

virtual void DtTestInteraction::setTargetFederate ( DtFederateHandle  handle)
virtual

set interaction target federate handle parameter

virtual void DtTestInteraction::setTestId ( unsigned int  id)
virtual

set test id parameter

virtual void DtTestInteraction::setTransportType ( MAKRti::DtTransportType  transport)
virtual

set transport of parameters.

virtual DtFederateHandle DtTestInteraction::targetFederate ( ) const
virtual

get interaction target federate handle parameter

virtual MAKRti::DtU32 DtTestInteraction::testId ( ) const
virtual

get test id parameter

Member Data Documentation

DtInteractionClassHandle DtTestInteraction::myClassHandle
protected
MAKRti::DtString DtTestInteraction::myClassName
protected
DtFomClassMgr* DtTestInteraction::myFomMgr
protected
DtParameterHandle DtTestInteraction::myHandlePayload
protected

Parameter handle.

DtParameterHandle DtTestInteraction::myHandleTargetFederate
protected

Parameter handle.

DtParameterHandle DtTestInteraction::myHandleTestId
protected

Parameter handle.

DtPhvps* DtTestInteraction::myParameters
protected
MAKRti::DtU32 DtTestInteraction::myPayloadSize
protected

Parameter value.

DtFederateHandle DtTestInteraction::myTargetFederate
protected

Parameter value.

MAKRti::DtU32 DtTestInteraction::myTestId
protected

Parameter value.

RTI_API::ParameterHandleValueMap DtTestInteraction::myValueMap
protected
const MAKRti::DtString DtTestInteraction::theNamePayload
static

Parameter name.

const MAKRti::DtString DtTestInteraction::theNameTargetFederate
static

Parameter name.

const MAKRti::DtString DtTestInteraction::theNameTestId
static

Parameter name.


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

Document ID: Generated on Wed Jul 8 16:20:32 EDT 2026 from SVN revision 291616
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)