VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
exTDLMessageGeneratorController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
9 
14 
15 //class DtTDLPPLIMessageGeneratorControllerPSR;
18 
19 const char ExampleTDLMessageGeneratorControllerType[] = "ex-tdl-message-generator-controller";
20 
22 {
23 private:
30 
31 public:
32 
37  DtReaderWriterRegistry *parentRegistry = 0);
38 
41 
44  virtual const char* type() const;
45 
47  virtual void registerRadioMessageCallbacks();
48 
50  static void setTargetCallback(DtSimMessage* msg, void* usr);
51 
53  virtual void processSetTarget(DtSimMessage* msg);
54 
58  static DtSimComponent * creator(const DtString& name,
59  DtVrfObject* owner,
60  DtSimManager* simManager,
61  DtComponentDescriptor* desc = 0,
62  DtReaderWriterRegistry* parentRegistry = 0);
63 
64 protected:
66  virtual bool messageNeedsUpdate() const;
67 
69  virtual bool createPSR();
70 
72  virtual int tdlMessageType() const;
73 
75  virtual void updatePSR();
76 
79  virtual bool checkDeltaDistance(const DtVrfObject * target) const;
80 
83  virtual bool fillInMessage(DtVrfTDLMessage*);
84 
86  virtual void turnTDLMessagingOff();
87 
88  virtual void sendFinalMessage();
89 
90 protected:
92 };
93 
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
static DtSimComponent * creator(const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
ExampleTDLMessageGeneratorController()
Not Implemented.
DtTDLPPLIMessageGeneratorControllerDescriptor; descriptor for the DtTDLPPLIMessageGeneratorController...
Definition: tdlPPLIMessageGeneratorControllerDescriptor.h:18
DtSimManager * simManager()
Gets the sim manager.
Definition: simComponent.h:410
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 int tdlMessageType() const
Override to specify the VRF TDL message type to create. Returns.
virtual const char * type() const
Returns a string identifies the class type of component.
virtual void processSetTarget(DtSimMessage *msg)
Sets our current target used to construct our message.
virtual bool createPSR()
Creates the PSR.
virtual bool messageNeedsUpdate() const
Checks to see if message needs an update. Will call checkDeltaDistance and base class version if delt...
DtTDLPPLIMessageGeneratorControllerDescriptor * myTDLPPIDescriptor
Definition: exTDLMessageGeneratorController.h:91
File: simMsg.h.
Definition: simMessage.h:35
virtual void registerRadioMessageCallbacks()
Registers for setTarget messages from the local entity's radio.
Definition: vrfTDLMessage.h:52
Definition: exTDLMessageGeneratorController.h:21
Keeps track of the last location this message was sent from.
Definition: exTDLMessageGeneratorControllerPSR.h:18
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
ExampleTDLMessageGeneratorController & operator=(const ExampleTDLMessageGeneratorController &orig)
Not Implemented.
virtual bool fillInMessage(DtVrfTDLMessage *)
Override to fill in the contents of the TDL message specified.
static void setTargetCallback(DtSimMessage *msg, void *usr)
Static callback function. Calls processSetTarget().
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
const char ExampleTDLMessageGeneratorControllerType[]
Definition: exTDLMessageGeneratorController.h:19
virtual DtSymbolString name() const
Accessor for name of this readable/writable object.
virtual void turnTDLMessagingOff()
Send out final message on turning message off.
virtual void updatePSR()
Override to update the PSR with any data. Called after message is sent. Be sure to call base class on...
virtual bool checkDeltaDistance(const DtVrfObject *target) const
Checks distance and if distance >= delta distance will return true Checking distance between current ...
virtual ~ExampleTDLMessageGeneratorController()
Destructor.

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)