VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
disaggregatedMoveToLocationController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2004 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
12 
13 #pragma once
14 
16 #include <vector>
17 
18 class DtSimMessage;
21 
39 {
40 public:
41 
43  {
44  DtImplementAsMoveIntoFormation = 0,
45  DtImplementAsMoveAlongRoute
46  } DtSubtaskImplementation;
47 
51  DtVrfObject* owner,
52  DtSimManager* simManager,
53  DtComponentDescriptor* desc = 0,
54  DtReaderWriterRegistry* parentRegistry = 0);
55 
57 
60  virtual const char* type() const;
61 
63  virtual bool init();
64 
66  virtual void clearTask();
67 
70  static void moveToLocationTaskCallback(DtSimMessage * msg, void * usr);
71 
74  static void taskCompleteReportCallback(DtSimMessage * msg, void * usr);
75 
79  static DtSimComponent * creator(const DtString& name,
80  DtVrfObject* owner,
81  DtSimManager* simManager,
82  DtComponentDescriptor* desc = 0,
83  DtReaderWriterRegistry* parentRegistry = 0);
84 
85 protected:
86 
89  virtual void registerTaskMsgCallbacks();
90 
96  virtual bool createPSR();
97 
101  virtual void onMoveToLocationTask(DtSimMessage * msg);
102 
106  virtual void onTaskComplete(DtSimMessage * msg);
107 
115  DtSubtaskImplementation chooseSubtaskImplementation(
116  const DtVector& geocDestination) const;
117 
124  virtual void moveIntoFormation(const DtVector& geocDestination);
125 
131  void moveAlongRoute(const DtVector& geocDestination);
132 
140  virtual bool calcRouteStartingPoint(const DtVector& geocEndPoint,
141  DtVector& geocStartPoint) const;
142 
145  virtual DtString generateWorkingRouteName() const;
146 
149  virtual bool publishFormationRoutes() const;
150 
151 private:
152 
156 
160 
161 protected:
162 
166 
170 
174  mutable bool myToggleGeneratedName;
175 };

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)