VR-Forces Developer's Guide
 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 
16 #include <vlutil/vlString.h>
17 
18 class DtSimMessage;
20 
38 {
39 public:
40 
44  DtLocalObject* owner,
45  DtSimulationServices* simManager,
46  DtComponentDescriptor* desc = 0,
47  DtReaderWriterRegistry* parentRegistry = 0);
48 
49  virtual ~DtDisaggregatedPatrolBetweenController() override;
50 
52  virtual bool init() override;
53 
56  virtual const char* type() const override;
57 
60  virtual void registerTaskMsgCallbacks() override;
61 
62  static void patrolBetweenCallback(DtSimMessage* msg, void* usr, DtSimTaskStatePtr taskStatePtr);
63 
64  virtual void preFirstTickInit() override;
65 
68  virtual void tick() override;
69 
71  virtual DtSimTaskStatePtr currentTaskState() const override;
72 
76  static void taskCompleteReportCallback(DtSimMessage * msg, void * usr);
77 
81  static DtSimComponent * creator(const DtString& name,
82  DtLocalObject* owner,
83  DtSimulationServices* simManager,
84  DtComponentDescriptor* desc = 0,
85  DtReaderWriterRegistry* parentRegistry = 0);
86 
87 protected:
88  virtual void processPatrolBetween(const DtTaskMessage& msg, DtSimTaskStatePtr taskStatePtr);
89 
93  virtual void onTaskComplete(DtSimMessage * msg);
94 
102  virtual bool moveTo(const DtUUID& controlPoint);
103 
109  virtual bool createPSR();
110 
111 private:
112 
115 
118 
119 protected:
120 
124 
126 };
127 
UUID is a unique ID wrapper class.
Definition: uuid.h:59
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual const char * type() const override=0
Returns a string identifies the class type of component. Type values are defined in compTypes...
virtual void registerTaskMsgCallbacks()
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.h:22
DtAggregateLocalObjectFacade myAggregateLocalObjectFacade
Definition: disaggregatedPatrolBetweenController.h:125
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
std::shared_ptr< DtSimTaskState > DtSimTaskStatePtr
Definition: taskAndTaskStateDefines.h:18
DtAggregatePatrolBetweenController is a task controller responsible for executing DtPatrolBetweenTask...
Definition: disaggregatedPatrolBetweenController.h:37
DtAggregatePatrolBetweenPSR * myProcessState
Container for state data associated with this component. This state is saved and restored as part of ...
Definition: disaggregatedPatrolBetweenController.h:123
virtual bool init() override
Calls setRadio()
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. The component is ticked once each simulation from ...
virtual DtSimTaskStatePtr currentTaskState() const
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
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
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)