VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
topLevelOrganizationController.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1999 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
11 
12 #pragma once
13 
15 
26 {
27 
28 private:
29 
31 
35 
39 
40 public:
41 
45  DtLocalObject* owner,
46  DtSimulationServices* simManager,
47  DtComponentDescriptor* desc = 0,
48  DtReaderWriterRegistry* parentRegistry = 0);
49 
52 
53  virtual bool init();
54 
57  virtual const char* type() const;
58 
61  virtual void tick();
62 
63  virtual bool generateEchelonId(int designator);
64 
68  static DtSimComponent * creator(const DtString& name,
69  DtLocalObject* owner,
70  DtSimulationServices* simManager,
71  DtComponentDescriptor* desc = 0,
72  DtReaderWriterRegistry* parentRegistry = 0);
73 
74 protected:
75 
79  virtual void setCommandNetRadioChannel();
80 
85  virtual int nextAvaliableDesignator(int defaultDesignator = 0);
86 
90  virtual void reorganize();
91 
95  virtual bool reorganizeNeeded();
96 
97  virtual void addToOrganization(const DtIfAddToOrganization* msg);
98 
100  virtual bool isForceLevel() const;
101 
102 protected:
104  std::vector<const DtIfAddToOrganization*> myPendingSubordinateAssignment;
105 };
106 
std::vector< const DtIfAddToOrganization * > myPendingSubordinateAssignment
Definition: topLevelOrganizationController.h:104
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual bool generateEchelonId(int designator)
Generates an echelon id based on the provided designator, the local entity opd entry, and the current state of the organization hierarchy, and assigns the echelon id to the entity. Returns true if the newly generated id is different from the currnet one.
virtual bool init()
Calls setRadio()
virtual void setCommandNetRadioChannel()
Sets the command net radio channel for this entity&#39;s radio to a unique number based on the entity ide...
virtual void tick()
Updates the echelon organization as necessary, such as in the event of an entity getting destroyed or...
virtual bool reorganizeNeeded()
Returns true if reorganization is needed (invalid entities need to be reassigned to least significant...
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 bool isForceLevel() const
This is not a force level controller, so reutrn false.
Definition: readerWriterRegistry.h:39
class DtIfAddToOrganization:
Definition: ifAddToOrganization.h:23
int myDesignatorsIssuedThisTick
Definition: topLevelOrganizationController.h:103
DtPseudoAggregateOrganizationController is the controller component in pseudo-aggregates responsible ...
Definition: aggregateOrganizationController.h:29
DtAggregateOrganizationController & operator=(const DtAggregateOrganizationController &orig)
Not implemented.
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:94
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:91
virtual void reorganize()
Reorganizes the aggregate members, moving destroyed or independly tasked entities to the bottom of th...
virtual void addToOrganization(const DtIfAddToOrganization *)
virtual const char * type() const
Returns a string identifies the class type of component. Type values are defined in compTypes...
DtTopLevelOrganizationController; aggregate organization controller for a force-level aggregate entit...
Definition: topLevelOrganizationController.h:25
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 Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)