MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simpleTimeInteraction1516.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2006 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: simpleTimeInteraction1516.h,v $ $Revision: 1.2 $ $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>
15 #include <RTI/RTIambassadorFactory.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 
30  const rti1516::ParameterHandleValueMap& pvhps,
31  const rti1516::VariableLengthData& userSuppliedTag,
32  const rti1516::OrderType sentOrder,
33  const rti1516::TransportationType theType,
34  const rti1516::LogicalTime& fedTime,
35  const rti1516::OrderType receivedOrder,
36  rti1516::MessageRetractionHandle theRetractionHandle,
37  interaction_type theInteractionType = Unknown
38  );
39 
41  const rti1516::ParameterHandleValueMap& pvhps,
42  const rti1516::VariableLengthData& userSuppliedTag,
43  const rti1516::OrderType sentOrder,
44  const rti1516::TransportationType theType,
45  const rti1516::LogicalTime& fedTime,
46  const rti1516::OrderType receivedOrder,
47  interaction_type theInteractionType = Unknown
48  );
50  const rti1516::ParameterHandleValueMap& pvhps,
51  const rti1516::VariableLengthData& userSuppliedTag,
52  const rti1516::OrderType sentOrder,
53  const rti1516::TransportationType theType,
54  interaction_type theInteractionType = Unknown
55  );
56 
57 
59 
61 // const std::map<rti1516::ParameterHandle, std::string>& getPhvps();
62  bool isFireInteraction();
63  bool isDetonateInteraction();
64  const std::string& getFedTime();
65  const std::string& getTag();
66  const rti1516::MessageRetractionHandle& getRetractionHandle();
68 
69 private:
71  std::map<rti1516::ParameterHandle, std::string> myPhvps;
72  std::string myFedTime;
73  std::string myTag;
74  rti1516::MessageRetractionHandle myRetractionHandle;
76 
77 };
78 #endif
OrderType
Definition: datatypes.pb.h:472
std::map< rti1516::ParameterHandle, std::string > myPhvps
Definition: simpleTimeInteraction1516.h:71
int getTypeOfInteraction()
const std::string & getTag()
Definition: simpleTimeInteraction13.h:27
ULong InteractionClassHandle
Definition: RTItypes13.h:106
TransportationType
Definition: rtiAmbassadorFedProBase.h:43
Definition: simpleTimeInteraction13.h:23
int myInteractionType
Definition: simpleTimeInteraction13.h:59
RTI::EventRetractionHandle getRetractionHandle()
const std::string & getFedTime()
std::string myTag
Definition: simpleTimeInteraction13.h:58
std::string myFedTime
Definition: simpleTimeInteraction13.h:57
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)
rti1516::MessageRetractionHandle myRetractionHandle
Definition: simpleTimeInteraction1516.h:74
bool isFireInteraction()
RTI::InteractionClassHandle getHandle()
Definition: simpleTimeInteraction13.h:27
rti1516::InteractionClassHandle myHandle
Definition: simpleTimeInteraction1516.h:70
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)