VR-Forces 5.0.2 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();
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);
65 
68  virtual const char* type() const;
69 
72  virtual void tick();
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:94
const DtControllerComponent & operator=(const DtControllerComponent &orig)
assignment operator
virtual const char * type() const =0
This returns a string from compTypes.h, and identifies the type of component.
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
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:90
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
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. 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 Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)