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();
45 
47  virtual bool init();
48 
51  virtual const char* type() const;
52 
54  virtual bool postAddComponentsInit();
55 
57  virtual void preFirstTickInit();
58 
61  virtual void processTaskMessage(const DtTaskMessage& taskMsg, DtSimTaskStatePtr taskStatePtr);
62 
64  virtual void registerTaskMsgCallbacks();
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 };
#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
DtBoost::shared_ptr< DtSimTaskState > DtSimTaskStatePtr
Definition: taskAndTaskStateDefines.h:18
virtual bool init()
Calls setRadio()
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:95
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:91
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. 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 Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)