VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfObjectDataMessenger.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2005 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 #pragma once
12 
16 
17 class DtSimMessage;
18 class DtVrfObjectMessage;
19 class DtReflectedEntity;
20 
24 {
25 private:
32  const DtVrfObjectDataMessenger& orig);
33 public:
34 
38  DtSimulationServices* simManager, DtComponentDescriptor* desc=0,
39  DtReaderWriterRegistry *parentRegistry=0);
40 
42  virtual ~DtVrfObjectDataMessenger() override;
43 
45  DtTime maxSendInterval() const;
47  void setMaxSendInterval(DtTime ival);
49 
51  DtTime minSendInterval() const;
53  void setMinSendInterval(DtTime ival);
55 
58  virtual bool prepMessage();
59 
62  virtual bool sendMessage();
63 
64  virtual void setComponentDescriptor(DtComponentDescriptor* componentDescriptor) override;
65 
68  virtual const char* type() const override;
69 
72  virtual void tick() override;
73 
75  DtTime timeLastSent() const;
76 
80  static DtSimComponent * creator(const DtString& name,
81  DtLocalObject* owner,
82  DtSimulationServices* simManager,
83  DtComponentDescriptor* desc = 0,
84  DtReaderWriterRegistry* parentRegistry = 0);
85 
86 protected:
87 
88 protected:
90 
92 
94 
97 };
98 
100 
102 
105 
107 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
Definition: ifVrfObjectData.h:110
const DtControllerComponent & operator=(const DtControllerComponent &orig)
assignment operator
DtTime myMaxSendInterval
Definition: vrfObjectDataMessenger.h:89
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
virtual const char * type() const override=0
This returns a string from compTypes.h, and identifies the type of component.
Definition: readerWriterRegistry.h:39
DtIfVrfObjectData myVrfExtensions
Definition: vrfObjectDataMessenger.h:96
virtual void setComponentDescriptor(DtComponentDescriptor *componentDescriptor)
The component descriptor specified in the order of battle file or parameter file that was used to cre...
DtTime myMinSendInterval
Definition: vrfObjectDataMessenger.h:91
File: simMsg.h.
Definition: simMessage.h:35
bool myNeedToSendUpdate
Definition: vrfObjectDataMessenger.h:93
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
DtTime timeLastSent() const
Definition: vrfObjectDataMessenger.h:106
The base class for all messages to/from a specific DtVrfObject. Various subclasses of this class will...
Definition: vrfObjectMessage.h:30
End User Description: DtControllerComponent is the base class for all controllers components...
Definition: controllerComponent.h:31
DtTime minSendInterval() const
Shortest period of time to wait before resending message.
Definition: vrfObjectDataMessenger.h:103
DtVrfObjectDataMessenger sends DtVrfObjectData messages when attached to remote entities.
Definition: vrfObjectDataMessenger.h:23
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
DtTime myTimeLastSent
Definition: vrfObjectDataMessenger.h:95
void setMinSendInterval(DtTime ival)
Shortest period of time to wait before resending message.
Definition: vrfObjectDataMessenger.h:104
void setMaxSendInterval(DtTime ival)
Longest period of time to wait before resending message.
Definition: vrfObjectDataMessenger.h:101
DtTime maxSendInterval() const
Longest period of time to wait before resending message.
Definition: vrfObjectDataMessenger.h:99
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)