VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
remoteSensorSpotReportReceiver.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 
10 #pragma once
11 
13 
15 
22 {
23 private:
25 
30 
31 public:
32 
36  DtVrfObject* owner,
37  DtSimManager* simManager,
38  DtComponentDescriptor* desc = 0,
39  DtReaderWriterRegistry* parentRegistry = 0);
40 
43 
44  virtual bool init();
45 
48  virtual const char* type() const;
49 
50  virtual void tick();
51 
55  static DtSimComponent * creator(const DtString& name,
56  DtVrfObject* owner,
57  DtSimManager* simManager,
58  DtComponentDescriptor* desc = 0,
59  DtReaderWriterRegistry* parentRegistry = 0);
60 
61 
62 protected:
63 
65  virtual void initializeCallbacks(bool);
66 
72  virtual DtObjectSensorPSR* createPSR();
73 
75  virtual void processSimReportCollection(const DtVrfObjectMessage* msg);
76 
78  static void stopSpottingReportCallback(const DtVrfObjectMessage* msg, void* usr);
79 
81  virtual void processStopSpottingReport(const DtVrfObjectMessage* msg);
82 
86  virtual bool mergeSpotReportWithCurrentData(const DtSpotReport* spotReport);
87 
91  virtual void setContactSource(DtSpotReport& spotReport);
92 
96  virtual bool pruneOldReports();
97 
100  virtual void checkRemoteSensorStatus();
101 
104  virtual bool spotterEnabled(const DtUUID& remoteSensorObject);
105 
107  virtual void processSetRemoteSensor(DtSimMessage* msg);
108 
110  static void setRemoteSensorCallback(DtSimMessage* msg, void* usr);
111 
112 protected:
113 
120  std::set<DtUUID> myDisabledSpotterList;
121 
122 };
123 
UUID is a unique ID wrapper class.
Definition: rwUUID.h:222
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
DtRemoteSensorSpotReportReceiverPSR * myRemoteSensorSpotReportRcvrProcessState
Container for state data associated with this component.
Definition: remoteSensorSpotReportReceiver.h:116
virtual void tick()
This gives the thread of control to the component.
Instances of DtObjectSensorPSR are used to hold the shared/checkpointable state data for the DtRemote...
Definition: remoteSensorSpotReportReceiverPSR.h:22
DtSpotReportReceiver; listens for and tracks spot report messages Developer Description: DtSpotReport...
Definition: spotReportReceiver.h:34
virtual bool mergeSpotReportWithCurrentData(const DtSpotReport *spotReport)
Merges data from the specified spot report with the current list of contacts.
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
Definition: readerWriterRegistry.h:39
virtual void initializeCallbacks(bool)
Initialize spot report callbacks for spot report messages.
const DtSpotReportReceiver & operator=(const DtSpotReportReceiver &orig)
virtual void setContactSource(DtSpotReport &spotReport)
Sets the contact source to be the spot report generator rather than whatever source the detecting ent...
File: simMsg.h.
Definition: simMessage.h:35
static DtSimComponent * creator(const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
virtual bool pruneOldReports()
Looks though the current spot reports and removes any that are beyond the age limit.
The base class for all messages to/from a specific DtVrfObject.
Definition: vrfObjectMessage.h:30
virtual const char * type() const
Returns a string identifies the class type of component.
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
virtual void processSimReportCollection(const DtVrfObjectMessage *msg)
DtRemoteSensorSpotReportReceiver; A DtSpotReportReceiver that listens for and tracks spot report mess...
Definition: remoteSensorSpotReportReceiver.h:21
virtual bool init()
Calls createPorts and createPortGroups Initializes myLastTickSimTime.
std::set< DtUUID > myDisabledSpotterList
Tracks remote sensor entities that have been disabled (e.g.
Definition: remoteSensorSpotReportReceiver.h:120
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
virtual DtObjectSensorPSR * createPSR()
Creates myProcessState data member, and adds it to our process state repository manager.
DtSpotReport; subclass of DtSimReport.
Definition: spotReport.h:35
Definition: objectSensorPSR.h:30

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)