VR-Forces 4.3 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"
17 
19 class DtFormation;
22 
29 {
30 
31 public:
32 
36  DtVrfObject* owner,
37  DtSimManager* simManager,
38  DtComponentDescriptor* desc = 0,
39  DtReaderWriterRegistry* parentRegistry = 0);
40 
42  virtual ~DtAggregatedSetController();
43 
44  virtual void processSetTrueAggregateTaskNotify(const DtSimTask & task);
45 
48  virtual void enable();
49 
51  virtual void disable();
52 
54  virtual bool init();
55 
56  virtual bool postAddComponentsInit();
57 
58 public:
59 
65  static void setEngagementResultsCallback(DtSimMessage * msg, void * usr);
66 
67  static void setTrueAggregateTaskNotifyCallback(
68  const DtSimTask & task, const DtSimComponent &notifier, void* usr);
69 
75  static void setStatePropertiesCallback(DtSimMessage * msg, void * usr);
76 
82  static void setFormationCallback(DtSimMessage * msg, void * usr);
83 
89  static void setResupplyModeCallback(DtSimMessage * msg, void * usr);
90 
94  static DtSimComponent * creator(const DtString& name,
95  DtVrfObject* owner,
96  DtSimManager* simManager,
97  DtComponentDescriptor* desc = 0,
98  DtReaderWriterRegistry* parentRegistry = 0);
99 
101  virtual void tick();
102 
103  virtual void setIsEnabled(bool yesNo);
104 
105 private:
109 
112 
114  const DtAggregatedSetController & operator=(const
116 
117 
118 protected:
120  virtual void setRadio(DtSimRadio * radio);
121 
124  virtual void addSetDataCallbacks();
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 Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)