VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
aggregatedSetController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 
12 #pragma once
13 
15 #include "vrfobjcore/simRadio.h"
16 #include "vrftasks/simTask.h"
18 
20 class DtFormation;
23 
30 {
31 
32 public:
33 
37  DtVrfObject* owner,
38  DtSimManager* simManager,
39  DtComponentDescriptor* desc = 0,
40  DtReaderWriterRegistry* parentRegistry = 0);
41 
43  virtual ~DtAggregatedSetController();
44 
45  virtual void processSetTrueAggregateTaskNotify(const DtSimTask & task);
46 
49  virtual void enable();
50 
52  virtual void disable();
53 
55  virtual bool init();
56 
57  virtual bool postAddComponentsInit();
58 
60  virtual void addSetDataCallbacks();
61 
62 public:
63 
69  static void setEngagementResultsCallback(DtSimMessage * msg, void * usr);
70 
71  static void setTrueAggregateTaskNotifyCallback(
72  const DtSimTask & task, const DtSimComponent &notifier, void* usr);
73 
79  static void setStatePropertiesCallback(DtSimMessage * msg, void * usr);
80 
86  static void setFormationCallback(DtSimMessage * msg, void * usr);
87 
93  static void setResupplyModeCallback(DtSimMessage * msg, void * usr);
94 
98  static DtSimComponent * creator(const DtString& name,
99  DtVrfObject* owner,
100  DtSimManager* simManager,
101  DtComponentDescriptor* desc = 0,
102  DtReaderWriterRegistry* parentRegistry = 0);
103 
105  virtual void tick();
106 
107  virtual void setIsEnabled(bool yesNo);
108 
109 private:
113 
116 
118  const DtAggregatedSetController & operator=(const
120 
121 
122 protected:
124  virtual void setRadio(DtSimRadio * radio);
125 
128  void removeSetDataCallbacks();
129 
133  virtual void processSetFormation(DtSimMessage * msg);
134 
138  virtual void processSetEngagementResults(DtSimMessage * msg);
139 
143  virtual void processSetResupplyMode(DtSimMessage * msg);
144 
148  virtual void processSetStateProperties(DtSimMessage * msg);
149 
150  virtual bool getFormation(const DtString& formationName,
151  const DtAggregateObjectParameters& parameterEntry, DtFormation& formation);
152 
153  virtual void updateBoundingGeometry();
154 
162  virtual void lookupAndCacheProcessSR();
163 
164 protected:
165 
167 
169 
176 };
177 
178 

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)