MAK RTIspy API Documentation for HLA 1.3
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 
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 
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  );
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;
83 
84 };
85 #endif
86 
87 

Document ID: Generated on Fri Mar 14 19:08:55 EDT 2014 from SVN revision 137085
Copyright © 2005-2014 VT MÄK Inc. All Rights Reserved (www.mak.com)