MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simpleTimeInteraction1516e.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2010 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: simpleTimeInteraction1516e.h,v $ $Revision: 1.0 $ $State: Exp $
7 *******************************************************************************/
8 #ifndef _INTERACTIONDEFINITION_
9 #define _INTERACTIONDEFINITION_
10 
11 // A simple container class for an interaction event
12 #include <map>
13 #include <string>
14 #include <RTI/RTI1516.h>
16 #include "simpleTimeStringUtil.h"
17 
18 // An interactionEvent object encapsulates the contents of a
19 // receiveInteraction callback. Note, that not all contents of the
20 // callback are stored, only those required for our specific application.
21 
22 // That information can then be stored and later retrieved to be processed.
23 class interactionEvent
24 {
25 public:
27 
28 
29  interactionEvent(const rti1516e::InteractionClassHandle theHandle,
31  const rti1516e::VariableLengthData& userSuppliedTag,
32  const rti1516e::OrderType sentOrder,
33  const rti1516e::TransportationType theType,
34  const rti1516e::LogicalTime& fedTime,
35  const rti1516e::OrderType receivedOrder,
36  rti1516e::MessageRetractionHandle theRetractionHandle,
37  const rti1516e::SupplementalReceiveInfo theReceiveInfo,
38  interaction_type theInteractionType = Unknown
39  );
40 
41  interactionEvent(const rti1516e::InteractionClassHandle theHandle,
43  const rti1516e::VariableLengthData& userSuppliedTag,
44  const rti1516e::OrderType sentOrder,
45  const rti1516e::TransportationType theType,
46  const rti1516e::LogicalTime& fedTime,
47  const rti1516e::OrderType receivedOrder,
48  const rti1516e::SupplementalReceiveInfo theReceiveInfo,
49  interaction_type theInteractionType = Unknown
50  );
51  interactionEvent(const rti1516e::InteractionClassHandle theHandle,
53  const rti1516e::VariableLengthData& userSuppliedTag,
54  const rti1516e::OrderType sentOrder,
55  const rti1516e::TransportationType theType,
56  const rti1516e::SupplementalReceiveInfo theReceiveInfo,
57  interaction_type theInteractionType = Unknown
58  );
59 
60 
62 
63  rti1516e::InteractionClassHandle getHandle();
64  // const std::map<rti1516e::ParameterHandle, std::string>& getPhvps();
65  bool isFireInteraction();
66  bool isDetonateInteraction();
67  const std::string& getFedTime();
68  const std::string& getTag();
69  const rti1516e::MessageRetractionHandle& getRetractionHandle();
71  const rti1516e::SupplementalReceiveInfo getReceiveInfo();
72 
73 private:
74  rti1516e::InteractionClassHandle myHandle;
75  std::map<rti1516e::ParameterHandle, std::string> myPhvps;
76  std::string myFedTime;
77  std::string myTag;
78  rti1516e::MessageRetractionHandle myRetractionHandle;
80  rti1516e::SupplementalReceiveInfo myReceiveInfo;
81 
82 };
83 #endif
84 
85 
A convenience header provided for developers that would like to include everything all at once...
OrderType
Definition: datatypes.pb.h:472
int getTypeOfInteraction()
const std::string & getTag()
Definition: simpleTimeInteraction13.h:27
TransportationType
Definition: rtiAmbassadorFedProBase.h:43
Definition: simpleTimeInteraction13.h:23
int myInteractionType
Definition: simpleTimeInteraction13.h:59
const rti1516e::SupplementalReceiveInfo getReceiveInfo()
RTI::EventRetractionHandle getRetractionHandle()
const std::string & getFedTime()
std::map< rti1516e::ParameterHandle, std::string > myPhvps
Definition: simpleTimeInteraction1516e.h:75
rti1516e::InteractionClassHandle myHandle
Definition: simpleTimeInteraction1516e.h:74
std::string myTag
Definition: simpleTimeInteraction13.h:58
std::string myFedTime
Definition: simpleTimeInteraction13.h:57
rti1516e::SupplementalReceiveInfo myReceiveInfo
Definition: simpleTimeInteraction1516e.h:80
std::map< ParameterHandle, VariableLengthData > ParameterHandleValueMap
Definition: Typedefs.h:41
interaction_type
Definition: simpleTimeInteraction13.h:27
Definition: simpleTimeInteraction13.h:27
interactionEvent(RTI::InteractionClassHandle theHandle, const RTI::ParameterHandleValuePairSet &pvhps, const RTI::FedTime &fedTime, const char *tag, interaction_type theInteractionType=Unknown)
bool isFireInteraction()
RTI::InteractionClassHandle getHandle()
rti1516e::MessageRetractionHandle myRetractionHandle
Definition: simpleTimeInteraction1516e.h:78
Definition: simpleTimeInteraction13.h:27
This file contains the rti1516_2025::RTIambassadorFactory which can be used to make an implementation...
bool isDetonateInteraction()

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)