VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aggregateMountedMovementRelayController.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2021 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
13 
15 
16 #include <boost/signals2.hpp>
17 
19 class DtString;
21 class DtSimMessage;
22 
23 
28 {
29 public:
30 
34  DtLocalObject* owner,
35  DtSimulationServices* simServices,
36  DtComponentDescriptor* desc = 0,
37  DtReaderWriterRegistry* parentRegistry = 0);
38 
41 
44  virtual void disable() override;
45 
47  virtual bool init() override;
48 
51  virtual const char* type() const override;
52 
54  virtual bool postAddComponentsInit() override;
55 
57  virtual void preFirstTickInit() override;
58 
61  virtual void processTaskMessage(const DtTaskMessage& taskMsg, DtSimTaskStatePtr taskStatePtr);
62 
64  virtual void registerTaskMsgCallbacks() override;
65 
68  static void taskMessageCallback(DtSimMessage* msg, void* usr, DtSimTaskStatePtr taskStatePtr);
69 
72  static void taskCompleteReportCallback(DtSimMessage* msg, void* usr);
73 
77  virtual void processTaskCompleteReport(DtSimMessage* msg);
78 
82  static DtSimComponent * creator(const DtString& name,
83  DtLocalObject* owner,
84  DtSimulationServices* simManager,
85  DtComponentDescriptor* desc = 0,
86  DtReaderWriterRegistry* parentRegistry = 0);
87 
88 protected:
89 
90 
93 
96 
99  orig);
100 
101 protected:
102 
103 
104 };
virtual bool init() override
Calls setRadio()
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual bool postAddComponentsInit() override
Calls enableTaskTypes()
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()
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
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
virtual void disable() override
Overridden to 1) remove any task message callbacks registered by this controller 2) call clear task...
File: simMsg.h.
Definition: simMessage.h:35
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
DtAggregateMountedMovementRelayController intercepts task messages and forwards them to a vehicle...
Definition: aggregateMountedMovementRelayController.h:27
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
A DtTaskMsg is a DtRadioMsg with a pointer to a task. The type of the taskMsg is just the type of the...
Definition: taskMessage.h:21
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)