MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simpleTimeInteraction1516_2025.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2025 MAK Technologies
3 ** All rights reserved.
4 *******************************************************************************/
5 #pragma once
6 
7 // A simple container class for an interaction event
8 #include <map>
9 #include <string>
10 #include <RTI/RTI1516.h>
11 #include <RTI/RTIambassadorFactory.h>
12 #include "simpleTimeStringUtil.h"
13 
14 // An interactionEvent object encapsulates the contents of a
15 // receiveInteraction callback. Note, that not all contents of the
16 // callback are stored, only those required for our specific application.
17 
18 // That information can then be stored and later retrieved to be processed.
19 class interactionEvent
20 {
21 public:
23 
24 
26  rti1516_2025::InteractionClassHandle const& theInteraction,
27  rti1516_2025::ParameterHandleValueMap const& theParameterValues,
28  rti1516_2025::VariableLengthData const& theUserSuppliedTag,
29  rti1516_2025::TransportationTypeHandle const& theType,
30  rti1516_2025::FederateHandle const& theProducingFederate,
31  rti1516_2025::RegionHandleSet const* theOptionalSentRegions,
32  rti1516_2025::LogicalTime const& theTime,
33  rti1516_2025::OrderType theSentOrder,
34  rti1516_2025::OrderType theReceivedOrder,
35  rti1516_2025::MessageRetractionHandle const* theOptionalRetraction,
36  interaction_type theInteractionType = Unknown);
37 
39  rti1516_2025::ParameterHandleValueMap const& theParameterValues,
40  rti1516_2025::VariableLengthData const& theUserSuppliedTag,
41  rti1516_2025::TransportationTypeHandle const& theType,
42  rti1516_2025::FederateHandle const& theProducingFederate,
43  rti1516_2025::RegionHandleSet const* theOptionalSentRegions,
44  interaction_type theInteractionType = Unknown);
45 
46 
48 
49  int getTypeOfInteraction() const;
51  // const std::map<rti1516_2025::ParameterHandle, std::string>& getPhvps();
52  bool isFireInteraction() const;
53  bool isDetonateInteraction() const;
54  const std::string& getTag() const;
56  rti1516_2025::RegionHandleSet const& getSentRegions() const;
57  bool getHasRegions() const;
58  std::string const& getFedTime() const;
60  rti1516_2025::MessageRetractionHandle const& getRetractionHandle() const;
61 
62 private:
65  std::map<rti1516_2025::ParameterHandle, std::string> myPhvps;
66  std::string myTag;
68  rti1516_2025::RegionHandleSet mySentRegions;
70  std::string myFedTime;
72  rti1516_2025::MessageRetractionHandle myRetractionHandle;
73 
74 };
OrderType
Definition: datatypes.pb.h:472
int getTypeOfInteraction()
const std::string & getTag()
Definition: simpleTimeInteraction13.h:27
ULong InteractionClassHandle
Definition: RTItypes13.h:106
Definition: simpleTimeInteraction13.h:23
rti1516_2025::RegionHandleSet mySentRegions
Definition: simpleTimeInteraction1516_2025.h:68
int myInteractionType
Definition: simpleTimeInteraction13.h:59
rti1516_2025::FederateHandle myProducingFederate
Definition: simpleTimeInteraction1516_2025.h:67
RTI::EventRetractionHandle getRetractionHandle()
rti1516_2025::MessageRetractionHandle myRetractionHandle
Definition: simpleTimeInteraction1516_2025.h:72
const std::string & getFedTime()
std::map< rti1516_2025::ParameterHandle, std::string > myPhvps
Definition: simpleTimeInteraction1516_2025.h:65
bool myHasSentRegions
Definition: simpleTimeInteraction1516_2025.h:69
std::string myTag
Definition: simpleTimeInteraction13.h:58
std::string myFedTime
Definition: simpleTimeInteraction13.h:57
rti1516_2025::OrderType getReceiveOrder() const
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)
ULong FederateHandle
Definition: RTItypes13.h:120
bool getHasRegions() const
rti1516_2025::OrderType myReceiveOrder
Definition: simpleTimeInteraction1516_2025.h:71
bool isFireInteraction()
rti1516_2025::RegionHandleSet const & getSentRegions() const
RTI::InteractionClassHandle getHandle()
rti1516_2025::FederateHandle const & getProducingFederate() const
Definition: simpleTimeInteraction13.h:27
rti1516_2025::InteractionClassHandle myHandle
Definition: simpleTimeInteraction1516_2025.h:64
bool isDetonateInteraction()

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)