![]() |
MAK RTIspy API Documentation for HLA 1516
|
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.
References DtInteractionClassInfo::handle(), DtFomClassMgr::interactionByName(), myClassHandle, myClassName, myFomMgr, myHandlePayload, myHandleTargetFederate, myHandleTestId, myParameters, DtInteractionClassInfo::numParameters(), DtInteractionClassInfo::paramHandle(), theNamePayload, theNameTargetFederate, and theNameTestId.
|
virtual |
Destructor.
References myParameters.
|
private |
Copy Constructor - not allowed.
|
virtual |
Return the interaction class handle.
References myClassHandle.
Referenced by DtTestManager::isTestInteractionClassHandle(), DtTestManager::postJoinInit(), DtTestManager::resign(), DtTestManager::sendInteraction(), and DtTestManager::sendSingleLatencyInteraction().
|
virtual |
Return the interaction class name.
References myClassName.
|
protectedvirtual |
Decode payload from given parameters into this interaction Returns true if decoded successfully.
References myPayloadSize.
Referenced by DtLatencyTestInteraction::setFromParameters().
|
protectedvirtual |
Decode target federate from given parameters into this interaction Return true if decoded successfully.
References decodeU32(), and myTargetFederate.
Referenced by DtLatencyTestInteraction::setFromParameters().
|
protectedvirtual |
Decode test id from given parameters into this interaction Return true if decoded successfully.
References decodeU32(), and myTestId.
Referenced by DtLatencyTestInteraction::setFromParameters().
|
staticprotected |
Decode a 32 bit unsigned int from the given PHVPS Return true if decoded successfully.
Referenced by decodeTargetFederate(), and decodeTestId().
|
staticprotected |
Decode a 64 bit unsigned int from the given PHVPS Return true if decoded successfully.
|
protectedvirtual |
Encode payload into phvps.
References myHandlePayload, myParameters, and myPayloadSize.
Referenced by DtLatencyTestInteraction::parameters().
|
protectedvirtual |
Encode target federate value into PHVPS.
References myHandleTargetFederate, myParameters, and myTargetFederate.
Referenced by DtLatencyTestInteraction::parameters().
|
protectedvirtual |
Encode test id value into PHVPS.
References myHandleTestId, myParameters, and myTestId.
Referenced by DtLatencyTestInteraction::parameters().
|
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.
References myPayloadSize.
Referenced by DtTestManager::receiveInteraction(), and DtTestManager::sendSingleLatencyInteraction().
|
pure virtual |
Initialize this interaction using the given parameters Return true if parameters were set successfully.
Implemented in DtLatencyTestInteraction.
|
virtual |
Set payload size.
References myPayloadSize.
Referenced by DtTestManager::sendSingleLatencyInteraction().
|
virtual |
set interaction target federate handle parameter
References myTargetFederate.
Referenced by DtTestManager::sendSingleLatencyInteraction().
|
virtual |
set test id parameter
References myTestId.
Referenced by DtTestManager::receiveInteraction(), and DtTestManager::sendSingleLatencyInteraction().
|
virtual |
set transport of parameters.
References myParameters.
Referenced by DtTestManager::receiveInteraction(), and DtTestManager::sendSingleLatencyInteraction().
|
virtual |
get interaction target federate handle parameter
References myTargetFederate.
Referenced by DtTestManager::receiveInteraction().
|
virtual |
|
protected |
Referenced by classHandle(), and DtTestInteraction().
|
protected |
Referenced by className(), and DtTestInteraction().
|
protected |
Referenced by DtTestInteraction().
|
protected |
Parameter handle.
Referenced by DtTestInteraction(), encodePayload(), and DtLatencyTestInteraction::setFromParameters().
|
protected |
Parameter handle.
Referenced by DtTestInteraction(), encodeTargetFederate(), and DtLatencyTestInteraction::setFromParameters().
|
protected |
Parameter handle.
Referenced by DtTestInteraction(), encodeTestId(), and DtLatencyTestInteraction::setFromParameters().
|
protected |
|
protected |
Parameter value.
Referenced by decodePayload(), encodePayload(), payloadSize(), and setPayloadSize().
|
protected |
Parameter value.
Referenced by decodeTargetFederate(), encodeTargetFederate(), setTargetFederate(), and targetFederate().
|
protected |
Parameter value.
Referenced by decodeTestId(), encodeTestId(), setTestId(), and testId().
|
static |
Parameter name.
Referenced by addTestToFom(), and DtTestInteraction().
|
static |
Parameter name.
Referenced by addTestToFom(), and DtTestInteraction().
|
static |
Parameter name.
Referenced by addTestToFom(), and DtTestInteraction().