40 const DtString& rwName = DtString::nullString(),
45 const DtString& rwName = DtString::nullString(),
56 const DtString& rwName = DtString::nullString(),
67 virtual void setRoute(
const DtUUID& route);
77 virtual void setTimeToNextMaintainFormationTick(
DtTime simTime);
78 virtual DtTime timeToNextMaintainFormationTick()
const;
82 virtual DtUUID lookupRoute(
int promotionId)
const;
85 virtual DtUUID lookupRoute(
const DtUUID& subordinate)
const;
88 virtual void clearPromotionIdRouteList();
91 virtual void addPromotionIdRouteEntry(
int promotionId,
98 virtual void addTaskedSubordinatePromotionIdEntry(
99 const DtUUID& subordinate,
int promotionId);
102 virtual void removeTaskedSubordinate(
const DtUUID& subordiante);
106 virtual bool isATaskedSubordinate(
const DtUUID& subordinate);
109 virtual void removeRoute(
const DtUUID& route);
112 virtual void clearTaskSubordinates();
115 virtual bool taskedSubordinatesEmpty()
const;
119 virtual void setMovingToRoute(
bool trueOrFalse);
120 virtual bool movingToRoute()
const;
128 virtual void setRouteIsDiscovered(
bool value);
129 virtual bool routeIsDiscovered()
const;
134 virtual void setIsGeneratingFormationRoutes(
bool value);
135 virtual bool isGeneratingFormationRoutes()
const;
140 virtual void setIsReevaluatingFormationRoutes(
bool value);
141 virtual bool isReevaluatingFormationRoutes()
const;
146 virtual void setSpeed(
double aSpeed);
147 virtual double speed()
const;
153 virtual void setFormationName(
const DtString& name);
154 virtual DtString formationName()
const;
157 virtual void setFormationLeader(
const DtUUID& leader);
158 virtual DtUUID formationLeader()
const;
162 virtual void putSelf(std::string& fp,
int indentLevel = 0,
163 bool writeUnspecified =
false,
UUID is a unique ID wrapper class.
Definition: rwUUID.h:226
std::map< int, DtUUID > DtPromotionIdUUIDMap
Definition: aggregateMoveAlongPSR.h:34
DtPromotionIdUUIDList myPromotionIdRouteList
Readable writeable list of promotion Id/route. Valid only immediately after getSelf() has been called...
Definition: aggregateMoveAlongPSR.h:193
std::map< DtUUID, int > DtUUIDPromotionIdMap
Definition: aggregateMoveAlongPSR.h:33
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
Definition: readerWriterRegistry.h:39
Contains the DtUUID class declaration.
DtRwBoolean myIsGeneratingFormationRoutes
Flag indicating whether we are currently generating formation routes.
Definition: aggregateMoveAlongPSR.h:212
DtRwString myFormationName
The current formation name.
Definition: aggregateMoveAlongPSR.h:221
DtUUIDPromotionIdMap myCurrentlyTaskedSubordinates
Map of currently tasked subordinate object uuids to promotion Id.
Definition: aggregateMoveAlongPSR.h:181
Description: Readable, Writable uuid string. Use this class in order to convert from object marking t...
Definition: rwUUID.h:428
Specialized reader/writer version of the shared object reference that will encapsulate the actual sha...
Definition: simObjectReference.h:74
DtRwSimObjectReference myRoute
Route the aggregate is currently moving along.
Definition: aggregateMoveAlongPSR.h:187
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtRwBoolean myRouteIsDiscovered
Flag indicating whether has been discovered or not.
Definition: aggregateMoveAlongPSR.h:209
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
DtRwBoolean myMovingToRoute
Flag indicating whether we're in the moving to route phase of the task.
Definition: aggregateMoveAlongPSR.h:206
DtPromotionIdUUIDMap myPromotionIndexRouteMap
Map of promotion Ids (formation positions) to route uuids.
Definition: aggregateMoveAlongPSR.h:178
virtual void putSelf(std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename())
Top level call to write itself to file. If write unspecified is true, will write entries that are uns...
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtRwReal mySpeed
Speed from task or ordered speed.
Definition: aggregateMoveAlongPSR.h:218
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
DtPromotionIdUUIDList myPromotionIdEntityList
Readable writeable list of promotion Id/entity. Valid only immediately after getSelf() has been calle...
Definition: aggregateMoveAlongPSR.h:199
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
virtual void getSelf(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)
Top level to read itself from an input stream. searchPath is passed down to all DtReaderWriter member...
file aggregateMoveAlongPSR.h
Definition: aggregateMoveAlongPSR.h:31
virtual DtString type() const =0
Returns the string type of the repository, as defined in procSRTypes.h.
DtRwReal myTimeToNextMaintainFormationTick
Time in seconds until next tick in which to perform formation monitoring.
Definition: aggregateMoveAlongPSR.h:202
static const DtFilename & appPath()
Gets the current working directory. The first time this accessor is called, it determines the current...
const DtVrfProcessStateRepository & operator=(const DtVrfProcessStateRepository &orig)
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
DtRwUUID myFormationLeader
The leader of the formation (for leadFollowInFormation)
Definition: aggregateMoveAlongPSR.h:184
DtRwBoolean myIsReevaluatingFormationRoutes
Flag indicating whether we are currently reevaluating formation routes.
Definition: aggregateMoveAlongPSR.h:215