VR-Forces 4.1.1 Class Documentation
aggregatedMoveToController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Generated by VR-Forces Component Code Generator
3 ** WARNING: Changes to this file WILL BE LOST if file is regenerated.
4 *******************************************************************************/
5 
9 
12 
13 #pragma once
14 
17 
18 class DtCgf;
20 class DtSimMessage;
22 class DtOutputPortGroup;
23 class DtVectorOutputPort;
25 class DtAnalogOutputPort;
26 class DtSetDataRequest;
27 class DtSetDataManager;
28 
43 {
44 private:
51 public:
53  DtAggregatedMoveToController(const DtString& name, DtVrfObject* owner, DtSimManager* simManager, DtComponentDescriptor* desc=0, DtReaderWriterRegistry *parentRegistry=0);
54 
57 
59  virtual bool init();
60 
62  virtual DtString type() const;
63 
65  virtual void tick();
66 
71  static void moveToCallback(DtSimMessage * msg, void * usr);
72 
77  static void setLocationCallback(DtSimMessage* msg, void* usr);
78 
83  static void moveToLocationCallback(DtSimMessage * msg, void * usr);
84 
89  static void moveIntoFormationCallback(DtSimMessage * msg, void * usr);
90 
95  static void turnToHeadingCallback(DtSimMessage* msg, void* usrData);
96 
98  static DtSimComponent* creator(const DtString& name, DtVrfObject* owner, DtSimManager* simManager, DtComponentDescriptor* desc=0, DtReaderWriterRegistry* parentRegistry=0);
99 
101  static void modifyVrfObjectCallback(DtSimMessage* msg, void* usr);
102 
103 protected:
104 
107  virtual void processMoveToTask(DtSimMessage * msg);
108 
109 
110  virtual void processMoveToLocationTask(DtSimMessage * msg);
111 
116  virtual void processDestinationChanged();
117 
121  virtual bool setupDestination();
122 
131  virtual void setupDestinationVector() const;
132 
134  virtual void invalidateDestinationVector() const;
135 
144  virtual bool atDestination();
145 
147  virtual void doMoving();
148 
150  virtual double findDesiredHeading();
151 
153  virtual void moveToDestination();
154 
156  virtual void stop();
157 
159  virtual void registerTaskMsgCallbacks();
160 
164  virtual void processModifyVrfObject(DtSimMessage* msg);
165 
168  virtual void processSetLocation(DtSimMessage* msg);
169 
171  virtual bool createPortGroups();
172 
174  virtual bool createPorts();
175 
181  virtual bool createPSR();
182 
183  virtual double distanceToDestination() const;
184 
186  virtual void clearTask();
187 
192  virtual double atDistance() const;
193 
197  virtual void processMoveIntoFormationTask(DtSimMessage* msg);
198 
201  virtual void processTurnToHeadingTask(DtSimMessage* msg);
202 
204  virtual void sendRequestToSelf(const DtSetDataRequest& request) const;
205 
206 protected:
207 
210 
216 
222 
225 
232 
234 
238 
241 
244 
247 
249 
253 
255 
259 };
260 

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)