![]() |
VR-Forces 4.2 Class Documentation
|
Instances of DtVrfObjectParameters are the readable/writeable objects that contain the information necessary to construct a DtVrfObject. More...

Public Types | |
| typedef DtRwTemplatedListPtr < DtRwAutoConnection > | DtAutoConnectionsListPtr |
Public Types inherited from DtReaderWriter | |
| typedef std::vector < DtSymbolString > | aliasContainer |
| typedef std::vector < DtSymbolString >::iterator | aliasIter |
| typedef std::vector < DtSymbolString > ::const_iterator | aliasConstIter |
| typedef std::pair < DtSymbolString, DtString > | DtVariableNameType |
| typedef DtReaderWriterFactory *(* | DtReaderWriterFactoryCreatorFcn )() |
Public Member Functions | |
| DtVrfObjectParameters (const DtString &name=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=NULL, DtEnvironmentSP env=DtEnvironmentSP(), DtEnvValueSP *objectNode=NULL) | |
| Constructor with parameters to set up read/writability correctly. | |
| DtVrfObjectParameters (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL, DtEnvironmentSP env=DtEnvironmentSP(), DtEnvValueSP *objectNode=NULL) | |
| virtual | ~DtVrfObjectParameters () |
| destructor | |
| DtVrfObjectParameters & | operator= (const DtVrfObjectParameters &orig) |
| assignment operator | |
| virtual DtVrfObjectParameters * | clone (const DtString &name=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=NULL) const |
| virtual DtVrfObjectParameters * | clone (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL) const |
| virtual bool | init () |
| Invoked when created so that deriving classes may do virtual allocation as necessary. | |
| virtual DtString | type () const |
| Returns a string identifying the type of parameter descriptor. | |
| virtual bool | inheritValues (const DtVrfObjectParameters *benefactor) |
| Values left unspecified may be inherited from a parameter block of the same type, typically an ancestor in the DIS/RPR entity type hierarchy. | |
| virtual void | inheritValuesFromThisType (const DtVrfObjectParameters *benefactor) |
| virtual bool | createLocalSubComponentTypes () |
| Creates a DtVrfObjectSubComponentTypes type of composed object type. | |
| virtual bool | createRemoteSubComponentTypes () |
| Creates a DtVrfObjectSubComponentTypes type of composed object type. | |
| virtual DtVrfObjectSubComponentTypes * | localVrfSubComponentTypes () const |
| Get local sub-component types. | |
| virtual DtVrfObjectSubComponentTypes * | remoteVrfSubComponentTypes () const |
| Get remote sub-component types. | |
| virtual void | setMinTickPeriod (DtReal minTickPeriod) |
| Set the minimum tick period for this object (individual components and the network interface may override) | |
| virtual DtReal | minTickPeriod () const |
| get the minimum tick period for this component (individual components and the network interface may override) | |
| virtual void | setMinTickPeriodVariance (DtReal minTickPeriodVariance) |
| Set the minimum tick period variance for this component (individual components and the network interface may override) | |
| virtual DtReal | minTickPeriodVariance () const |
| Get the minimum tick period variance for this component (individual components and the network interface may override) | |
| virtual DtForceType | forceType () const |
| Currently unused. | |
| virtual void | setForceType (const DtForceType force) |
| virtual const DtString & | category () const |
| Accessor/mutator for myCategory. | |
| virtual void | setCategory (const DtString &category) |
| virtual bool | categorySpecified () const |
| Returns true of the category was specified in the file. | |
| virtual const DtString & | echelonLevel () const |
| Accessor/mutator for myEchelonLevel. | |
| virtual void | setEchelonLevel (const DtString &echelonLevel) |
| virtual bool | echelonLevelSpecified () const |
| Returns true of the echelon level was specified in the file. | |
| virtual bool | organized () const |
| Accessor/mutator for myOrganized. | |
| virtual void | setOrganized (bool organized) |
| virtual const DtComponentDescriptorList & | sensorDescriptorList () const |
| Accessor/mutator for mySensorDescriptorList. | |
| virtual DtComponentDescriptorList & | sensorDescriptorList () |
| virtual void | setSensorDescriptorList (const DtComponentDescriptorList &list) |
| virtual const DtComponentDescriptorList & | controllerDescriptorList () const |
| Accessor/mutator for myControllerDescriptorList. | |
| virtual DtComponentDescriptorList & | controllerDescriptorList () |
| virtual void | setControllerDescriptorList (const DtComponentDescriptorList &list) |
| virtual const DtComponentDescriptorList & | actuatorDescriptorList () const |
| Accessor/mutator for myActuatorDescriptorList. | |
| virtual DtComponentDescriptorList & | actuatorDescriptorList () |
| virtual void | setActuatorDescriptorList (const DtComponentDescriptorList &list) |
| virtual const DtConnectionDescriptorList & | connectionDescriptorList () const |
| Accessor/mutator for myConnectionDescriptorList. | |
| virtual DtConnectionDescriptorList & | connectionDescriptorList () |
| virtual void | setConnectionDescriptorList (const DtConnectionDescriptorList &list) |
| virtual DtDeadReckonTypes | deadReckoningAlgorithm () const |
| Accessor/mutator for myDeadReckoningAlgorithm. | |
| virtual void | setDeadReckoningAlgorithm (DtDeadReckonTypes deadReckoningAlgorithm) |
| virtual const DtRwDeadReckonThresholds & | deadReckoningThresholds () const |
| Accessor/mutator for myDeadReckoningThresholds. | |
| virtual void | setDeadReckoningThresholds (const DtRwDeadReckonThresholds &deadReckoningThresholds) |
| virtual DtReal | mass () const |
| Accessor/mutator for myMass. | |
| virtual void | setMass (const DtReal mass) |
| virtual const DtRwSensorSignatureList & | sensorSignatureList () const |
| Accessor/mutator for mySensorSignatureList. | |
| virtual DtRwSensorSignatureList & | sensorSignatureList () |
| virtual const DtVrfSubObjectParameterList & | subordinateObjects () const |
| List of subordinates objects to create if fully instantiating from the parameter entry (ignored when object is being created by an AggregateAs message, eg.) | |
| virtual void | setSubordinateObjects (const DtVrfSubObjectParameterList &subordinateObjects) |
| virtual const DtVrfSubObjectParameterList & | attachedObjects () const |
| Note that attached objects are not fully supported yet (still need to modify our network interfaces to support the new VR-Link / RPR mechanism for publishing attached objects) and so this list is currently ignored. | |
| virtual void | setAttachedObjects (const DtVrfSubObjectParameterList &attachedObjects) |
| virtual DtVrfObjectSubComponentTypes * | localSubComponentTypes () const |
| Get local sub-component types. | |
| virtual DtVrfObjectSubComponentTypes * | remoteSubComponentTypes () const |
| Get remote sub-component types. | |
| virtual void | putData (FILE *fp, int indentLevel=0) |
| putData writes our type, which is provided by the virtual type accessor of the deriving class. | |
| virtual DtlObjPtr | getData (DtlObjPtr args, const DtFilename &searchPath, const DtVariableBindingsList &variableBindings) |
| getData is just used to get us past the type in the data stream, since it's not actual stored. | |
| virtual const Dt3dBoundingVolume * | boundingVolume () const |
| Set/get the bounding volume of the object. | |
| virtual void | setBoundingVolume (const Dt3dBoundingVolume &newBoundingVolume) |
| Set the bounding volume of the object. | |
| virtual void | setBoundingVolume (const DtVector &localBvolDiagonal, const DtVector &offset=DtVector::zero()) |
| Set the bounding volume from its components. | |
| virtual DtSimBoundingGeometry::DtSimBoundingGeometryType | boundingGeometryType () const |
| Set/get the bounding geometry type of the object. | |
| virtual void | setBoundingGeometryType (DtSimBoundingGeometry::DtSimBoundingGeometryType type) |
| virtual double | draft () const |
| For convenience– computes the draft from bounding volume. | |
| virtual DtAggregateFormation | formation () const |
| Accessor/mutator for myFormationType. | |
| virtual void | setFormation (DtAggregateFormation formation) |
| virtual const DtString & | engagementRules () const |
| Accessor/mutator for myEngagementRules. | |
| virtual void | setEngagementRules (const DtString &engagementRules) |
| virtual const DtSimResourceManager & | resourceManager () const |
| Accessor/mutator for myResourceManager. | |
| virtual void | setResourceManager (const DtSimResourceManager &resourceManager) |
| virtual void | setStateRepositoryUserExtensionType (const DtString &type) |
| Accessor/mutator for myStateRepositoryUserExtensionType. | |
| virtual const DtString & | stateRepositoryUserExtensionType () const |
| virtual DtObjectType | objectType () const |
| Accessor/mutator for myObjectType. | |
| virtual void | setObjectType (const DtObjectType &objectType) |
| virtual DtObjectType | matchType () const |
| Accessor/mutator for myMatchType. | |
| virtual void | setMatchType (const DtObjectType &objectType) |
| virtual bool | taskedBySuperiorUponTaskComplete () const |
| Flag indicating whether or not entity should always go into a 'tasked by superior' state upon completion of a top-level task (a non-subtask task). | |
| virtual void | setTaskedBySuperiorUponTaskComplete (bool trueOrFalse) |
| void | setParameterType (const DtString &) |
| Sets/gets type of parameter. | |
| const DtString & | parameterType () const |
| virtual void | setStateRepositoryUserExtension (const DtVrfStateRepositoryUserExtension &userExtension) |
| State repository user extension data (extensible at the base class DtVrfObjectStateRepository). | |
| virtual DtVrfStateRepositoryUserExtension * | stateRepositoryUserExtension () const |
| virtual void | getSelf (DtlObjPtr args, const DtFilename &searchPath=DtFilename::nullFilename(), const DtVariableBindingsList &variableBindings=nullVariableReference()) |
| Override so we can figure out what kind of DtVrfStateRepositoryUserExtension to instantiate before calling down to base class version to actually load the parameters. | |
| virtual DtTime | underFireTime () const |
| virtual void | setUnderFireTime (DtTime time) |
| virtual bool | underFireTimeSpecified () const |
| virtual DtReal | underFireDistance () const |
| virtual void | setUnderFireDistance (DtReal underFireDistance) |
| virtual bool | underFireDistanceSpecified () const |
| virtual const DtAutoConnectionsListPtr & | autoConnections () const |
| virtual DtAutoConnectionsListPtr & | autoConnections () |
| virtual const std::list < DtSimArtPartDescriptor * > * | completeArtPartList () const |
| virtual void | connectSystems () |
| Creates entity-level connections between systems based on sysdef metadata. | |
| bool | operator== (const DtVrfObjectParameters &) const |
| Equality operator. Simply compares the contents of the registry. | |
| bool | operator!= (const DtVrfObjectParameters &) const |
| virtual DtEnvironmentSP | xmlEnvironment () |
| virtual const DtComponentSystemDescriptorList & | systemDescriptorList () const |
| See mySystemDescriptorList. | |
| virtual DtComponentSystemDescriptorList & | systemDescriptorList () |
| See mySystemDescriptorList. | |
| virtual void | setSystemDescriptorList (const DtComponentSystemDescriptorList &list) |
| See mySystemDescriptorList. | |
| virtual const DtRwBoolean | deadReckoningAllowGuiOverrides () const |
| Accessor/mutator for myDeadReckoningAllowGuiOverrides. | |
| virtual void | setDeadReckoningAllowGuiOverrides (bool allow) |
| Accessor/mutator for myDeadReckoningAllowGuiOverrides. | |
| virtual const DtRadioDescriptorList & | radioDescriptorList () const |
| See myRadioDescriptorList. | |
| virtual DtRadioDescriptorList & | radioDescriptorList () |
| See myRadioDescriptorList. | |
| virtual const DtSimSector & | initialSectorOfResponsibility () const |
| virtual void | setInitialSectorOfResponsibility (const DtSimSector &sor) |
| virtual DtTaskExecutionRules & | taskExecutionRules () |
| virtual const DtTaskExecutionRules & | taskExecutionRules () const |
| virtual void | setTaskExecutionRulesFilename (const DtFilename &) |
| virtual const DtReaderWriterFile & | taskExecutionRulesFilename () const |
Public Member Functions inherited from DtReaderWriter | |
| DtReaderWriter () | |
| default constructor | |
| DtReaderWriter (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false) | |
| real constructor Setting the readonly flag prevents object from writing itself to the stream. | |
| DtReaderWriter (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false) | |
| DtReaderWriter (const DtString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| copy constructor | |
| DtReaderWriter (const DtSymbolString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| const DtReaderWriter & | operator= (const DtReaderWriter &orig) |
| assignment operator | |
| bool | operator== (const DtReaderWriter &) const |
| Equivalence operator. | |
| bool | operator!= (const DtReaderWriter &rhs) |
| virtual | ~DtReaderWriter () |
| destructor | |
| virtual void | putSelf (FILE *fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename()) |
| Top level call to write itself to file. | |
| virtual void | getSelf (DtlObjPtr args, const DtFilename &searchPath=DtFilename::nullFilename(), const DtVariableBindingsList &variableBindings=nullVariableReference()) |
| Top level to read itself from an input stream. | |
| virtual void | writeSelf (FILE *fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename()) |
| Called from putSelf, calls myRegistry.putSelf which in turn calls putSelf on each reader/writer in the registry. | |
| virtual DtSymbolString | name () const |
| Accessor for name of this readable/writable object. | |
| virtual void | addAlias (const DtSymbolString &alias) |
| Add an alias as an alternative name for this object. | |
| virtual bool | hasAlias (const DtSymbolString &alias) |
| virtual const aliasContainer & | aliases () const |
| virtual void | setReadonly (bool flag) |
| Set read-only flag. | |
| virtual bool | isReadonly () const |
| virtual bool | variableIsBound () const |
| virtual void | unbindVariable () |
| Sets the myVariableIsBound flag to false. | |
| virtual void | setName (const DtString &) |
| Set the name of the object. | |
| virtual const char * | readerWriterType () const |
| Used to supply a string type that this reader writer type is. | |
| virtual DtString | prettyPrint () const |
| Routine to return a human readable form of the reader/writer variable. | |
| virtual void | bindVariables (DtVariableBindingsList variableBindings) |
| Runs a variable binding pass on this reader writer and any of its children. | |
| virtual std::list < DtVariableNameType > | unboundVariables () const |
| bool | invalid () const |
| virtual bool | hasChild (const DtReaderWriter *p) const |
| Returns true if this variable has a child p in it's chain. | |
| virtual void | setValueSpecified (bool specified, bool recurse=false) |
| The specified flags are used for optional values. | |
| virtual bool | valueSpecified () const |
| The specified flags are used for optional values. | |
| virtual bool | isVariableReference () const |
| Specifies whether or not this reader writer is really a variable that is specified elsewhere. | |
| virtual void | setIsVariableReference (bool value) |
| virtual void | clearAllVariableReferenceFlags () |
| Clears out all variable reference flags from all readerwriter items in registry recursively. | |
| virtual DtSymbolString | variableName () const |
| The variable name, if this object is a variable reference. | |
| virtual void | setVariableName (const DtSymbolString variableName) |
| The variable name, if this object is a variable reference. | |
| const DtReaderWriterRegistry & | registry () const |
| Collection of child DtReaderWriter nodes owned by this object. | |
| DtReaderWriterRegistry & | registry () |
| Collection of child DtReaderWriter nodes owned by this object. | |
Static Public Member Functions | |
| static DtVrfObjectParameters * | createParameters (DtlObjPtr mtlStream, const DtFilename &searchPath, const DtVariableBindingsList &variableBindings, DtEnvironmentSP env=DtEnvironmentSP(), DtEnvValueSP *objectNode=NULL) |
| static DtVrfObjectParameters * | createParameters (const char *name, DtEnvironmentSP env=DtEnvironmentSP(), DtEnvValueSP *objectNode=NULL) |
| static DtVrfObjectParameterFactory * | factory () |
| static void | setFactory (DtVrfObjectParameterFactory *factory) |
| static void | addParameterCreatorFcn (const DtString &type, DtSimObjectParametersCreatorFcn fcn) |
| static DtVrfObjectParameters * | creator (DtEnvironmentSP env, DtEnvValueSP *objectNode) |
| | |
Static Public Member Functions inherited from DtReaderWriter | |
| static void | putIndent (FILE *fp, int indentLevel) |
| static const DtVariableBindingsList & | nullVariableReference () |
| static void | setPostGetSelfCallback (DtGetSelfCallbackFcn fcn, void *usrData) |
| static void | setPrePutSelfCallback (DtPutSelfCallbackFcn fcn, void *usrData) |
| static const DtFilename & | appPath () |
| Gets the current working directory. | |
| static void | setFactoryCreatorFunction (DtReaderWriterFactoryCreatorFcn fcn) |
| Sets the function to create the DtReaderWriterFactory. | |
| static void | createReaderWriterFactory () |
Protected Member Functions | |
| DtVrfObjectParameters (const DtVrfObjectParameters &orig, const DtString &name=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=NULL) | |
| copy constructor. Use clone instead. | |
| DtVrfObjectParameters (const DtVrfObjectParameters &orig, const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL) | |
| virtual DtVrfSubObjectParameterList * | createSubordinateObjectsList (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry) const |
| Returns a newly created instance of a DtVrfObjectSubComponentTypes, which gets assigned ot mySubordinateObjects in init(). | |
| virtual DtVrfSubObjectParameterList * | createAttachedObjectsList (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry) const |
| Returns a newly created instance of a DtVrfObjectSubComponentTypes, which gets assigned ot myAttachedObjects in init(). | |
| virtual void | rebuildArtPartList () |
| Clears out and rebuilds myCompleteArtPartList. | |
| virtual void | addArtPartsFromSystem (DtComponentSystemDescriptor *systemDesc, std::list< DtSimArtPartDescriptor * > &artPartList) |
| Adds any art parts defined within a system to the list. | |
| virtual void | createAutomaticConnections (DtRwAutoConnection *autoConnection) |
Protected Member Functions inherited from DtReaderWriter | |
| virtual void | bindToRwAsVariable (const DtReaderWriter *rw) |
| Copies values from the specified DtReaderWriter. | |
| virtual void | bindLocalVariables (const DtVariableBindingsList &variableBindings) |
| Checks to see if this RW object is a variable reference that can be bound using the provided bindings. | |
| virtual DtlObjPtr | getData (DtlObjPtr args, const DtFilename &searchPath, const DtVariableBindingsList &variableBindings) |
| Deriving class overrides these to get/put class specific data. | |
Protected Attributes | |
| DtObjectType | myMatchType |
| An extended form of the DIS/RPR FOM entity enumerated type. | |
| DtObjectType | myObjectType |
| DtTaskExecutionRules | myTaskExecutionRules |
| Task execution rules. | |
| DtString | myParameterType |
| String that keeps the type of parameter this is Local only – not part of descriptor. | |
| std::list < DtSimArtPartDescriptor * > | myCompleteArtPartList |
| A list containing all the art part descriptors from actuators directly on the entity and those in systems as well. | |
| DtEnvValueSP * | myObjectNode |
| DtEnvironmentSP | myEnvironment |
| DtAutoConnectionsListPtr | myAutoConnections |
parameters | |
These parameters are available for setting in the OPD files. | |
| DtRwBoundingGeometryType | myBoundingGeometryType |
| Parameter Name: bounding-geometry-type Parameter Description: Describes an object's bounding volume, bounding area, or lack of bounding geometry (in the case of a true point object). | |
| DtRwBoundingVolume | myBvol |
| Parameter Name: bounding-volume Parameter Description: Specifies the bounding volume around an object. | |
| DtVrfObjectSubComponentTypes * | myLocalSubComponentTypes |
| Parameter Name: local-objects Parameter Description: Specifies the state-repository, net-interface, task-manager, radio, and component-manager to be used by locally simulated objects. | |
| DtVrfObjectSubComponentTypes * | myRemoteSubComponentTypes |
| Parameter Name: remote-objects Parameter Description: Specifies the state-repository, net-interface, task-manager, radio, and component-manager to be used for remotely simulated objects. | |
| DtRwFormationType | myFormationType |
| Parameter Name: formation Parameter Description: (Optional) One of the following: | |
| DtRwForceType | myForceType |
| Parameter Name: force-type Parameter Description: The force to which the object belongs. | |
| DtRwString | myCategory |
| Parameter Name: category Parameter Description: The category string to use when creating an echelon ID. | |
| DtRwString | myEchelonLevel |
| Parameter Name: echelon-level Parameter Description: The echelon level to use for this entity when creating an echelon ID. | |
| DtRwBoolean | myOrganized |
| Parameter Name: is-organized Parameter Description: Specifies that the entity is part of the entity hierarchy and requires an echelon ID. | |
| DtRwReal | myMinTickPeriod |
| Parameter Name: min-tick-period Parameter Description: Specifies the shortest period of time, in seconds, that can elapse between ticks of an entity's components. | |
| DtRwReal | myMinTickPeriodVariance |
| Parameter Name: min-tick-period-variance Parameter Description: Specifies an amount within which the min-tick-period can vary. | |
| DtRwDeadReckonTypes | myDeadReckoningAlgorithm |
| Parameter Name: dr-algorithm Parameter Description: The VR-Link dead-reckoning algorithm to use when publishing this entity. | |
| DtRwDeadReckonThresholds | myDeadReckoningThresholds |
| Parameter Name: dr-thresholds Parameter Description: The translation, rotation, and aggregate dimension thresholds used when publishing this entity. | |
| DtRwBoolean | myDeadReckoningAllowGuiOverrides |
| Parameter Name: bounding-geometry-type Parameter Description: Describes an object's bounding volume, bounding area, or lack of bounding geometry (in the case of a true point object). | |
| DtRadioDescriptorList | myRadioDescriptorList |
| Parameter Name: radios Parameter Description: List of all radios on the entity. | |
| DtComponentSystemDescriptorList | mySystemDescriptorList |
| Parameter Name: systems Parameter Description: List of system descriptors. | |
| DtComponentDescriptorList | mySensorDescriptorList |
| Parameter Name: sensors Parameter Description: List of sensor controller component descriptors. | |
| DtComponentDescriptorList | myControllerDescriptorList |
| Parameter Name: controllers Parameter Description: List of controller component descriptors. | |
| DtComponentDescriptorList | myActuatorDescriptorList |
| Parameter Name: actuators Parameter Description: List of actuator component descriptors. | |
| DtConnectionDescriptorList | myConnectionDescriptorList |
| Parameter Name: connections Parameter Description: The connections (Example 5.2, line 19) entry specifies how the components connect to one another (through ports, port groups, or both). | |
| DtRwReal | myMass |
| Parameter Name: mass Parameter Description: The mass of the entity. | |
| DtRwSensorSignatureList | mySensorSignatureList |
| Parameter Name: sensor-signatures Parameter Description: Parameter Default Value: | |
| DtVrfSubObjectParameterList * | mySubordinateObjects |
| Parameter Name: subordinate-objects Parameter Description: (Optional) List of entries specifying subordinate objects to be created as part of an aggregate object. | |
| DtVrfSubObjectParameterList * | myAttachedObjects |
| Parameter Name: attached-objects Parameter Description: Parameter Default Value: . | |
| DtRwString | myEngagementRules |
| Parameter Name: engagement-rules Parameter Description: (Optional) The engagement rules the entity will use unless/until changed by a set engagement rules message. | |
| DtSimResourceManager | myResourceManager |
| Parameter Name: resources Parameter Description: Specifies the types and amount of resources the entity has. | |
| DtRwString | myStateRepositoryUserExtensionType |
| Parameter Name: state-repository-extension-type Parameter Description: Type of state repository extensions class to instantiate. | |
| DtRwBoolean | myTaskedBySuperiorUponTaskComplete |
| Parameter Name: tasked-by-superior-upon-task-complete Parameter Description: Flag indicating whether or not subordinates should automatically resume a tasked-by-superior status upon completing an independent task. | |
| DtVrfStateRepositoryUserExtension * | myStateRepositoryUserExtension |
| Parameter Name: user-extension Parameter Description: Extension to the state repository class. | |
| DtRwTime | myUnderFireTime |
| Parameter Name: under-fire-time Parameter Description: Deprecated. | |
| DtRwReal | myUnderFireDistance |
| Parameter Name: under-fire-distance Parameter Description: Deprecated. | |
| DtSimSector | myInitialSectorOfResponsibility |
| Parameter Name: initial-sector-of-responsibility Parameter Description: The sector of responsibility for this entity when the entity is first created. | |
| DtReaderWriterFile | myTaskExecutionRulesFilename |
| Parameter Name: task-execution-rules Parameter Description: The name of the file that contains the task execution rules for this entity. | |
Protected Attributes inherited from DtReaderWriter | |
| const DtSymbolString | myName |
| DtReaderWriterRegistry | myRegistry |
| bool | myValueSpecified |
| bool | myReadOnlyFlag |
| bool | myIsVariableReference |
| DtSymbolString | myVariableName |
| bool | myVariableIsBound |
| aliasContainer | myAliases |
| Container for the aliases which represent alternative names for the object. | |
| bool | myInvalid |
| Set to true if there is a problem reading this item. | |
Static Protected Attributes | |
| static DtVrfObjectParameterFactory * | theFactory |
Static Protected Attributes inherited from DtReaderWriter | |
| static DtString | theUnspecifiedValue |
| static DtGetSelfCallbackInfo | thePostGetSelfCallback |
| static DtPutSelfCallbackInfo | thePrePutSelfCallback |
| static const DtVariableBindingsList | theEmptyVariableBindingsList |
| static bool | theCreatorFcnSet |
| static DtReaderWriterFactory * | theFactory |
| static DtReaderWriterFactoryCreatorFcn | theFactoryCreatorFcn |
Instances of DtVrfObjectParameters are the readable/writeable objects that contain the information necessary to construct a DtVrfObject.
Developer Description: Used to hold parameters for the DtVrfMovingObjectStateRepository class.
| DtVrfObjectParameters::DtVrfObjectParameters | ( | const DtString & | name = DtString::nullString(), |
| DtReaderWriterRegistry * | parentRegistry = NULL, |
||
| DtEnvironmentSP | env = DtEnvironmentSP(), |
||
| DtEnvValueSP * | objectNode = NULL |
||
| ) |
Constructor with parameters to set up read/writability correctly.
| DtVrfObjectParameters::DtVrfObjectParameters | ( | const DtSymbolString & | name, |
| DtReaderWriterRegistry * | parentRegistry = NULL, |
||
| DtEnvironmentSP | env = DtEnvironmentSP(), |
||
| DtEnvValueSP * | objectNode = NULL |
||
| ) |
|
virtual |
destructor
|
protected |
copy constructor. Use clone instead.
|
protected |
| DtVrfObjectParameters& DtVrfObjectParameters::operator= | ( | const DtVrfObjectParameters & | orig | ) |
assignment operator
|
virtual |
Reimplemented in DtTextObjectParameters, DtCircleObjectParameters, DtLineObjectParameters, DtAreaObjectParameters, DtFixedWingEntityParameters, DtAggregateObjectParameters, DtMovingObjectParameters, DtRotaryWingEntityParameters, DtGroundVehicleParameters, DtSymbolObjectParameters, DtHumanParameters, DtCulturalFeatureParameters, DtIndividualLifeFormParameters, DtSubSurfaceEntityParameters, DtSurfaceEntityParameters, DtTacticalSmokeParameters, DtSpaceEntityParameters, DtGlobalEnvironmentParameters, DtMissileParameters, DtBombParameters, DtScriptedMovementObjectParameters, and DtPointObjectParameters.
|
virtual |
Reimplemented in DtTextObjectParameters, DtCircleObjectParameters, DtLineObjectParameters, DtAreaObjectParameters, DtFixedWingEntityParameters, DtMovingObjectParameters, DtAggregateObjectParameters, DtSymbolObjectParameters, DtGroundVehicleParameters, DtCulturalFeatureParameters, DtRotaryWingEntityParameters, DtSurfaceEntityParameters, DtTacticalSmokeParameters, DtGlobalEnvironmentParameters, DtHumanParameters, DtMissileParameters, DtBombParameters, DtScriptedMovementObjectParameters, DtSubSurfaceEntityParameters, and DtPointObjectParameters.
|
virtual |
Invoked when created so that deriving classes may do virtual allocation as necessary.
The base class version creates the local and remote composed object types. Calls createSubordinateObjectsList() and createAttachedObjectsList() to create the mySubordinateObjects and myAttachedObjects data members, respectively.
Reimplemented in DtAggregateObjectParameters.
|
virtual |
Returns a string identifying the type of parameter descriptor.
Used to create the descriptor on read from a parameter database file. ((Required) The value must be in quotation marks. Type strings are defined in vrfParamTypes.h.
Reimplemented in DtTextObjectParameters, DtCircleObjectParameters, DtLineObjectParameters, DtMissileParameters, DtAreaObjectParameters, DtFixedWingEntityParameters, DtGroundVehicleParameters, DtBombParameters, DtAggregateObjectParameters, DtCulturalFeatureParameters, DtMovingObjectParameters, DtSymbolObjectParameters, DtRotaryWingEntityParameters, DtHumanParameters, DtIndividualLifeFormParameters, DtSurfaceEntityParameters, DtTacticalSmokeParameters, DtGlobalEnvironmentParameters, DtScriptedMovementObjectParameters, DtSubSurfaceEntityParameters, DtSpaceEntityParameters, and DtPointObjectParameters.
|
virtual |
Values left unspecified may be inherited from a parameter block of the same type, typically an ancestor in the DIS/RPR entity type hierarchy.
For example, US ground vehicle (1 1 225 0 0 0 0) and US Large wheeled utility vehicle (1 1 225 7 0 0 0) might both have DtGroundVehicleParameters parameter blocks. If some or even all parameters are left unspecified for (1 1 225 7 0 0 0), it can inherit them from (1 1 225 0 0 0 0), its DIS/RPR ancestor.
The direct ancestor of a parameter block might use a parameter type that is different (and most likely a class the parameter block is derived from). Every parameter block type also knows how to inherit from the type it is derived from.
Reimplemented in DtTextObjectParameters, DtCircleObjectParameters, DtLineObjectParameters, DtAreaObjectParameters, DtFixedWingEntityParameters, DtMovingObjectParameters, DtSymbolObjectParameters, DtAggregateObjectParameters, DtRotaryWingEntityParameters, DtHumanParameters, DtIndividualLifeFormParameters, DtGroundVehicleParameters, DtSurfaceEntityParameters, DtCulturalFeatureParameters, DtSubSurfaceEntityParameters, DtBombParameters, DtMissileParameters, DtScriptedMovementObjectParameters, and DtPointObjectParameters.
|
virtual |
|
virtual |
Creates a DtVrfObjectSubComponentTypes type of composed object type.
|
virtual |
Creates a DtVrfObjectSubComponentTypes type of composed object type.
|
virtual |
Get local sub-component types.
This is the set of type strings indicating the kinds objects that a DtSimObject should contain (i.e. the type of sim state repository, type of network interface), when the DtSimObject is locally simulated.
|
virtual |
Get remote sub-component types.
This is the set of type strings indicating the kinds objects that a DtSimObject should contain (i.e. the type of sim state repository, type of network interface), when the DtSimObject is simulated remotely.
|
virtual |
Set the minimum tick period for this object (individual components and the network interface may override)
|
virtual |
get the minimum tick period for this component (individual components and the network interface may override)
|
virtual |
Set the minimum tick period variance for this component (individual components and the network interface may override)
|
virtual |
Get the minimum tick period variance for this component (individual components and the network interface may override)
|
virtual |
Currently unused.
Since entities are specified at creation time as an entity type and force type, we may go to using both as a lookup key.
|
virtual |
|
virtual |
Accessor/mutator for myCategory.
|
virtual |
|
virtual |
Returns true of the category was specified in the file.
|
virtual |
Accessor/mutator for myEchelonLevel.
|
virtual |
|
virtual |
Returns true of the echelon level was specified in the file.
|
virtual |
Accessor/mutator for myOrganized.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Accessor/mutator for mySensorDescriptorList.
|
virtual |
|
virtual |
|
virtual |
Accessor/mutator for myControllerDescriptorList.
|
virtual |
|
virtual |
|
virtual |
Accessor/mutator for myActuatorDescriptorList.
|
virtual |
|
virtual |
|
virtual |
Accessor/mutator for myConnectionDescriptorList.
|
virtual |
|
virtual |
|
virtual |
Accessor/mutator for myDeadReckoningAlgorithm.
|
virtual |
|
virtual |
Accessor/mutator for myDeadReckoningAllowGuiOverrides.
|
virtual |
Accessor/mutator for myDeadReckoningAllowGuiOverrides.
|
virtual |
Accessor/mutator for myDeadReckoningThresholds.
|
virtual |
|
virtual |
Accessor/mutator for myMass.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Accessor/mutator for mySensorSignatureList.
|
virtual |
|
virtual |
List of subordinates objects to create if fully instantiating from the parameter entry (ignored when object is being created by an AggregateAs message, eg.)
|
virtual |
|
virtual |
Note that attached objects are not fully supported yet (still need to modify our network interfaces to support the new VR-Link / RPR mechanism for publishing attached objects) and so this list is currently ignored.
|
virtual |
|
virtual |
Get local sub-component types.
This is the set of type strings indicating the kinds objects that a DtSimObject should contain (i.e. the type of sim state repository, type of network interface), when the DtSimObject is locally simulated.
|
virtual |
Get remote sub-component types.
This is the set of type strings indicating the kinds objects that a DtSimObject should contain (i.e. the type of sim state repository, type of network interface), when the DtSimObject is simulated remotely.
|
virtual |
putData writes our type, which is provided by the virtual type accessor of the deriving class.
Reimplemented from DtReaderWriter.
|
virtual |
getData is just used to get us past the type in the data stream, since it's not actual stored.
|
virtual |
Set/get the bounding volume of the object.
|
virtual |
Set the bounding volume of the object.
|
virtual |
Set the bounding volume from its components.
This is not the preferred form, but is included for completeness.
|
virtual |
Set/get the bounding geometry type of the object.
|
virtual |
|
virtual |
For convenience– computes the draft from bounding volume.
Draft is the distance of the bottom of the bounding box below the origin.
|
virtual |
Accessor/mutator for myFormationType.
|
virtual |
|
virtual |
Accessor/mutator for myEngagementRules.
|
virtual |
|
virtual |
Accessor/mutator for myResourceManager.
|
virtual |
|
virtual |
Accessor/mutator for myStateRepositoryUserExtensionType.
|
virtual |
|
virtual |
Accessor/mutator for myObjectType.
|
virtual |
|
virtual |
Accessor/mutator for myMatchType.
|
virtual |
|
virtual |
Flag indicating whether or not entity should always go into a 'tasked by superior' state upon completion of a top-level task (a non-subtask task).
By default, this is set to true, so a subordinate will be immediately able to participate as part of an aggregate when it completes an independent task. The name of the parameter is 'tasked-by-superior-upon-task-complete'.
|
virtual |
|
static |
|
static |
|
static |
Reimplemented from DtReaderWriter.
|
static |
|
static |
|
static |
Reimplemented in DtFixedWingEntityParameters, DtTextObjectParameters, DtCircleObjectParameters, DtLineObjectParameters, DtRotaryWingEntityParameters, DtMissileParameters, DtAreaObjectParameters, DtAggregateObjectParameters, DtGroundVehicleParameters, DtBombParameters, DtCulturalFeatureParameters, DtMovingObjectParameters, DtSymbolObjectParameters, DtHumanParameters, DtScriptedMovementObjectParameters, DtSpaceEntityParameters, DtIndividualLifeFormParameters, DtTacticalSmokeParameters, DtGlobalEnvironmentParameters, DtSubSurfaceEntityParameters, DtPointObjectParameters, and DtSurfaceEntityParameters.
|
inline |
Sets/gets type of parameter.
References myParameterType.
|
inline |
References myParameterType.
|
virtual |
State repository user extension data (extensible at the base class DtVrfObjectStateRepository).
|
virtual |
|
virtual |
Override so we can figure out what kind of DtVrfStateRepositoryUserExtension to instantiate before calling down to base class version to actually load the parameters.
Reimplemented in DtGroundVehicleParameters.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Creates entity-level connections between systems based on sysdef metadata.
| bool DtVrfObjectParameters::operator== | ( | const DtVrfObjectParameters & | ) | const |
Equality operator. Simply compares the contents of the registry.
| bool DtVrfObjectParameters::operator!= | ( | const DtVrfObjectParameters & | ) | const |
|
virtual |
|
protectedvirtual |
Returns a newly created instance of a DtVrfObjectSubComponentTypes, which gets assigned ot mySubordinateObjects in init().
Override this function if you want to create a derived type. Name is the DtReaderWriter name of the object (the name will appear as the first string in the object when this object is written out to file).
|
protectedvirtual |
Returns a newly created instance of a DtVrfObjectSubComponentTypes, which gets assigned ot myAttachedObjects in init().
Override this function if you want to create a derived type. Name is the DtReaderWriter name of the object (the name will appear as the first string in the object when this object is written out to file).
|
protectedvirtual |
Clears out and rebuilds myCompleteArtPartList.
Should be called after any point in which the art parts may have changed.
|
protectedvirtual |
Adds any art parts defined within a system to the list.
Recurses if the system contains other systems. Utility function used by rebuildArtPartList().
|
protectedvirtual |
|
protected |
An extended form of the DIS/RPR FOM entity enumerated type.
Specifies the key used to look up the entry. VR-Forces adds a field to the DIS/RPR FOM entity enumeration so that we can manage objects that are not part of the DIS/RPR enumeration scheme, such as aggregate entities and control objects. We enclose the seven-digit DIS/RPR FOM enumeration in parentheses and preface it with the object super-type.
<super type>=""> (<DIS rpr="" fom="" enumerated="" type>="">)
For example, an M1A2 has the following object type:
1 (1 1 225 1 1 3 0)
|
protected |
|
protected |
Parameter Name: bounding-geometry-type Parameter Description: Describes an object's bounding volume, bounding area, or lack of bounding geometry (in the case of a true point object).
The value specified affects how the bounding-volume parameter gets interpreted in the code. Values may be:
|
protected |
Parameter Name: bounding-volume Parameter Description: Specifies the bounding volume around an object.
It has the following sub-parameters:
|
protected |
Parameter Name: local-objects Parameter Description: Specifies the state-repository, net-interface, task-manager, radio, and component-manager to be used by locally simulated objects.
|
protected |
Parameter Name: remote-objects Parameter Description: Specifies the state-repository, net-interface, task-manager, radio, and component-manager to be used for remotely simulated objects.
|
protected |
Parameter Name: formation
Parameter Description: (Optional) One of the following:
|
protected |
Parameter Name: force-type Parameter Description: The force to which the object belongs.
One of the following:
|
protected |
Parameter Name: category Parameter Description: The category string to use when creating an echelon ID.
The string category item is used to to describe an entity, e.g. "Armor" Bn, or "M1A1" platform. Parameter Default: "c?" Parameter Units: string
|
protected |
Parameter Name: echelon-level Parameter Description: The echelon level to use for this entity when creating an echelon ID.
his is a string indicating the echelon level of a military entity, e.g. "platform" or "Bde". Parameter Default: "e?" Parameter Units: string
|
protected |
Parameter Name: is-organized Parameter Description: Specifies that the entity is part of the entity hierarchy and requires an echelon ID.
If organized it true, this object type will have an entry in the organization hierarchy. Parameter Default Value: False
|
protected |
Parameter Name: min-tick-period Parameter Description: Specifies the shortest period of time, in seconds, that can elapse between ticks of an entity's components.
Parameter Default Value: 0. Parameter Units: seconds
|
protected |
Parameter Name: min-tick-period-variance Parameter Description: Specifies an amount within which the min-tick-period can vary.
Defined as: plus or minus rand(min-tick-period/2). Parameter Default Value: 0. Parameter Units: seconds
|
protected |
Parameter Name: dr-algorithm Parameter Description: The VR-Link dead-reckoning algorithm to use when publishing this entity.
See the IEEE Standard for Distributed Interactive Simulation – Application Protocols for more information on the meaning of these different algorithms. One of:
|
protected |
Parameter Name: dr-thresholds Parameter Description: The translation, rotation, and aggregate dimension thresholds used when publishing this entity.
Parameter Default Value: 1.0, 3.0, 0.05 (translation, rotation, aggregate-dimension) Parameter Units: meters (translation), degrees (rotation), unitless (aggregate dimension – value between 0 and 1 representing percentage change in extent)
|
protected |
Parameter Name: bounding-geometry-type Parameter Description: Describes an object's bounding volume, bounding area, or lack of bounding geometry (in the case of a true point object).
The value specified affects how the bounding-volume parameter gets interpreted in the code. Values may be:
|
protected |
Parameter Name: radios Parameter Description: List of all radios on the entity.
|
protected |
Parameter Name: systems Parameter Description: List of system descriptors.
Systems are collections of sensors/controllers/actors to be added as a group to the entity.
|
protected |
Parameter Name: sensors Parameter Description: List of sensor controller component descriptors.
|
protected |
Parameter Name: controllers Parameter Description: List of controller component descriptors.
|
protected |
Parameter Name: actuators Parameter Description: List of actuator component descriptors.
|
protected |
Parameter Name: connections Parameter Description: The connections (Example 5.2, line 19) entry specifies how the components connect to one another (through ports, port groups, or both).
Components attach to each other by connecting output and input ports to one another, or output port groups to input port groups. Since a component can have more than one port, port group, or both, the name of the port or port group to use is also specified. If an entity does not have any components that need to connect to one another, then you can omit this entry. Items in the connections entry can be in one of the following forms:
|
protected |
Parameter Name: mass Parameter Description: The mass of the entity.
Parameter Default Value: 5000. Parameter Units: kilograms
|
protected |
Parameter Name: sensor-signatures Parameter Description: Parameter Default Value:
|
protected |
Parameter Name: subordinate-objects
Parameter Description: (Optional) List of entries specifying subordinate objects to be created as part of an aggregate object.
Each entry specifies a subobject to be created when fully instantiating an aggregate object (as opposed to building such an entity from the bottom up, using aggregateAs). The entry contains an object type, a position offset, and a heading offset (offsets with respect to the parent objects position and heading). Each entry has the following parameters:
|
protected |
Parameter Name: attached-objects
Parameter Description:
Parameter Default Value:
.
|
protected |
Parameter Name: engagement-rules Parameter Description: (Optional) The engagement rules the entity will use unless/until changed by a set engagement rules message.
Applies to aggregate entities also. Options:
|
protected |
Parameter Name: resources Parameter Description: Specifies the types and amount of resources the entity has.
The resources parameter has a list of resource parameters whose name is the name of the resource, and which has the following format:
|
protected |
Parameter Name: state-repository-extension-type
Parameter Description: Type of state repository extensions class to instantiate.
Users may define derived DtVrfStateRepositoryUserExtension types and register them with the DtVrfStateRepositoryUserExtensionFactory. This is the unique string value that gets registered with that factory.
Parameter Default Value:
|
protected |
Parameter Name: tasked-by-superior-upon-task-complete
Parameter Description: Flag indicating whether or not subordinates should automatically resume a tasked-by-superior status upon completing an independent task.
Parameter Default Value: True
|
protected |
Parameter Name: user-extension
Parameter Description: Extension to the state repository class.
Users may define derived types to extend all state repository objects at the base class level. parameters to
Parameter Default Value:
|
protected |
Parameter Name: under-fire-time
Parameter Description: Deprecated.
This concept is now modeled in the DtUnderFireDeterminationComponentDescriptor.
Parameter Default Value:
|
protected |
Parameter Name: under-fire-distance
Parameter Description: Deprecated.
This concept is now modeled in the DtUnderFireDeterminationComponentDescriptor.
Parameter Default Value:
|
protected |
Parameter Name: initial-sector-of-responsibility
Parameter Description: The sector of responsibility for this entity when the entity is first created.
This value will be replaced by any Set Sector Of Responsibility commands issued to the entity. Specified as Center and Size angles. Parameter Units: Radians (0 = north). Parameter Default Value: Center 0, Size pi / 2
|
protected |
Parameter Name: task-execution-rules Parameter Description: The name of the file that contains the task execution rules for this entity.
These rules are used to determine what tasks can be executed concurrently, and what tasks will interrupt other tasks on the entity. Parameter Default Value: None.
|
protected |
Task execution rules.
This is the structure that is read in from the file pointed to by myTaskExecutionRulesFilename;
|
protected |
String that keeps the type of parameter this is Local only – not part of descriptor.
Referenced by parameterType(), and setParameterType().
|
staticprotected |
|
protected |
A list containing all the art part descriptors from actuators directly on the entity and those in systems as well.
Contains pointers to the descriptors, and does not maintain copies of the descriptors.
|
protected |
|
protected |
|
protected |