VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrfmodel
spotReportReceiver.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2013 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
10
11
#pragma once
12
13
#include "
vrfobjcore/simComponent.h
"
14
#include "
vrfmodel/vrfmodelDefines.h
"
15
16
class
DtObjectSensorPSR
;
17
class
DtObjectSensorMonitor
;
18
class
DtSensorContactListOutputPort
;
19
class
DtVrfObjectMessage
;
20
class
DtSpotReportReceiverDescriptor
;
21
class
DtSpotReport
;
22
33
class
DT_DLL_vrfmodel
DtSpotReportReceiver
:
public
DtSimComponent
34
{
35
private
:
37
38
DtSpotReportReceiver
();
39
DtSpotReportReceiver
(
const
DtSpotReportReceiver
&orig);
40
const
DtSpotReportReceiver
&
operator=
(
const
DtSpotReportReceiver
& orig);
42
43
public
:
44
47
DtSpotReportReceiver
(
const
DtString
& name,
48
DtVrfObject
* owner,
49
DtSimManager
* simManager,
50
DtComponentDescriptor
* desc = 0,
51
DtReaderWriterRegistry
* parentRegistry = 0);
52
54
virtual
~
DtSpotReportReceiver
();
55
56
virtual
bool
init
();
57
60
virtual
const
char
*
type
()
const
;
61
62
virtual
void
tick
();
63
65
virtual
bool
tickWhileDestroyed
()
const
;
66
70
static
DtSimComponent
* creator(
const
DtString
& name,
71
DtVrfObject
* owner,
72
DtSimManager
* simManager,
73
DtComponentDescriptor
* desc = 0,
74
DtReaderWriterRegistry
* parentRegistry = 0);
75
76
protected
:
77
79
virtual
bool
createPorts
();
80
86
virtual
DtObjectSensorPSR
* createPSR();
87
89
virtual
bool
createAndInitSensorMonitor();
90
92
93
static
void
spotReportCallback(
const
DtVrfObjectMessage
* msg,
void
* usr);
94
static
void
simReportCollectionCallback(
const
DtVrfObjectMessage
* msg,
void
* usr);
96
virtual
void
processSpotReport(
const
DtVrfObjectMessage
* msg);
97
virtual
void
processSimReportCollection(
const
DtVrfObjectMessage
* msg);
99
105
virtual
bool
mergeSpotReportWithCurrentData(
const
DtSpotReport
* spotReport);
106
110
virtual
bool
pruneOldReports();
111
112
protected
:
113
115
116
117
118
119
120
121
122
123
DtSensorContactListOutputPort
*
myContactsListPort
;
125
128
DtObjectSensorPSR
*
myProcessState
;
129
130
DtObjectSensorMonitor
*
myMonitor
;
131
bool
myContactsChanged
;
132
const
DtSpotReportReceiverDescriptor
*
mySpotReportReceiverDescriptor
;
133
};
134
Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)