VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
disaggregatedPatrolBetweenController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2004 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
12 #pragma once
13 
15 #include <vlutil/vlString.h>
16 
17 class DtSimMessage;
19 
37 {
38 public:
39 
43  DtVrfObject* owner,
44  DtSimManager* simManager,
45  DtComponentDescriptor* desc = 0,
46  DtReaderWriterRegistry* parentRegistry = 0);
47 
49 
51  virtual bool init();
52 
55  virtual const char* type() const;
56 
59  virtual void registerTaskMsgCallbacks();
60 
61  static void patrolBetweenCallback(DtSimMessage* msg, void* usr, DtSimTaskStatePtr taskStatePtr);
62 
65  virtual void tick();
66 
68  virtual DtSimTaskStatePtr currentTaskState() const;
69 
73  static void taskCompleteReportCallback(DtSimMessage * msg, void * usr);
74 
78  static DtSimComponent * creator(const DtString& name,
79  DtVrfObject* owner,
80  DtSimManager* simManager,
81  DtComponentDescriptor* desc = 0,
82  DtReaderWriterRegistry* parentRegistry = 0);
83 
84 protected:
85  virtual void processPatrolBetween(const DtTaskMessage& msg, DtSimTaskStatePtr taskStatePtr);
86 
90  virtual void onTaskComplete(DtSimMessage * msg);
91 
99  virtual bool moveTo(const DtUUID& controlPoint);
100 
106  virtual bool createPSR();
107 
108 private:
109 
112 
115 
116 protected:
117 
121 
124 };
125 
UUID is a unique ID wrapper class.
Definition: rwUUID.h:222
#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
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:42
Definition: readerWriterRegistry.h:39
virtual const char * type() const =0
Returns a string identifies the class type of component.
virtual bool init()
Calls setRadio()
DtAggregatePatrolBetweenController is a task controller responsible for executing DtPatrolBetweenTask...
Definition: disaggregatedPatrolBetweenController.h:36
bool myFirstTick
Flag set to true until the first non-zero dT() tick, false thereafter.
Definition: disaggregatedPatrolBetweenController.h:123
DtBoost::shared_ptr< DtSimTaskState > DtSimTaskStatePtr
Definition: taskAndTaskStateDefines.h:18
DtAggregatePatrolBetweenPSR * myProcessState
Container for state data associated with this component.
Definition: disaggregatedPatrolBetweenController.h:120
This is a process state repository for the DtAggregatePatrolBetweenController that stores state of wh...
Definition: aggregatePatrolBetweenPSR.h:23
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component.
virtual DtSimTaskStatePtr currentTaskState() const
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
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)