VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
groundMovementChooserController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 
13 
20 
21 class DtMoveToTask;
23 class DtMoveAlongTask;
24 class DtFollowEntityTask;
27 class DtRailRouteTask;
28 
29 
40 {
41 private:
42 
49 
50 public:
54  DtSimulationServices* simManager, DtComponentDescriptor* desc = NULL,
55  DtReaderWriterRegistry* parentRegistry = NULL);
56 
57  virtual ~DtGroundMovementChooserController() override;
58 
59  virtual bool init() override;
60 
61  virtual bool createPSR();
62 
65  virtual const char* type() const override;
66 
69  virtual void registerTaskMsgCallbacks() override;
70 
73  static void taskCompleteReportCallback(DtSimMessage* msg, void* usr);
74 
78  virtual void processTaskCompleteReport(DtSimMessage* msg);
79 
80  virtual void suspendTask(int taskId) override;
81 
82  virtual DtSimTaskStatePtr currentTaskState(int taskId) const override;
83 
84 
85 public:
86 
90  static DtSimComponent * creator(const DtString& name, DtLocalObject* owner,
91  DtSimulationServices* simManager, DtComponentDescriptor* desc = 0,
92  DtReaderWriterRegistry* parentRegistry = 0);
93 
94 protected:
96 };
97 
virtual bool init() override
Calls setRadio()
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual const char * type() const override=0
Returns a string identifies the class type of component. Type values are defined in compTypes...
virtual void registerTaskMsgCallbacks()
File: railPathTask.h.
Definition: railRouteTask.h:45
virtual void suspendTask(int taskId)
This method is called when the specified running task is being suspended. The default implementation ...
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
DtMoveToTask represents a moveTo task for an entity to perform. It inherits read/writableness from Si...
Definition: moveToTask.h:38
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: multiTaskControllerComponent.h:23
Definition: readerWriterRegistry.h:39
std::shared_ptr< DtSimTaskState > DtSimTaskStatePtr
Definition: taskAndTaskStateDefines.h:18
DtGroundMovementChooserPSR * myProcessState
Definition: groundMovementChooserController.h:95
DtFollowEntityTask represents a follow entity task for an entity to perform. It inherits read/writabl...
Definition: followEntityTask.h:57
This struct is the FIXED portion of the simulation network representation of a turn to heading task...
Definition: turnToHeadingTask.h:42
File: simMsg.h.
Definition: simMessage.h:35
DtMoveAlongTask represents a Move Along Route task for an entity to perform. It inherits read/writabl...
Definition: moveAlongTasks.h:46
Definition: groundMovementChooserPSR.h:22
virtual DtSimTaskStatePtr currentTaskState(int taskId) const
This controller previously handled choosing between B-HAVE and VRF tasks for movement for ground and ...
Definition: groundMovementChooserController.h:39
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
File: railMoveAlongTask.h.
Definition: railMoveAlongTask.h:34
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)