VR-Forces 4.1.1 Class Documentation
gndMovementChooserController.h
Go to the documentation of this file.
1 
2 /*******************************************************************************
3 ** Copyright (c) 2009 MAK Technologies, Inc.
4 ** All rights reserved.
5 *******************************************************************************/
6 
9 
12 
13 #pragma once
14 
15 
17 
20 #include "vrfmsgs/setDtaRqMsg.h"
21 #include "vrftasks/patrolRteTask.h"
22 #include "vrftasks/patrolPtTask.h"
24 
25 class DtMoveToTask;
27 class DtMoveAlongTask;
29 class DtFollowEntityTask;
34 class DtRailRouteTask;
35 
36 
46 {
47 private:
48 
55 
56 public:
57 
61  DtSimManager* simManager, DtComponentDescriptor* desc = NULL,
62  DtReaderWriterRegistry* parentRegistry = NULL);
63 
65 
66  virtual bool init();
67 
68  virtual bool createPSR();
69 
72  virtual DtString type() const;
73 
76  virtual void registerTaskMsgCallbacks();
77 
79  virtual bool postAddComponentsInit();
80 
83  static void movementTaskCallback(DtSimMessage * msg, void * usr);
84 
86  virtual void processMovementTask(DtSimMessage * msg);
87 
90  static void taskCompleteReportCallback(DtSimMessage* msg, void* usr);
91 
95  virtual void processTaskCompleteReport(DtSimMessage* msg);
96 
99  static void switchSystemResponseCallback(DtSimMessage * msg, void * usr);
100 
101  virtual void processSwitchSystemResponse(DtSimMessage* msg);
102 
103 protected:
104 
106  virtual void processMovementTask(DtFollowEntityTask* taskMsg, int taskId);
107 
109  virtual void processMovementTask(DtMoveAlongTask* taskMsg, int taskId);
110 
116  virtual void processMovementTask(DtRailRouteTask* taskMsg,int taskId);
117 
120  virtual void processMovementTask(DtRailMoveAlongTask* taskMsg, int taskId);
121 
123  virtual void processMovementTask(DtTaskMessage* taskMsg);
124 
126  virtual void processMovementTask(DtMoveToTask* taskMsg, int taskId);
127 
129  virtual void processMovementTask(DtMoveToLocationTask* taskMsg, int taskId);
130 
131  virtual void processMovementTask(DtTurnToHeadingTask* taskMsg, int taskId);
132 
133  virtual void processMovementTask(DtScriptedTaskTask* taskMsg, int taskId);
134 
136  virtual void processMovementTask(DtPatrolRouteTask* taskMsg, int taskId);
137 
139  virtual void processMovementTask(DtPatrolTwoPointsTask* taskMsg, int taskId);
140 
142  virtual void sendSetSwitchRequest(const DtString & category,const DtString & deactivateSysName,
143  const DtString & activateSysName);
144 
145 public:
146 
150  static DtSimComponent * creator(const DtString& name, DtVrfObject* owner,
151  DtSimManager* simManager, DtComponentDescriptor* desc = 0,
152  DtReaderWriterRegistry* parentRegistry = 0);
153 
154 protected:
157 
158 };
159 

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)