VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
tdlMessageGeneratorController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
14 
22 
25 class DtSettingsObject;
26 class DtBoolSetting;
27 class DtSimMessage;
28 class DtVrfTDLMessage;
29 
31 {
32 private:
39 
40 public:
41 
45  DtSimulationServices* simManager, DtComponentDescriptor* desc=0,
46  DtReaderWriterRegistry *parentRegistry=0);
47 
50 
54  virtual bool init();
55 
58  virtual const char* type() const;
59 
62  virtual void tick();
63 
64 protected:
65 
67  static void setTDLMessagingCallback(DtSimMessage* msg, void* usr);
68  virtual void processSetTDLMessaging(DtSimMessage* msg);
69  virtual void setLocalEnabled(bool);
70 
78  virtual void setGlobalEnabledOverridingLocal();
79 
80  virtual void turnTDLMessagingOn();
81  virtual void turnTDLMessagingOff();
82 
86  static void settingConsumerCallback(const DtSettingsObject* settingsObject,
87  void* usr);
88 
91  virtual void readGlobalEnabledSetting(const DtBoolSetting* enabledSetting);
92 
94  virtual bool canSendTDLMessages() const;
95 
97  virtual bool messageNeedsUpdate() const;
98 
100  virtual bool needsHeartbeatUpdate() const;
101 
103  virtual bool createPSR();
104 
106  virtual void updatePSR();
107 
109  virtual void registerRadioMessageCallbacks();
110 
112  virtual bool sendMessage() = 0;
113 
114 protected:
120 };
121 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
Process State Repository for a DtTDLMessageGeneratorController.
Definition: tdlMessageGeneratorControllerPSR.h:17
const DtControllerComponent & operator=(const DtControllerComponent &orig)
assignment operator
Definition: boolSetting.h:30
virtual const char * type() const =0
This returns a string from compTypes.h, and identifies the type of component.
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
DtTDLMessageGeneratorControllerDescriptor; descriptor for subclasses of the DtTDLMessageGeneratorCont...
Definition: tdlMessageGeneratorControllerDescriptor.h:18
Definition: readerWriterRegistry.h:39
Definition: settingsObject.h:27
virtual bool init() override
Calls setRadio()
bool myTDLMessagingEnabled
Definition: tdlMessageGeneratorController.h:118
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
Definition: vrfTDLMessage.h:54
DtTDLMessageGeneratorControllerDescriptor * myTDLDescriptor
Definition: tdlMessageGeneratorController.h:116
End User Description: DtControllerComponent is the base class for all controllers components...
Definition: controllerComponent.h:31
Definition: tdlMessageGeneratorController.h:30
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:95
DtTDLMessageGeneratorControllerPSR * myProcessState
Definition: tdlMessageGeneratorController.h:115
DtPlatformLocalObjectFacade myPlatformLocalObjectFacade
Definition: tdlMessageGeneratorController.h:119
bool myGlobalEnabled
Definition: tdlMessageGeneratorController.h:117
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)