MAK RTIspy API Documentation for HLA 1516
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
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 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
)