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;
25 class DtFollowEntityTask;
30 class DtRailRouteTask;
31 
32 
43 {
44 private:
45 
52 
53 public:
57  DtSimulationServices* simManager, DtComponentDescriptor* desc = NULL,
58  DtReaderWriterRegistry* parentRegistry = NULL);
59 
61 
62  virtual bool init();
63 
64  virtual bool createPSR();
65 
68  virtual const char* type() const;
69 
72  virtual void registerTaskMsgCallbacks();
73 
76  static void taskCompleteReportCallback(DtSimMessage* msg, void* usr);
77 
81  virtual void processTaskCompleteReport(DtSimMessage* msg);
82 
83  virtual void suspendTask(int taskId);
84 
85  virtual DtSimTaskStatePtr currentTaskState(int taskId) const;
86 
87 
88 public:
89 
93  static DtSimComponent * creator(const DtString& name, DtLocalObject* owner,
94  DtSimulationServices* simManager, DtComponentDescriptor* desc = 0,
95  DtReaderWriterRegistry* parentRegistry = 0);
96 
97 protected:
99 };
100 
#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...
File: planAndMoveToLocTask.h.
Definition: planAndMoveToLocationTask.h:36
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
File: moveToTask.h.
Definition: moveToTask.h:48
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: multiTaskControllerComponent.h:23
Definition: readerWriterRegistry.h:39
DtGroundMovementChooserPSR * myProcessState
Definition: groundMovementChooserController.h:98
DtFollowEntityTask represents a follow entity task for an entity to perform. It inherits read/writabl...
Definition: followEntityTask.h:57
DtBoost::shared_ptr< DtSimTaskState > DtSimTaskStatePtr
Definition: taskAndTaskStateDefines.h:18
This struct is the FIXED portion of the simulation network representation of a turn to heading task...
Definition: turnToHeadingTask.h:42
File: moveToLocTask.h.
Definition: moveToLocationTasks.h:34
virtual bool init()
Calls setRadio()
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
File: planAndMoveToTask.h.
Definition: planAndMoveToTask.h:35
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:42
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:94
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:91
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
File: railMoveAlongTask.h.
Definition: railMoveAlongTask.h:50
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)