VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rotaryWingWaitController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1999 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
14 #include "vrfutil/simClock.h"
15 
16 class DtString;
18 class DtTaskMessage;
19 class DtSimMessage;
20 class DtWaitingPSR;
21 
32 {
33 
34 public:
35 
39  DtLocalObject* owner,
40  DtSimulationServices* simManager,
41  DtComponentDescriptor* desc = 0,
42  DtReaderWriterRegistry* parentRegistry = 0);
43 
45  virtual ~DtRotaryWingWaitController() override;
46 
49  virtual const char* type() const override;
50 
52  virtual bool init() override;
53 
62  virtual void tick() override;
63 
65  virtual void registerTaskMsgCallbacks() override;
66 
67  static void waitCallback(DtSimMessage* msg, void* usr, DtSimTaskStatePtr taskStatePtr);
68 
69  virtual DtSimTaskStatePtr currentTaskState() const override;
70 
71 protected:
72  virtual void processWait(const DtTaskMessage& msg, DtSimTaskStatePtr taskStatePtr);
73 
77 
82  virtual bool processWaitTask(DtSimTask* task, DtSimTaskStatePtr taskStatePtr);
83 
89  virtual bool processWaitDurationTask(DtSimTask* task, DtSimTaskStatePtr taskStatePtr);
90 
95  virtual bool processWaitElapsedTask(DtSimTask* task, DtSimTaskStatePtr taskStatePtr);
96 
100 
103 
106  const DtRotaryWingWaitController & orig);
107 
114  virtual void pilotProperties();
115 
117  virtual bool createWaitingPSR();
118 
119 public:
123  static DtSimComponent * creator(const DtString& name,
124  DtLocalObject* owner,
125  DtSimulationServices* simManager,
126  DtComponentDescriptor* desc = 0,
127  DtReaderWriterRegistry* parentRegistry = 0);
128 
129 protected:
130 
132 };
133 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
Definition: waitingPSR.h:34
virtual void registerTaskMsgCallbacks()
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
virtual const char * type() const override=0
Returns a string identifies the class type of component. Type values are defined in compTypes...
virtual bool init() override
Overridden to initialize myRotaryWingEntityState.
Definition: readerWriterRegistry.h:39
std::shared_ptr< DtSimTaskState > DtSimTaskStatePtr
Definition: taskAndTaskStateDefines.h:18
DtRotaryWingWaitController is a controller that models waiting behavior for rotary-wing entities...
Definition: rotaryWingWaitController.h:31
const DtRotaryWingTaskController & operator=(const DtRotaryWingTaskController &orig)
assignment operator; not implemented
File: simMsg.h.
Definition: simMessage.h:35
File: vlClock.h.
virtual DtSimTaskStatePtr currentTaskState() const
DtWaitingPSR * myWaitingProcessState
Definition: rotaryWingWaitController.h:131
The DtRotaryWingTaskController class creates the rotary-wing-control port group needed to control rot...
Definition: rotaryWingTaskController.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
DtSimTask is an abstract base class from which real tasks can derive. It manages the read/write capab...
Definition: simTask.h:30
virtual void tick() override
This gives the thread of control to the component. The component is ticked once each simulation from ...
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)