VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aggregateMoveToPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2024 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
15 #include "vrfobjcore/simObject.h"
18 #include "readerWriter/rwString.h"
20 
21 #include <set>
22 
26 {
27 public:
28 
31  const DtString& rwName = DtString::nullString(),
32  DtReaderWriterRegistry* parentRegistry = 0);
33 
36  const DtString& rwName = DtString::nullString(),
37  DtReaderWriterRegistry* parentRegistry = 0);
38 
40  virtual ~DtAggregateMoveToPSR() override;
41 
44 
47  const DtString& rwName = DtString::nullString(), DtReaderWriterRegistry* parentRegistry = 0) const override;
48 
51  virtual DtString type() const override;
52 
53  virtual bool taskedSubordinateInList(const DtUUID& subordinate) const;
54 
55  virtual void addTaskedSubordinate(const DtUUID& subordinate);
56 
57  virtual void removeTaskedSubordinate(const DtUUID& subordinate);
58 
59  virtual void clearTaskedSubordinates();
60 
61  virtual bool taskedSubordinatesEmpty() const;
62 
63  virtual const DtRwSimObjectReferenceList& taskedSubordinates() const;
64 
66  static DtVrfProcessStateRepository* creator (const DtString& rwName,
67  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
68 
73  virtual void setSubtaskType(const DtSimTaskMessageType& taskType);
74  virtual DtSimTaskMessageType subtaskType() const;
76 
80  virtual void setRoute(const DtUUID& routeName);
81 
83  virtual DtSimObjectReference route() const;
85 
88  virtual void setSpeed(double aSpeed);
89  virtual double speed() const;
91 
92 protected:
93 
95  void copyCurrentlyTaskedSubordinates(const DtRwSimObjectReferenceList& other);
96 
97 protected:
105 
108 
111 
114 };
UUID is a unique ID wrapper class.
Definition: uuid.h:59
DtRwReal mySpeed
Speed from task or ordered speed.
Definition: aggregateMoveToPSR.h:113
If you use a list of object names to archive which objects are part of a controller (or any object) u...
Definition: simObjectReferenceList.h:120
This is a process state repository for the DtAggregateMoveToController that stores the list of the uu...
Definition: aggregateMoveToPSR.h:25
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
DtRwSimObjectReferenceList myCurrentlyTaskedSubordinates
Readable writeable list of currently tasked subordinates. Valid only immediately after getSelf() has ...
Definition: aggregateMoveToPSR.h:104
Definition: readerWriterRegistry.h:39
DtRwString mySubtaskType
Type of subtask we&#39;re using to implement behavior.
Definition: aggregateMoveToPSR.h:107
DtRwSimObjectReference myRoute
Name of working route used by the controller.
Definition: aggregateMoveToPSR.h:110
Specialized reader/writer version of the shared object reference that will encapsulate the actual sha...
Definition: rwSimObjectReference.h:21
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
Define constants for types of tasks, sets, admin messages, reports, and sim commands (all sent via ra...
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
Class DtVrfProcessStateRepository: Abstract base class for all process state repositories. Process state repositories represent (potentially) shared, savable information for one or more components functioning together to achieve some process or set of processes; such as aiming and firing a weapon; moving an object; or just waiting a specified amount of time.
Definition: vrfProcessStateRepository.h:45
virtual DtString type() const =0
Returns the string type of the repository, as defined in psrTypes.h.
const DtVrfProcessStateRepository & operator=(const DtVrfProcessStateRepository &orig)
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)