VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
groundMoveToAdapterComponent.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2025 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
15 
16 class DtString;
18 class DtSimMessage;
19 class DtMoveToTask;
20 
29 
32 {
33 public:
34 
38  DtLocalObject* owner,
39  DtSimulationServices* simManager,
40  DtComponentDescriptor* desc = NULL,
41  DtReaderWriterRegistry* parentRegistry = NULL);
42 
44  virtual ~DtGroundMoveToAdapterComponent() override;
45 
48  virtual const char* type() const override;
49 
51  virtual void preFirstTickInit() override;
52 
54  virtual void tick() override;
55 
63  static void moveToCallback(DtSimMessage * msg, void * usr);
64  virtual void processMoveToTask(DtSimMessage* msg);
65 
69  static DtSimComponent * creator(const DtString& name,
70  DtLocalObject* owner,
71  DtSimulationServices* simManager,
72  DtComponentDescriptor* desc = 0,
73  DtReaderWriterRegistry* parentRegistry = 0);
74 
76  virtual void registerTaskMsgCallbacks() override;
77 
79  virtual void startGroundVehicleMoveTo(DtMoveToTask& task);
80 
82  virtual void taskComplete(bool success = true) override;
83 
84 protected:
85  virtual bool postAddComponentsInit() override;
86  void lookupAndCacheProcessSR();
87 
88 
89 private:
93 
96  orig);
97 
101 
102 protected:
104 
107 
108 };
109 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtAutomotivePSR * myProcessState
Definition: groundMoveToAdapterComponent.h:103
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...
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.h:22
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
Definition: readerWriterRegistry.h:39
virtual void taskComplete(bool success=true)
If we are currently tasked, this will cause us to notify the entity that we're done and delete the ta...
Instances of DtAutomotivePSR are used to hold the shared/checkpointable data for an automotive system...
Definition: automotivePSR.h:45
File: simMsg.h.
Definition: simMessage.h:35
bool myStartGroundMoveToSubtask
Indicates that a ground vehicle move to task should be started during the next tick.
Definition: groundMoveToAdapterComponent.h:106
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
DtGroundMoveToAdapterComponent is a controller that converts legacy (pre-VRF 5.2) move-to and move-to...
Definition: groundMoveToAdapterComponent.h:31
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
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)