VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 
51  virtual bool postAddComponentsInit();
52 
53 public:
54 
60  static void setEngagementResultsCallback(DtSimMessage * msg, void * usr);
61 
62  static void setTrueAggregateTaskNotifyCallback(
63  const DtSimTask & task, const DtSimComponent &notifier, void* usr);
64 
70  static void setFormationCallback(DtSimMessage * msg, void * usr);
71 
77  static void setResupplyModeCallback(DtSimMessage * msg, void * usr);
78 
84  static void setInvulnerableCallback(DtSimMessage* msg, void * usrData);
85 
91  static void setUndetectableCallback(DtSimMessage* msg, void * usrData);
92 
96  static DtSimComponent * creator(const DtString& name,
97  DtVrfObject* owner,
98  DtSimManager* simManager,
99  DtComponentDescriptor* desc = 0,
100  DtReaderWriterRegistry* parentRegistry = 0);
101 
103  virtual void tick();
104 
105  virtual void setIsEnabled(bool yesNo);
106 
107 private:
111 
114 
116  const DtAggregatedSetController & operator=(const
118 
119 
120 protected:
121 
125  virtual void processSetFormation(DtSimMessage * msg);
126 
130  virtual void processSetEngagementResults(DtSimMessage * msg);
131 
135  virtual void processSetResupplyMode(DtSimMessage * msg);
136 
140  virtual void processSetStateProperties(DtSimMessage * msg);
141 
145  virtual void processSetInvulnerable(DtSimMessage * msg);
146 
150  virtual void processSetUndetectable(DtSimMessage * msg);
151 
152  virtual bool getFormation(const DtString& formationName,
153  const DtAggregateObjectParameters& parameterEntry, DtFormation& formation);
154 
155  virtual void updateBoundingGeometry();
156 
164  virtual void lookupAndCacheProcessSR();
165 
167  virtual void initializeSetsToRegister();
168 
170  virtual void setRadio(DtSimRadio * radio);
171 
172 protected:
173 
175 
177 
184 };
185 
186 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual bool postAddComponentsInit()
Called after all components have been created, initialized and added to the component manager...
Definition: simComponent.h:144
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
class DtSimRadio:
Definition: simRadio.h:25
virtual void setIsEnabled(bool yesNo)
virtual void processSetStateProperties(DtSimMessage *msg)
Handler for setStatePropertiesCallback().
static void setUndetectableCallback(DtSimMessage *msg, void *usrData)
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
Instances of DtFormation are a list of DtFormationEntry objects which make up an aggregate formation...
Definition: formation.h:26
DtVrfAggregateStateRepository * myAggregateStateRepository
Definition: aggregatedSetController.h:176
class DtTrueAggregateResolutionPSR:
Definition: aggregatedResolutionPSR.h:24
DtAggregatedSetController is a controller that handles new DtSetTrueAggregateMode.
Definition: aggregatedSetController.h:29
DtAggregatedResolutionPSR * myAggregatedResolutionProcessState
Pointer to a process state repository used to store state data associated with this component...
Definition: aggregatedSetController.h:183
File: simMsg.h.
Definition: simMessage.h:35
const DtSimTask * mySimTask
Definition: aggregatedSetController.h:174
virtual void tick()
Checks the #myPendingSetLocationRequest and if the terrain is available the location in #myPendingSet...
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
DtSimTask is an abstract base class from which real tasks can derive.
Definition: simTask.h:33
virtual void enable()
Is this component enabled or not.
virtual void setRadio(DtSimRadio *radio)
Override to add set data callbacks.
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
static DtSimComponent * creator(const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Definition: vrfAggregateStateRepository.h:22
Contains the set of readable/writeable parameters associated with a pseudo-aggregate entities...
Definition: aggregateObjectParameters.h:29
virtual void processSetUndetectable(DtSimMessage *msg)
const DtLocalEntitySetController & operator=(const DtLocalEntitySetController &orig)
assignment operator
virtual void initializeSetsToRegister()
Sets up the myRegisterSets map with sets to register for this controller.
DtLocalEntitySetController is a controller that handles all DtSetDataRequest messages for an entity a...
Definition: localEntitySetController.h:30

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)