VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
tdlContactMessageGeneratorController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
10 
15 
18 class DtVrfTDLMessage;
21 class DtRwStringList;
22 class DtSpotReport;
24 
26 {
27 protected:
28  typedef std::map<DtUUID, DtSpotReport*> SpotReportStdMap;
29 
30 private:
37 
38 public:
39 
43  DtSimManager* simManager, DtComponentDescriptor* desc=0,
44  DtReaderWriterRegistry *parentRegistry=0);
45 
48 
51  virtual const char* type() const;
52 
56  static DtSimComponent * creator(const DtString& name,
57  DtVrfObject* owner,
58  DtSimManager* simManager,
59  DtComponentDescriptor* desc = 0,
60  DtReaderWriterRegistry* parentRegistry = 0);
61 
62 protected:
64  virtual bool messageNeedsUpdate() const;
65 
67  virtual bool createPSR();
68 
70  virtual int tdlMessageType() const;
71 
74  virtual bool sendMessage();
75 
77  virtual bool checkNeedsOverlayLayerSend(const DtUUID&) const;
78  virtual bool checkNeedsOverlayLayerSend(const DtVrfObject* obj) const;
79 
81  virtual void sendRemovalMessage(const DtUUID&);
82 
84  virtual void updateOrCreateContactReportsForObjectsOnOverlayLayers(const SpotReportStdMap& currentReports,
85  const DtRwStringList& overlayLayers);
86 
88  virtual DtSpotReport* createContactReportFor(const DtVrfObject*, int) const;
89 
91  virtual void updateContactReport(DtSpotReport*, const DtVrfObject*) const;
92 
94  virtual void sendContactReport(DtSpotReport*);
95 
97  virtual bool needsContactReportHeartbeatUpdate(DtSpotReport*) const;
98 
100  virtual void sendRemoveAllContactReports();
101 
102  virtual bool isTypeAndForceForReport(const DtUUID& contact) const;
103  virtual bool isTypeAndForceForReport(const DtVrfObject* contactEntity) const;
104 
106  virtual void turnTDLMessagingOff();
107 
109  virtual DtString domainFromType(const DtEntityType&) const;
110 
111 protected:
116 };
117 
DtSensorContactInfoListChangeMonitor myContactListMonitor
Definition: tdlContactMessageGeneratorController.h:113
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
virtual bool sendMessage()
Creates and sends TDL message.
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
virtual bool messageNeedsUpdate() const
Checks to see if message needs an update. Will call needsHeartbeatUpdate.
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
This class represents the data gathered by a sensor about a particular single sensor contact...
Definition: rwSensorContactInfo.h:67
Contains the DtVrfTDLRemoveMessage class declaration.
Definition: vrfTDLRemoveMessage.h:22
DtTDLContactMessageGeneratorControllerDescriptor; descriptor for the DtTDLContactMessageGeneratorCont...
Definition: tdlContactMessageGeneratorControllerDescriptor.h:19
Definition: vrfTDLContactMessage.h:35
virtual bool createPSR()
Creates the PSR. Will create default PSR if no other PSR given in an override.
Definition: vrfTDLMessage.h:52
This class is for monitoring a DtSensorContactInfoList for changes.
Definition: sensorContactInfoList.h:143
virtual const char * type() const
Returns a string identifies the class type of component.
DtVrfTDLMessageGeneratorController; implements the VRF specific TDL messages by implementing the send...
Definition: vrfTDLMessageGeneratorController.h:18
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
DtVrfTDLContactMessage * myContactMessage
Definition: tdlContactMessageGeneratorController.h:115
Process State Repository for DtTDLContactMessageGeneratorControllerPSR.
Definition: tdlContactMessageGeneratorControllerPSR.h:18
DtVrfTDLRemoveMessage * myRemovalMessage
Definition: tdlContactMessageGeneratorController.h:114
std::map< DtUUID, DtSpotReport * > SpotReportStdMap
Definition: tdlContactMessageGeneratorController.h:28
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
virtual int tdlMessageType() const =0
Override to specify the VRF TDL message type to create.
Definition: rwStringList.h:20
Definition: tdlContactMessageGeneratorController.h:25
DtSpotReport; subclass of DtSimReport.
Definition: spotReport.h:35
DtTDLContactMessageGeneratorControllerDescriptor * myTDLContactDescriptor
Definition: tdlContactMessageGeneratorController.h:112
DtVrfTDLMessageGeneratorController & operator=(const DtVrfTDLMessageGeneratorController &orig)
Not Implemented.

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)