VR-Forces 4.10 Class Documentation
 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;
17 class DtSimManager;
18 class DtTaskMessage;
19 class DtSimMessage;
20 class DtWaitingPSR;
21 
32 {
33 
34 public:
35 
39  DtVrfObject* owner,
40  DtSimManager* 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  DtVrfObject* owner,
125  DtSimManager* 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
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
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:42
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.
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:30
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
virtual bool init()
Overridden to initialize myRotaryWingEntityState.
DtSimTask is an abstract base class from which real tasks can derive.
Definition: simTask.h:31
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
virtual const char * type() const =0
Returns a string identifies the class type of component.
A DtTaskMsg is a DtRadioMsg with a pointer to a task.
Definition: taskMessage.h:19

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)