13 #ifndef DtTestInteraction_H_
14 #define DtTestInteraction_H_
18 #include <vlutil/vlString.h>
19 #include <vlutil/vlFedTarget.h>
44 virtual const MAKRti::DtString& className()
const;
52 virtual const DtPhvps& parameters() = 0;
56 virtual bool setFromParameters(
const DtPhvps& phvps) = 0;
65 virtual void setTransportType(MAKRti::DtTransportType transport);
68 virtual void setPayloadSize(
unsigned int payload);
71 virtual unsigned int payloadSize()
const;
74 virtual MAKRti::DtU32 testId()
const;
77 virtual void setTestId(
unsigned int id);
82 virtual void encodeTargetFederate();
85 virtual void encodeTestId();
88 virtual void encodePayload();
92 static bool decodeU32(
93 const DtPhvps& parameters,
95 MAKRti::DtU32& value);
99 static bool decodeU64(
100 const DtPhvps& parameters,
102 MAKRti::DtU64& value);
106 virtual bool decodeTargetFederate(
107 const DtPhvps& parameters,
112 virtual bool decodeTestId(
113 const DtPhvps& parameters,
118 virtual bool decodePayload(
119 const DtPhvps& parameters,
132 static const MAKRti::DtString theNameTargetFederate;
145 rti1516::ParameterHandleValueMap myValueMap;
146 #elif defined(DtIFSPEC1516E)
147 rti1516e::ParameterHandleValueMap myValueMap;
static const MAKRti::DtString theNameTestId
Parameter name.
Definition: testInteraction.h:134
DtPhvps * myParameters
Definition: testInteraction.h:143
static const MAKRti::DtString theInteractionName
Definition: testInteraction.h:191
MAKRti::DtU32 myTestId
Parameter value.
Definition: testInteraction.h:160
DtInteractionClassHandle myClassHandle
Definition: testInteraction.h:142
DtLatencyTestInteraction holds the data needed to send a test latency interaction.
Definition: testInteraction.h:165
DtHandle DtInteractionClassHandle
Definition: internalTypes.h:35
MAKRti::DtString myClassName
Definition: testInteraction.h:141
DtTestInteraction & operator=(DtTestInteraction const &orig)
Assignment operator - not allowed.
virtual bool setFromParameters(const DtPhvps &phvps)=0
Initialize this interaction using the given parameters Return true if parameters were set successfull...
DtParameterHandle myHandleTestId
Parameter handle.
Definition: testInteraction.h:153
DtHandle DtFederateHandle
Definition: internalTypes.h:29
virtual const DtPhvps & parameters()=0
Return the parameter handle value pair set Calling this accessor results in the encoding of member da...
MAKRti::DtU32 myPayloadSize
Parameter value.
Definition: testInteraction.h:161
void DT_DLL_LRC addTestToFom(DtFomClassMgr &fom)
Incorporate interactions into the FOM.
DtFomClassMgr * myFomMgr
Definition: testInteraction.h:140
#define DT_DLL_LRC
Definition: rtiMsConfig.h:126
The declaration of internal types.
DtHandle DtParameterHandle
Definition: internalTypes.h:38
DtParameterHandle myDataHandle
Definition: testInteraction.h:195
DtParameterHandle myHandlePayload
Parameter handle.
Definition: testInteraction.h:154
static const MAKRti::DtString theNamePayload
Parameter name.
Definition: testInteraction.h:135
DtTestInteraction holds the data needed to send a test interaction An instance of this interaction be...
Definition: testInteraction.h:33