MAK RTIspy API Documentation for HLA 1.3
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
examples
simpletime
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
:
26
enum
interaction_type
{
Unknown
,
FireType
,
DetonationType
};
27
28
29
interactionEvent
(
const
rti1516::InteractionClassHandle
theHandle,
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
40
interactionEvent
(
const
rti1516::InteractionClassHandle
theHandle,
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
);
49
interactionEvent
(
const
rti1516::InteractionClassHandle
theHandle,
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
58
~interactionEvent
();
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
();
67
int
getTypeOfInteraction
();
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
;
75
int
myInteractionType
;
76
77
};
78
#endif
Document ID: Generated on Wed Mar 11 20:26:49 EDT 2015 from SVN revision 150939
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (
www.mak.com
)