VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
spawnControllerPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include <readerWriter/rwString.h>
13 #include <readerWriter/rwReal.h>
15 #include <vrfmsgs/rwSpawnData.h>
19 #include <vrfutil/rwUUID.h>
20 
24 {
25 public:
27 
30  const DtString& rwName = DtString::nullString(),
31  DtReaderWriterRegistry* parentRegistry = 0);
32 
35  const DtString& rwName = DtString::nullString(),
36  DtReaderWriterRegistry* parentRegistry = 0);
37 
39  virtual ~DtSpawnControllerPSR();
40 
43 
46  const DtString& rwName = DtString::nullString(),
47  DtReaderWriterRegistry* parentRegistry = 0) const;
48 
50  virtual DtString type() const;
51 
53 
54  virtual void setNextCreationTime(double t);
55  virtual double nextCreationTime() const;
57 
64  virtual void setLastCycleStartTime(const DtTime start);
65  virtual DtTime lastCycleStartTime() const;
67 
75  virtual void setNextCycleStartTime(const DtTime start);
76  virtual DtTime nextCycleStartTime() const;
78 
81 
82  virtual DtTrafficSinkList& trafficAndSinkList();
83  virtual const DtTrafficSinkList& trafficAndSinkList() const;
84  virtual void addTraffic(const DtUUID& trafficObject, const DtUUID& sinkPoint);
86 
90  virtual const DtRwSpawnData& spawnParameters() const;
91 
92  virtual void setSpawnTemplateUUID(const DtUUID&);
93  virtual const DtUUID& spawnTemplateUUID() const;
95 
96 public:
97 
99  static DtVrfProcessStateRepository* creator (const DtString& rwName,
100  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
101 
102 protected:
103  virtual void postGetSelf();
104 
105 protected:
110 
113 };
UUID is a unique ID wrapper class.
Definition: rwUUID.h:229
virtual void postGetSelf()
Called after either version of getSelf (mtl or environment). Default is no-op.
Definition: readerWriterRegistry.h:39
Contains the DtUUID class declaration.
DtRwReal myNextCycleStartTime
Definition: spawnControllerPSR.h:108
Description: Readable, Writable uuid string. Use this class in order to convert from object marking t...
Definition: rwUUID.h:431
Process state repository used to store runtime state of the DtSpawnController.
Definition: spawnControllerPSR.h:23
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
Base library for data that is used to control how spawn points generate entities. This data structure...
Definition: rwSpawnData.h:37
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
A pair of names, spawned-object and sink-point, that are tracked by the spawn controller until the sp...
DtRwUUID mySpawnTemplateUUID
Definition: spawnControllerPSR.h:112
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
DtTrafficSinkList myTrafficSinkList
Definition: spawnControllerPSR.h:109
DtRwReal myLastCycleStartTime
Definition: spawnControllerPSR.h:107
DtRwReal myNextCreationTime
Definition: spawnControllerPSR.h:106
virtual DtString type() const =0
Returns the string type of the repository, as defined in procSRTypes.h.
DtRwSpawnData mySpawnParameters
Definition: spawnControllerPSR.h:111
DtRwTemplatedListPtr< DtRwTrafficSinkListEntry, true > DtTrafficSinkList
Definition: spawnControllerPSR.h:26
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

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)