VR-Forces 5.0.3 Developer's Guide
 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  DtLocalObject* owner,
60  DtSimulationServices* 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 DtSimObject* target) const;
80 
83  virtual bool fillInMessage(DtVrfTDLMessage*);
84 
86  virtual void turnTDLMessagingOff();
87 
88  virtual void sendFinalMessage();
89 
90 protected:
92 };
93 
virtual bool checkDeltaDistance(const DtSimObject *target) const
Checks distance and if distance >= delta distance will return true Checking distance between current ...
ExampleTDLMessageGeneratorController()
Not Implemented.
DtTDLPPLIMessageGeneratorControllerDescriptor; descriptor for the DtTDLPPLIMessageGeneratorController...
Definition: tdlPPLIMessageGeneratorControllerDescriptor.h:21
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
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. Type values are defined in compTypes...
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:54
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
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:90
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
ExampleTDLMessageGeneratorController & operator=(const ExampleTDLMessageGeneratorController &orig)
Not Implemented.
Represents a single simulation object in the exercise. Object may be VRF simulation, or non-VRF simulated, and may be simulated by the local sim engine, or by a remote sim engine. Only public (external) state of the object is available. All data is read-only. All access to data of the object is thread safe within the simulation frame.
Definition: simObject.h:79
VRF4API_METHOD const DtSimulationServices * simManager() const
This is the deprecated API that can be used as a reference to migrate 4.X code to 5...
Definition: simComponent.h:566
virtual bool fillInMessage(DtVrfTDLMessage *)
Override to fill in the contents of the TDL message specified. Make sure to call parent method in ord...
static void setTargetCallback(DtSimMessage *msg, void *usr)
Static callback function. Calls processSetTarget().
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.
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
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
virtual void updatePSR()
Override to update the PSR with any data. Called after message is sent. Be sure to call base class on...
virtual ~ExampleTDLMessageGeneratorController()
Destructor.

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)