MAK RTIspy API Documentation for HLA 1.3
 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>
15 #include <RTI/RTIambassadorFactory.h>
16 #include "simpleTimeStringUtil.h"
17 
18 using namespace rti1516e;
19 
20 // An interactionEvent object encapsulates the contents of a
21 // receiveInteraction callback. Note, that not all contents of the
22 // callback are stored, only those required for our specific application.
23 
24 // That information can then be stored and later retrieved to be processed.
25 class interactionEvent
26 {
27 public:
28  enum interaction_type{ Unknown, FireType, DetonationType };
29 
30 
32  const rti1516e::ParameterHandleValueMap& pvhps,
33  const rti1516e::VariableLengthData& userSuppliedTag,
34  const rti1516e::OrderType sentOrder,
35  const rti1516e::TransportationType theType,
36  const rti1516e::LogicalTime& fedTime,
37  const rti1516e::OrderType receivedOrder,
38  rti1516e::MessageRetractionHandle theRetractionHandle,
39  const SupplementalReceiveInfo theReceiveInfo,
40  interaction_type theInteractionType = Unknown
41  );
42 
44  const rti1516e::ParameterHandleValueMap& pvhps,
45  const rti1516e::VariableLengthData& userSuppliedTag,
46  const rti1516e::OrderType sentOrder,
47  const rti1516e::TransportationType theType,
48  const rti1516e::LogicalTime& fedTime,
49  const rti1516e::OrderType receivedOrder,
50  const SupplementalReceiveInfo theReceiveInfo,
51  interaction_type theInteractionType = Unknown
52  );
54  const rti1516e::ParameterHandleValueMap& pvhps,
55  const rti1516e::VariableLengthData& userSuppliedTag,
56  const rti1516e::OrderType sentOrder,
57  const rti1516e::TransportationType theType,
58  const SupplementalReceiveInfo theReceiveInfo,
59  interaction_type theInteractionType = Unknown
60  );
61 
62 
64 
66  // const std::map<rti1516e::ParameterHandle, std::string>& getPhvps();
67  bool isFireInteraction();
68  bool isDetonateInteraction();
69  const std::string& getFedTime();
70  const std::string& getTag();
71  const rti1516e::MessageRetractionHandle& getRetractionHandle();
72  int getTypeOfInteraction();
73  const SupplementalReceiveInfo getReceiveInfo();
74 
75 private:
77  std::map<rti1516e::ParameterHandle, std::string> myPhvps;
78  std::string myFedTime;
79  std::string myTag;
80  rti1516e::MessageRetractionHandle myRetractionHandle;
81  int myInteractionType;
82  SupplementalReceiveInfo myReceiveInfo;
83 
84 };
85 #endif
86 
87 

Document ID: Generated on Mon Jul 9 10:30:41 EDT 2018 from SVN revision 190224
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)