VR-Forces 4.10 Class Documentation
 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  DtVrfObject* owner,
46  DtSimManager* 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  DtVrfObject* owner,
70  DtSimManager* simManager,
71  DtComponentDescriptor* desc = 0,
72  DtReaderWriterRegistry* parentRegistry = 0);
73 
74 protected:
75 
79  virtual void setCommandNetRadioChannel();
80 
85  virtual int nextAvaliableDesignator();
86 
90  virtual void reorganize();
91 
95  virtual bool reorganizeNeeded();
96 
97 protected:
98  typedef std::set<int> DtIntSet;
103 
104 };
105 
#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.
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
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:42
Definition: readerWriterRegistry.h:39
static DtSimComponent * creator(const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
DtPseudoAggregateOrganizationController is the controller component in pseudo-aggregates responsible ...
Definition: aggregateOrganizationController.h:27
virtual bool init()
Calls setRadio()
std::set< int > DtIntSet
Definition: topLevelOrganizationController.h:98
DtAggregateOrganizationController & operator=(const DtAggregateOrganizationController &orig)
Not implemented.
DtIntSet myDesignatorsIssuedThisTick
This keeps track of designators issued this tick so that the same designator is not issued to two obj...
Definition: topLevelOrganizationController.h:102
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
virtual void reorganize()
Reorganizes the aggregate members, moving destroyed or independly tasked entities to the bottom of th...
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
virtual const char * type() const
Returns a string identifies the class type of component.
DtTopLevelOrganizationController; aggregate organization controller for a force-level aggregate entit...
Definition: topLevelOrganizationController.h:25
virtual int nextAvaliableDesignator()
Returns the next avaliable designator to be used.

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)