MAK RTIspy API Documentation for HLA Evolved
 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>
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 rti1516::InteractionClassHandle theHandle,
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 
40  interactionEvent(const rti1516::InteractionClassHandle theHandle,
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  );
49  interactionEvent(const rti1516::InteractionClassHandle theHandle,
51  const rti1516::VariableLengthData& userSuppliedTag,
52  const rti1516::OrderType sentOrder,
53  const rti1516::TransportationType theType,
54  interaction_type theInteractionType = Unknown
55  );
56 
57 
59 
60  rti1516::InteractionClassHandle getHandle();
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:
70  rti1516::InteractionClassHandle myHandle;
71  std::map<rti1516::ParameterHandle, std::string> myPhvps;
72  std::string myFedTime;
73  std::string myTag;
74  rti1516::MessageRetractionHandle myRetractionHandle;
76 
77 };
78 #endif
A convenience header provided for developers that would like to include everything all at once...
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
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
This file contains the rti1516_2025::RTIambassadorFactory which can be used to make an implementation...
bool isDetonateInteraction()
std::map< ParameterHandle, VariableLengthData > ParameterHandleValueMap
Definition: Typedefs.h:49

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)