VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
organizationController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2002 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 #pragma once
12 
15 #include "vrfobjcore/simRadio.h"
16 
17 class DtSimMessage;
18 
29 {
30 
31 private:
35 
36 public:
37 
41  DtLocalObject* owner,
42  DtSimulationServices* simManager,
43  DtComponentDescriptor* desc = 0,
44  DtReaderWriterRegistry* parentRegistry = 0);
45 
48 
50  const DtOrganizationController & operator=(const
52 
54  virtual ~DtOrganizationController();
55 
58  virtual const char* type() const;
59 
62  virtual void tick();
63 
68  virtual bool generateEchelonId(int designator);
69 
71  virtual void processSetDesignator(DtSimMessage * msg);
72 
73  static void setDesignatorCallback(DtSimMessage * msg, void * usrData);
74 
78  static DtSimComponent * creator(const DtString& name,
79  DtLocalObject* owner,
80  DtSimulationServices* simManager,
81  DtComponentDescriptor* desc = 0,
82  DtReaderWriterRegistry* parentRegistry = 0);
83 
87  virtual bool tickWhileDestroyed() const;
88 
89  virtual DtEchelonId forceLevelEchelonId() const;
90 
91 protected:
93  virtual void setRadio(DtSimRadio * radio);
94 
99 };
100 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtManagedObjectListConstPtr myForceLevelNodes
Definition: organizationController.h:98
const DtControllerComponent & operator=(const DtControllerComponent &orig)
assignment operator
Definition: simRadio.h:30
virtual void setRadio(DtSimRadio *radio)
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
Definition: readerWriterRegistry.h:39
DtOrganizationController is intended for any entity which will be a leaf node on the organization hie...
Definition: organizationController.h:28
int myRequestedDesignator
Used to store the requested designator if the echelon ID is not set immediatly.
Definition: organizationController.h:96
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 ...
virtual bool tickWhileDestroyed() const
If the component returns true here, it will be ticked regardless of the destroyed state of the host e...
End User Description: DtControllerComponent is the base class for all controllers components...
Definition: controllerComponent.h:31
Definition: echelonId.h:13
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:89
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
bool myIsTopLevel
Definition: organizationController.h:97
DtBoost::shared_ptr< const DtManagedObjectList > DtManagedObjectListConstPtr
Typedef for a shared pointer to a const DtOrgViewManagedObjectList. These lists are used within VR-Fo...
Definition: managedObjectList.h:35
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 Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)