![]() |
MAK RTIspy API Documentation for HLA Evolved
|
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. | |
| virtual | ~DtTestInteraction () |
| Destructor. | |
| virtual const MAKRti::DtString & | className () const |
| Return the interaction class name. | |
| virtual DtInteractionClassHandle | classHandle () const |
| Return the interaction class handle. | |
| virtual const DtPhvps & | parameters ()=0 |
| Return the parameter handle value pair set Calling this accessor results in the encoding of member data into the PHVPS. | |
| virtual bool | setFromParameters (const DtPhvps &phvps)=0 |
| Initialize this interaction using the given parameters Return true if parameters were set successfully. | |
| virtual DtFederateHandle | targetFederate () const |
| get interaction target federate handle parameter | |
| virtual void | setTargetFederate (DtFederateHandle handle) |
| set interaction target federate handle parameter | |
| virtual void | setTransportType (MAKRti::DtTransportType transport) |
| set transport of parameters. | |
| virtual void | setPayloadSize (unsigned int payload) |
| Set payload size. | |
| virtual unsigned int | payloadSize () const |
| Get payload size. | |
| virtual MAKRti::DtU32 | testId () const |
| get test id parameter | |
| virtual void | setTestId (unsigned int id) |
| set test id parameter | |
Static Public Attributes | |
| static const MAKRti::DtString | theNameTargetFederate |
| Parameter name. | |
| static const MAKRti::DtString | theNameTestId |
| Parameter name. | |
| static const MAKRti::DtString | theNamePayload |
| Parameter name. | |
Protected Member Functions | |
| virtual void | encodeTargetFederate () |
| Encode target federate value into PHVPS. | |
| virtual void | encodeTestId () |
| Encode test id value into PHVPS. | |
| virtual void | encodePayload () |
| Encode payload into phvps. | |
| virtual bool | decodeTargetFederate (const DtPhvps ¶meters, int index) |
| Decode target federate from given parameters into this interaction Return true if decoded successfully. | |
| virtual bool | decodeTestId (const DtPhvps ¶meters, int index) |
| Decode test id from given parameters into this interaction Return true if decoded successfully. | |
| virtual bool | decodePayload (const DtPhvps ¶meters, int index) |
| Decode payload from given parameters into this interaction Returns true if decoded successfully. | |
Static Protected Member Functions | |
| static bool | decodeU32 (const DtPhvps ¶meters, int index, MAKRti::DtU32 &value) |
| Decode a 32 bit unsigned int from the given PHVPS Return true if decoded successfully. | |
| static bool | decodeU64 (const DtPhvps ¶meters, int index, MAKRti::DtU64 &value) |
| Decode a 64 bit unsigned int from the given PHVPS Return true if decoded successfully. | |
Protected Attributes | |
| DtFomClassMgr * | myFomMgr |
| MAKRti::DtString | myClassName |
| DtInteractionClassHandle | myClassHandle |
| DtPhvps * | myParameters |
| DtParameterHandle | myHandleTargetFederate |
| Parameter handle. | |
| DtParameterHandle | myHandleTestId |
| Parameter handle. | |
| DtParameterHandle | myHandlePayload |
| Parameter handle. | |
| DtFederateHandle | myTargetFederate |
| Parameter value. | |
| MAKRti::DtU32 | myTestId |
| Parameter value. | |
| MAKRti::DtU32 | myPayloadSize |
| Parameter value. | |
Private Member Functions | |
| DtTestInteraction (DtTestInteraction const &orig) | |
| Copy Constructor - not allowed. | |
| DtTestInteraction & | operator= (DtTestInteraction const &orig) |
| Assignment operator - not allowed. | |
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.
| DtTestInteraction::DtTestInteraction | ( | DtFomClassMgr * | fomMgr, |
| MAKRti::DtString | className | ||
| ) |
Constructor.
|
virtual |
Destructor.
|
private |
Copy Constructor - not allowed.
|
virtual |
Return the interaction class handle.
|
virtual |
Return the interaction class name.
|
protectedvirtual |
Decode payload from given parameters into this interaction Returns true if decoded successfully.
|
protectedvirtual |
Decode target federate from given parameters into this interaction Return true if decoded successfully.
|
protectedvirtual |
Decode test id from given parameters into this interaction Return true if decoded successfully.
|
staticprotected |
Decode a 32 bit unsigned int from the given PHVPS Return true if decoded successfully.
|
staticprotected |
Decode a 64 bit unsigned int from the given PHVPS Return true if decoded successfully.
|
protectedvirtual |
Encode payload into phvps.
|
protectedvirtual |
Encode target federate value into PHVPS.
|
protectedvirtual |
Encode test id value into PHVPS.
|
private |
Assignment operator - not allowed.
|
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 |
Get payload size.
|
pure virtual |
Initialize this interaction using the given parameters Return true if parameters were set successfully.
Implemented in DtLatencyTestInteraction.
|
virtual |
Set payload size.
|
virtual |
set interaction target federate handle parameter
|
virtual |
set test id parameter
|
virtual |
set transport of parameters.
|
virtual |
get interaction target federate handle parameter
|
virtual |
get test id parameter
|
protected |
|
protected |
|
protected |
|
protected |
Parameter handle.
|
protected |
Parameter handle.
|
protected |
Parameter handle.
|
protected |
|
protected |
Parameter value.
|
protected |
Parameter value.
|
protected |
Parameter value.
|
static |
Parameter name.
|
static |
Parameter name.
|
static |
Parameter name.