VR-Forces 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() override;
55 
58  virtual const char* type() const override;
59 
62  virtual void tick() override;
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 override;
88 
89  virtual DtEchelonId forceLevelEchelonId() const;
90 
91 protected:
93  virtual void setRadio(DtSimRadio* radio) override;
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)
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.
std::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
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:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
bool myIsTopLevel
Definition: organizationController.h:97
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)