![]() |
VR-Forces 5.0.1 Developer's Guide
|
Base library for data that is used to control how spawn points generate entities. This data structure has three uses:

Public Member Functions | |
| DtRwSpawnData (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtRwSpawnData (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtRwSpawnData (const DtRwSpawnData &orig, const DtString &name="temp-spawn-data", DtReaderWriterRegistry *parentRegistry=NULL) | |
| const DtRwSpawnData & | operator= (const DtRwSpawnData &orig) |
| virtual | ~DtRwSpawnData () |
| virtual const char * | readerWriterType () const |
| virtual DtString | stringRep () const |
| virtual const DtUUID & | uuid () const |
| void | setUUID (const DtUUID &) |
| virtual const DtString & | templateDescription () const |
| virtual void | setTemplateDescription (const DtString &desc) |
| virtual const DtString & | overlay () const |
| virtual void | setOverlay (const DtString &desc) |
| virtual const DtString & | templateName () const |
| virtual void | setTemplateName (const DtString &name) |
| virtual bool | isTimeBased () const |
| virtual void | setIsTimeBased (bool isTimeBased) |
| virtual bool | usesClockTime () const |
| virtual void | setUsesClockTime (bool isClockTime) |
| virtual void | setSpawnStartTime (DtReal t) |
| virtual DtReal | spawnStartTime () const |
| virtual void | setSpawnEndTime (DtReal t) |
| virtual DtReal | spawnEndTime () const |
| virtual void | setSpawnPeriod (DtReal t) |
| virtual DtReal | spawnPeriod () const |
| virtual void | setSpawnVariance (DtReal t) |
| virtual DtReal | spawnVariance () const |
| virtual bool | isCyclical () const |
| virtual void | setIsCyclical (bool isCyclical) |
| virtual DtReal | cyclePeriod () const |
| virtual void | setCyclePeriod (DtReal t) |
| virtual DtReal | burstPeriodVariance () const |
| virtual void | setBurstPeriodVariance (DtReal t) |
| virtual DtReal | dutyCycle () const |
| virtual void | setDutyCycle (DtReal pct) |
| virtual DtReal | startOffset () const |
| virtual void | setStartOffset (DtReal t) |
| virtual void | setSpawnMaxCount (unsigned t) |
| virtual unsigned | spawnMaxCount () const |
| virtual void | setSpecifySpeed (bool) |
| virtual bool | specifySpeed () const |
| virtual void | setSpawnMinSpeed (DtReal t) |
| virtual DtReal | spawnMinSpeed () const |
| virtual void | setSpawnMaxSpeed (DtReal t) |
| virtual DtReal | spawnMaxSpeed () const |
| virtual void | setSpawnObjectTypes (const DtRwObjectTypeInfoList &t) |
| virtual const DtRwObjectTypeInfoList & | spawnObjectTypes () const |
| virtual DtRwObjectTypeInfoList & | spawnObjectTypes () |
| virtual void | addSpawnObjectType (const DtRwObjectTypeInfo &newType) |
| virtual void | removeSpawnObjectType (const DtRwObjectType &remType) |
| virtual void | removeSpawnObjectType (const DtString &name) |
| virtual void | setCreateOnVectorNetwork (bool t) |
| virtual bool | createOnVectorNetwork () const |
| virtual void | setSinkPoints (const DtRwTemplatedUUIDList &t) |
| virtual const DtRwTemplatedUUIDList & | sinkPoints () const |
| virtual DtRwTemplatedUUIDList & | sinkPoints () |
| virtual bool | isInSinkList (const DtUUID &) const |
| virtual void | addSinkNode (const DtUUID &) |
| virtual void | removeSinkNode (const DtUUID &) |
| virtual void | setSpawnPoints (const DtRwTemplatedUUIDList &t) |
| virtual const DtRwTemplatedUUIDList & | spawnPoints () const |
| virtual DtRwTemplatedUUIDList & | spawnPoints () |
| virtual bool | isInSpawnList (const DtUUID &) const |
| virtual void | addSpawnPoint (const DtUUID &) |
| virtual void | removeSpawnPoint (const DtUUID &) |
| virtual const DtPlan & | entityPlan () const |
| virtual void | setEntityPlan (const DtPlan &plan) |
Public Member Functions inherited from DtReaderWriter | |
| DtReaderWriter () | |
| DtReaderWriter (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false) | |
| DtReaderWriter (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false) | |
| DtReaderWriter (const DtString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtReaderWriter (const DtSymbolString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtReaderWriter (const DtReaderWriter &, DtReaderWriterRegistry *parentRegistry=NULL) | |
| const DtReaderWriter & | operator= (const DtReaderWriter &orig) |
| bool | operator== (const DtReaderWriter &) const |
| bool | operator!= (const DtReaderWriter &rhs) |
| virtual | ~DtReaderWriter () |
| virtual void | putSelf (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename()) |
| virtual void | postPutSelf () |
| virtual void | prePutSelf () |
| virtual void | getSelf (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference()) |
| virtual void | postGetSelf () |
| virtual void | preGetSelf () |
| virtual void | writeSelf (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename()) |
| virtual DtSymbolString | name () const |
| virtual void | addAlias (const DtSymbolString &alias) |
| virtual void | addAlias (const DtString &alias) |
| virtual bool | hasAlias (const DtSymbolString &alias) |
| virtual const aliasContainer & | aliases () const |
| virtual void | setReadonly (bool flag) |
| bool | isReadonly () const |
| virtual void | reset () |
| virtual int | alignment () const |
| virtual bool | variableIsBound () const |
| virtual void | unbindVariable () |
| virtual void | setName (const DtString &) |
| virtual const char * | xmlType () const |
| virtual DtString | prettyPrint () const |
| std::string | debugText () const |
| virtual void | bindVariables (DtVariableBindingsList variableBindings) |
| virtual std::list < DtVariableNameType > | unboundVariables () const |
| bool | invalid () const |
| virtual bool | hasChild (const DtReaderWriter *p) const |
| virtual bool | hasVariableReference () const |
| virtual void | bindLocalVariables (const DtVariableBindingsList &variableBindings) |
| virtual void | recordUpdateTime () const |
| virtual bool | wasUpdatedSince (DtTime t) const |
| virtual bool | changedSinceLastChecked () |
| virtual bool | peekChangedSinceLastChecked () const |
| virtual void | putData (std::string &fp, int indentLevel=0) |
| virtual DtlObjPtr | getData (DtlObjPtr args, const SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) |
| virtual void | setValueSpecified (bool specified, bool recurse=false) |
| virtual bool | valueSpecified () const |
| virtual bool | isVariableReference () const |
| virtual void | setIsVariableReference (bool value) |
| virtual void | clearAllVariableReferenceFlags () |
| virtual DtSymbolString | variableName () const |
| virtual void | setVariableName (const DtSymbolString variableName) |
| virtual const DtReaderWriter * | defaultRWValue () const |
| virtual DtReaderWriter * | defaultRWValue () |
| virtual void | setDefaultRWValue (DtReaderWriter *) |
| virtual bool | checkAndSetDefaultRWValue (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference()) |
| const DtReaderWriterRegistry & | registry () const |
| DtReaderWriterRegistry & | registry () |
| virtual DtPropertyInterface * | property () |
| virtual const DtPropertyInterface * | property () const |
| virtual DtString | toXml () const |
| virtual DtRwVariableBindings * | generateVariableBindings () const |
| virtual bool | toXml (const DtFilename &) const |
| virtual bool | fromXml (const DtString &) |
| virtual bool | fromXmlFile (const DtFilename &) |
| virtual void | putSelf (DtEnvironmentSP, DtEnvValueSP parent) const |
| virtual void | putData (DtEnvironmentSP, DtEnvValueSP value) const |
| virtual void | putVariableReference (DtEnvironmentSP, DtEnvValueSP value) const |
| virtual void | getSelf (const DtEnvironmentSP, const DtEnvValueSP root, const SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &bindings=DtVariableBindingsList()) |
| virtual void | getData (const DtEnvironmentSP, const DtEnvValueSP, const SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &bindings=DtVariableBindingsList()) |
| virtual void | unrecognizedItem (const DtEnvironmentSP env, const DtEnvValueSP root, const SearchPaths &searchPaths, const DtVariableBindingsList &varBindings) |
| virtual void | getVariableReference (DtEnvironmentSP, DtEnvValueSP value) |
Protected Member Functions | |
| DtRwSpawnData () | |
Protected Member Functions inherited from DtReaderWriter | |
| virtual void | bindToRwAsVariable (const DtReaderWriter *rw) |
|
protected |
Constructors etc.
Default constructor; not implemented.
| DtRwSpawnData::DtRwSpawnData | ( | const DtString & | name, |
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
constructor
| DtRwSpawnData::DtRwSpawnData | ( | const DtSymbolString & | name, |
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
| DtRwSpawnData::DtRwSpawnData | ( | const DtRwSpawnData & | orig, |
| const DtString & | name = "temp-spawn-data", |
||
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
copy constructor
|
virtual |
Destructor.
| const DtRwSpawnData& DtRwSpawnData::operator= | ( | const DtRwSpawnData & | orig | ) |
assignment operator
|
virtual |
Used to supply a string type that this reader writer type is. This can be used in place of dynamic-casting. Also used by the opd editor to determine which type of control to create.
Reimplemented from DtReaderWriter.
|
virtual |
Produces a print representation of the template data in str.
|
virtual |
Accessors and mutators for the spawn parameter data.
The [short] name of the template. For a point, this is the template that this spawn object should take its parameter values from. If the template name is null, then the parameter values come from the remaining fields in the class.
|
virtual |
Accessors and mutators for the spawn parameter data.
The [short] name of the template. For a point, this is the template that this spawn object should take its parameter values from. If the template name is null, then the parameter values come from the remaining fields in the class.
|
virtual |
The unique identifier of this spawn template.
| void DtRwSpawnData::setUUID | ( | const DtUUID & | ) |
DO NOT CALL. This is only used for archiving/dearchiving purposes from the network.
|
virtual |
Description of the template. A user can note something about the types of entities this templates spawns, or whatever.
|
virtual |
|
virtual |
The overlay to place the created simulation objects on. Default is Simulation Objects overlay.
|
virtual |
|
virtual |
Indicates whether spawning activity is restricted to certain times.
|
virtual |
Indicates whether spawning activity is restricted to certain times.
|
virtual |
Indicates whether the start and stop times should be interpreted as clock time (vs. sim time).
|
virtual |
Indicates whether the start and stop times should be interpreted as clock time (vs. sim time).
|
virtual |
The simulation time when spawning starts; in seconds since start time of simulation.
|
virtual |
The simulation time when spawning starts; in seconds since start time of simulation.
|
virtual |
The simulation time when spawning ends; in seconds since start time of simulation.
|
virtual |
The simulation time when spawning ends; in seconds since start time of simulation.
|
virtual |
The spawn period, in seconds; how much time between spawn events.
|
virtual |
The spawn period, in seconds; how much time between spawn events.
|
virtual |
The random variation in spawn time, as a percentage of the spawn period. I.e., for a spawn period of 6 seconds: a variance of 100 means that the time between spawns varies uniformly between 0 and 12 seconds; a variance of 50 means that the time between spawns varies uniformly between 3 and 9 seconds.
|
virtual |
The random variation in spawn time, as a percentage of the spawn period. I.e., for a spawn period of 6 seconds: a variance of 100 means that the time between spawns varies uniformly between 0 and 12 seconds; a variance of 50 means that the time between spawns varies uniformly between 3 and 9 seconds.
|
virtual |
The flag indicates whether the spawning activity is cyclical, i.e. has bursts with periods of inactivity between bursts. If not, activity is continuous.
Indicates that spawn activity is cyclical.
|
virtual |
The flag indicates whether the spawning activity is cyclical, i.e. has bursts with periods of inactivity between bursts. If not, activity is continuous.
Indicates that spawn activity is cyclical.
|
virtual |
The period of the cyclical spawning, in seconds.
|
virtual |
The period of the cyclical spawning, in seconds.
|
virtual |
The variance of the burst cycle period, in percent of the period. I.e., for a cycle period of 6 minutes: a variance of 100 means that the time between bursts varies uniformly between 0 and 12 minutes; a variance of 50 means that the time between bursts varies uniformly between 3 and 9 minutes.
|
virtual |
The variance of the burst cycle period, in percent of the period. I.e., for a cycle period of 6 minutes: a variance of 100 means that the time between bursts varies uniformly between 0 and 12 minutes; a variance of 50 means that the time between bursts varies uniformly between 3 and 9 minutes.
|
virtual |
The duty cycle of the spawning cycle, as %. I.e. period of 60 seconds, duty cycle of 20 means that spawning happens for 12 seconds and then no spawning occurs for 48 seconds, and then the cycle is repeated.
|
virtual |
The duty cycle of the spawning cycle, as %. I.e. period of 60 seconds, duty cycle of 20 means that spawning happens for 12 seconds and then no spawning occurs for 48 seconds, and then the cycle is repeated.
|
virtual |
The offset from the start of the cycle to the first active time, in seconds. In the example above, an offset of 15 means from the start time, there is no spawning for 15 seconds, then spawning occurs for 12 seconds, then none for 48 seconds, etc.
|
virtual |
The offset from the start of the cycle to the first active time, in seconds. In the example above, an offset of 15 means from the start time, there is no spawning for 15 seconds, then spawning occurs for 12 seconds, then none for 48 seconds, etc.
|
virtual |
Stop spawning if we have this many entities already.
|
virtual |
Stop spawning if we have this many entities already.
|
virtual |
Sets whether or not to use the default speed, or the specified min/max speed If default speed is used all entities will be spawned at their default minimum speed. Default is false.
|
virtual |
Sets whether or not to use the default speed, or the specified min/max speed If default speed is used all entities will be spawned at their default minimum speed. Default is false.
|
virtual |
Minimum Speed of Spawn Entity In meters/sec.
|
virtual |
Minimum Speed of Spawn Entity In meters/sec.
|
virtual |
Maximum Speed of Spawn Entity In meters/sec.
|
virtual |
Maximum Speed of Spawn Entity In meters/sec.
|
virtual |
Types of objects to spawn.
|
virtual |
Types of objects to spawn.
|
virtual |
Types of objects to spawn.
|
virtual |
Types of objects to spawn.
|
virtual |
Types of objects to spawn.
|
virtual |
Types of objects to spawn.
|
virtual |
Use Roads?
|
virtual |
Use Roads?
|
virtual |
The points (names) to use as sinks (move destinations).Was: setSinkNodeNames.
|
virtual |
Was: sinkNodeNames.
|
virtual |
Was: sinkNodeNames.
Indicates whether this name is in the sink node list.
|
virtual |
Adds the sink node to the list. Makes a copy of the argument before adding.
|
virtual |
Removes the sink node identified by uuid.
|
virtual |
The points (names) to use as spawn points.
|
virtual |
The points (names) to use as spawn points.
|
virtual |
The points (names) to use as spawn points.
Indicates whether this name is in the spawn points list.
|
virtual |
Adds the spawn point to the list. Makes a copy of the argument before adding.
|
virtual |
Removes the spawn point identified by uuid.
|
virtual |
The plan that the entity will follow.
If this plan is empty, a hard-coded default plan will be used instead (which is to move to a sink point and delete self).
|
virtual |
The plan that the entity will follow.
If this plan is empty, a hard-coded default plan will be used instead (which is to move to a sink point and delete self).
|
protected |
These members are saved and loaded in scenario files.
|
protected |
These members are saved and loaded in scenario files.
|
protected |
These members are saved and loaded in scenario files.
|
protected |
These members are saved and loaded in scenario files.
|
protected |
These members are saved and loaded in scenario files.
|
protected |
These members are saved and loaded in scenario files.
|
protected |
These members are saved and loaded in scenario files.
|
protected |
These members are saved and loaded in scenario files.
|
protected |
These members are saved and loaded in scenario files.
|
protected |
These members are saved and loaded in scenario files.
|
protected |
These members are saved and loaded in scenario files.
|
protected |
These members are saved and loaded in scenario files.
|
protected |
These members are saved and loaded in scenario files.
|
protected |
These members are saved and loaded in scenario files.
|
protected |
These members are saved and loaded in scenario files.
|
protected |
These members are saved and loaded in scenario files.
|
protected |
These members are saved and loaded in scenario files.
|
protected |
These members are saved and loaded in scenario files.
|
protected |
These members are saved and loaded in scenario files.
|
protected |
These members are saved and loaded in scenario files.
|
protected |
These members are saved and loaded in scenario files.
|
protected |
These members are saved and loaded in scenario files.
|
protected |
These members are saved and loaded in scenario files.
|
protected |
These members are saved and loaded in scenario files.