VR-Forces 5.0.1 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();
46 
49  virtual const char* type() const;
50 
52  virtual bool init();
53 
62  virtual void tick();
63 
65  virtual void registerTaskMsgCallbacks();
66 
67  static void waitCallback(DtSimMessage* msg, void* usr, DtSimTaskStatePtr taskStatePtr);
68 
69  virtual DtSimTaskStatePtr currentTaskState() const;
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
Definition: readerWriterRegistry.h:39
DtBoost::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
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
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:89
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
virtual bool init()
Overridden to initialize myRotaryWingEntityState.
DtSimTask is an abstract base class from which real tasks can derive. It manages the read/write capab...
Definition: simTask.h:30
virtual const char * type() const =0
Returns a string identifies the class type of component. Type values are defined in compTypes...
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 Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)