6 #ifndef interactionHLA_H_
7 #define interactionHLA_H_
50 virtual const RTI::ParameterHandleValueMap& phvm()
const = 0;
53 virtual const RTI::ParameterHandleValuePairSet& phvps()
const = 0;
58 virtual void setFromPhvm(
const RTI::ParameterHandleValueMap& pvList)=0;
61 virtual void setFromPhvps(
const RTI::ParameterHandleValuePairSet& pvList)=0;
77 virtual RTI::InteractionClassHandle interactionClassHandle()
const;
80 virtual char* interactionClassName()
const;
83 virtual int numParameters()
const;
87 virtual bool neededByFederation()
const;
90 virtual void print()
const;
93 virtual void printToStream(std::ostream& stream)
const;
96 virtual void printHeader()
const;
99 virtual void printHeaderToStream(std::ostream& stream)
const;
102 virtual void printData()
const;
105 virtual void printDataToString(
DtString& buff)
const;
108 virtual void printDataToStream(std::ostream& stream)
const;
111 virtual void printParams(
bool withHex)
const;
114 virtual void printParamsToStream(std::ostream& stream,
bool withHex)
const;
117 virtual const char* name()
const = 0;
127 virtual bool customTagSet()
const;
131 virtual void setCustomTag(
const RTI::VariableLengthData& a_tag);
134 virtual void setTag(
const RTI::VariableLengthData& tag);
136 virtual const RTI::VariableLengthData &tag()
const;
138 virtual void setCustomTag(
const DtString& a_tag);
141 virtual void setTag(
const DtString& tag);
143 virtual const DtString& tag()
const;
152 virtual const RTI::RegionHandleSet* conveyedRegion()
const;
153 virtual void setConveyedRegion(
const RTI::RegionHandleSet* sentRegionHandleSet);
155 virtual const RTI::Region* conveyedRegion()
const;
156 virtual void setConveyedRegion(
const RTI::Region* region);
159 #if DtHLA_1516_EVOLVED
160 virtual void setProducingFederateHandle(RTI::FederateHandle federateHandle);
168 virtual RTI::FederateHandle producingFederateHandle()
const;
172 virtual const DtString& producingFederateName()
const;
179 virtual void setTimeStamp(
DtTime time,
184 virtual DtTime timeStamp()
const;
193 virtual DtTime guessTimeValid(
DtTime referenceTime)
const;
202 virtual void setFedTime(
const RTI::FedTime &ft);
211 virtual const RTI::FedTime *fedTime()
const;
215 virtual void setMessageRetractionHandle(
const RTI::MessageRetractionHandle &handle);
220 virtual RTI::MessageRetractionHandle messageRetractionHandle()
const;
223 virtual void setEventRetractionHandle(
const RTI::EventRetractionHandle &handle);
228 virtual RTI::EventRetractionHandle eventRetractionHandle()
const;
237 static void setTagIsAsciiTime(
bool val);
238 static bool tagIsAsciiTime();
261 virtual const char* interactionClassToUse(
DtExerciseConn* exConn)
const;
267 virtual RTI::ParameterHandleValueMap &privPvList()
const;
269 virtual RTI::ParameterHandleValuePairSet* privPvList()
const;
290 RTI::ParameterHandleValueMap myPvList;
291 RTI::MessageRetractionHandle myRetractionHandle;
292 RTI::VariableLengthData myTag;
293 const RTI::RegionHandleSet* myConveyedRegion;
294 #if DtHLA_1516_EVOLVED
295 mutable DtString myProducingFederateName;
296 RTI::FederateHandle myProducingFederateHandle;
317 inline RTI::InteractionClassHandle
361 inline void DtInteraction::setMessageRetractionHandle(
362 const RTI::MessageRetractionHandle &handle)
367 inline RTI::MessageRetractionHandle DtInteraction::messageRetractionHandle()
const
374 const RTI::EventRetractionHandle &handle)
DtInteraction is an abstract base class for representing HLA interactions (or events) (as opposed to ...
Definition: interactionHLA.h:33
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnHLA.h:61
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
Contains the DtString class declaration.
DtExerciseConn * myExConn
Definition: interactionHLA.h:284
std::ostream & operator<<(std::ostream &os, const Dt3dChord &chord)
Instances of DtInterClassDesc are used to represent HLA Object and Interaction classes.
Definition: interClassDesc.h:33
This file contains the declaration of DtClock and DtTime.
RTI::EventRetractionHandle myRetractionHandle
Definition: interactionHLA.h:303
Definition: vlTimeStampType.h:18
virtual DtInterClassDesc * classDesc() const
Get the current class descriptor we're using for this interaction.
Definition: interactionHLA.h:343
const RTI::Region * myConveyedRegion
Definition: interactionHLA.h:304
DtTimeStampType myTimeType
Definition: interactionHLA.h:286
virtual RTI::InteractionClassHandle interactionClassHandle() const
Get the interaction class handle. Returns 0 if no classDesc.
Definition: interactionHLA.h:318
virtual int numParameters() const
Get the number of parameters associated with this object.
Definition: interClassDesc.h:250
virtual char * interactionClassName() const
Get the interaction class name. Returns NULL if no classDesc.
Definition: interactionHLA.h:323
virtual DtExerciseConn * exerciseConn() const
Get the current exercise connection.
Definition: interactionHLA.h:338
This file contains the declaration of DtInterClassDesc.
static bool theTagIsAsciiTime
Definition: interactionHLA.h:312
virtual void printData() const
Print the interaction's data to DtInfo.
Definition: interactionHLA.h:348
DtList is deprecated, please use std::list<T>.
Definition: vlList.h:71
void(* DtReceiveInteractionCb)(DtInteraction *inter, void *usr)
Definition: receiveInteractionCbInfo.h:23
virtual RTI::EventRetractionHandle eventRetractionHandle() const
Get the event retraction handle. For more info see setEventRetractionHandle.
Definition: interactionHLA.h:379
#define LogicalTime
Definition: hlaLogicalTime.h:18
virtual void printDataToStream(std::ostream &stream) const
Print the interaction's data to the stream.
Definition: interactionHLA.h:356
bool myCustomTagSet
Definition: interactionHLA.h:307
DtBoost::shared_ptr< DtDDMRegion > DtDDMRegionSP
Definition: region13.h:31
DtInteraction * self() const
Get rid of const-ness on the "this" pointer in order to access non-const functions from const member ...
Definition: interactionHLA.h:333
DtInterClassDesc * myClassDesc
Definition: interactionHLA.h:283
int myPvListMaxSize
Definition: interactionHLA.h:301
DtTimeStampType
Definition: vlTimeStampType.h:16
RTI::ParameterHandleValuePairSet * myPvList
Definition: interactionHLA.h:300
Instances of DtString are used to represent strings.
Definition: vlString.h:29
RTI::FedTime * myFedTime
Definition: interactionHLA.h:302
virtual int numParameters() const
Get the number of parameters. Returns 0 if no classDesc.
Definition: interactionHLA.h:328
virtual RTI::InteractionClassHandle handle() const
Get the object's class handle.
Definition: interClassDesc.h:245
virtual void setEventRetractionHandle(const RTI::EventRetractionHandle &handle)
Get/Set the EventRetractionHandle.
Definition: interactionHLA.h:373
DtTime myTime
Definition: interactionHLA.h:285
DtString myTag
Definition: interactionHLA.h:299
virtual void printDataToString(DtString &buff) const
Print the interaction's data to the string provided.
Definition: interactionHLA.h:352
virtual const char * name() const
Get the object's class name.
Definition: interClassDesc.h:282