VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
holdController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
13 
14 class DtString;
16 class DtTaskMessage;
17 class DtSimMessage;
18 class DtHoldPSR;
19 
23 {
24 public:
25 
27  DtHoldController(const DtString& name, DtLocalObject* owner, DtSimulationServices* simManager,
28  DtComponentDescriptor* desc = 0, DtReaderWriterRegistry* parentRegistry = 0);
29 
31  virtual ~DtHoldController();
32 
35  virtual const char* type() const;
36 
38  virtual bool init();
39 
41  virtual void tick();
42 
44  virtual void enable();
45  virtual void registerTaskMsgCallbacks();
46 
48  virtual void disable();
49 
51  static void holdUntilTaskCallback(DtSimMessage* msg, void* usr, DtSimTaskStatePtr taskStatePtr);
52 
55  static void taskCompleteReportCallback(DtSimMessage * msg, void * usr);
56 
60  static DtSimComponent * creator(const DtString& name,
61  DtLocalObject* owner,
62  DtSimulationServices* simManager,
63  DtComponentDescriptor* desc = 0,
64  DtReaderWriterRegistry* parentRegistry = 0);
65 
66 protected:
67 
69  virtual void processHoldUntilTask(DtSimTask* task, DtSimTaskStatePtr taskState);
70 
73  virtual void onTaskComplete(DtSimMessage * msg);
74 
80  virtual bool createPSR();
81 
82 private:
85 
88 
90  const DtHoldController& operator=(const DtHoldController& orig);
91 
92 protected:
93 
97 };
98 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual void enable()
Overridden to call registerTaskMsgCallbacks().
virtual void registerTaskMsgCallbacks()
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.h:20
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
virtual const char * type() const =0
Returns a string identifies the class type of component. Type values are defined in compTypes...
virtual bool init()
Calls setRadio()
DtBoost::shared_ptr< DtSimTaskState > DtSimTaskStatePtr
Definition: taskAndTaskStateDefines.h:18
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
class DtHoldPSR:
Definition: holdPSR.h:15
virtual void disable()
Overridden to allow tasks controllers that can be disabled to call task complete. ...
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:90
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
DtSimTask is an abstract base class from which real tasks can derive. It manages the read/write capab...
Definition: simTask.h:30
DtHoldPSR * myProcessState
Container for state data associated with this component. This state is saved and restored as part of ...
Definition: holdController.h:96
DtHoldController is a controller that models holding behavior for ground entities.
Definition: holdController.h:22
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 Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)