VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfmodel
spotReportReceiver.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2007 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
10
11
#pragma once
12
13
#include "
vrfobjcore/simCmpnt.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
DtString
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);
95
virtual
void
processSpotReport(
const
DtVrfObjectMessage
* msg);
97
103
virtual
bool
mergeSpotReportWithCurrentData(
const
DtSpotReport
* spotReport);
104
108
virtual
bool
pruneOldReports();
109
110
protected
:
111
113
114
115
116
117
118
119
120
121
DtSensorContactListOutputPort
*
myContactsListPort
;
123
126
DtObjectSensorPSR
*
myProcessState
;
127
128
DtObjectSensorMonitor
*
myMonitor
;
129
bool
myContactsChanged
;
130
const
DtSpotReportReceiverDescriptor
*
mySpotReportReceiverDescriptor
;
131
};
132
Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)