![]() |
VR-Forces 4.5 Class Documentation
|
The DtSimComponent class is the base class for the entire simulation model component hierarchy. More...

Classes | |
| class | ComponentCriticalSection |
Public Member Functions | |
| DtSimComponent (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) | |
| virtual | ~DtSimComponent () |
| destructor | |
| void | setParentSystem (DtComponentSystem *system) |
| Sets the parent system of this component. | |
| virtual bool | init () |
| Calls createPorts and createPortGroups Initializes myLastTickSimTime. | |
| virtual bool | postAddComponentsInit () |
| Called after all components have been created, initialized and added to the component manager. | |
| virtual void | registerAttributeFunctions () |
| Called to register functions that provide system attribute values. | |
| virtual void | preFirstTickInit () |
| This function can be overridden to initialize a component before it is ticked for the first time. | |
| virtual void | tick () |
| This gives the thread of control to the component. | |
| virtual void | postTick () |
| This function is called immediately after tick() is called. | |
| virtual void | timedTick () |
| This version of tick checks to see if the time to tick has arrived. | |
| virtual void | setMinTickPeriod (double minTickPeriod) |
| specifies a minimum tick period (which can also be thought of as | |
| virtual double | minTickPeriod () const |
| access the minimum tick period | |
| virtual void | setMinTickPeriodVariance (double minTickPeriodVariance) |
| set the variance in the minimum tick time | |
| virtual double | minTickPeriodVariance () const |
| access the variance in the minimum tick period | |
| virtual void | setNextTickTime (double nextTickTime) |
| The next tick time is normally calculated internally. | |
| virtual double | nextTickTime () const |
| access the next tick time | |
| virtual double | calculateNextTickTime () const |
| The next tick time is equal to mySimManager->exerciseClock()-> approximateElapsedRealTime() + myMinTickPeriod + a random # between -myMinTickPeriodVariance/2. | |
| virtual double | calculateFirstTickTime () const |
| Returns the first time value that the component should tick at. | |
| virtual const char * | type () const =0 |
| Returns a string identifies the class type of component. | |
| virtual void | setEntity (DtVrfObject *entity) |
| The entity's state repository is the place that actuator components make updates and other components look to see our current state. | |
| virtual DtSimComponent * | nextComponent () |
| List management functions. | |
| virtual DtSimComponent * | prevComponent () |
| virtual void | setListItem (DtListItem *item) |
| Used by DtComponentList. | |
| virtual DtListItem * | listItem () |
| virtual void | putData (std::string &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 DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) |
| getData is just used to get us past the type in the data stream, since it's not actual stored. | |
| virtual void | addInputPort (DtInputPort *port) |
| Adds this input port to the components input port list so that other components can look it up and attach to it. | |
| virtual void | removeInputPort (DtInputPort *port) |
| virtual DtInputPort * | lookupInputPort (const DtString &portName) |
| Returns a pointer to the input port registered on this component with the specified name. | |
| virtual DtList | inputPortList () const |
| Returns the list of DtInputPorts registered on this component. | |
| virtual void | addOutputPort (DtOutputPort *port) |
| Adds this output port to the components output port list so that other components can look it up and attach to it. | |
| virtual void | removeOutputPort (DtOutputPort *port) |
| virtual DtOutputPort * | lookupOutputPort (const DtString &portName) |
| Returns a pointer to the output port registered on this component with the specified name. | |
| virtual DtList | outputPortList () const |
| Returns the list of DtOutputPorts registered on this component. | |
| virtual void | addInputPortGroup (DtInputPortGroup *group) |
| Adds this input port to the components input port list so that other components can look it up and attach to it. | |
| virtual void | removeInputPortGroup (DtInputPortGroup *group) |
| virtual DtInputPortGroup * | lookupInputPortGroup (const DtString &groupName) |
| Returns a pointer the input port group registered on this component with the specified name. | |
| virtual DtList | inputPortGroupList () const |
| Returns the list of DtInputPortGroups registered on this component. | |
| virtual void | addOutputPortGroup (DtOutputPortGroup *group) |
| Adds this output port group to the components output port group list so that other components can look it up and attach to it. | |
| virtual void | removeOutputPortGroup (DtOutputPortGroup *group) |
| virtual DtOutputPortGroup * | lookupOutputPortGroup (const DtString &groupName) |
| Returns a pointer the output port group registered on this component with the specified name. | |
| virtual DtList | outputPortGroupList () const |
| Returns the list of DtOutputPortGroups registered on this component. | |
| virtual int | priority () const |
| Return the current connection priority for this component. | |
| virtual void | setPriority (int priority) |
| Sets a new connection priority for this component, and changes all current outgoing connections from this component to the new value. | |
| double | dT () const |
| This is the delta-t for this component, which may or may not be the same as the exerciseClock dT. | |
| virtual void | setDT (double deltaT) |
| Note that while dT is calculated internally, this makes it possible to 'lie' to the component about dT if necessary. | |
| virtual void | setComponentDescriptor (DtComponentDescriptor *componentDescriptor) |
| The component descriptor specified in the order of battle file or parameter file that was used to create this component. | |
| virtual const DtComponentDescriptor * | componentDescriptor () const |
| virtual bool | tickWhileDestroyed () const |
| If the component returns true here, it will be ticked regardless of the destroyed state of the host entity. | |
| DtVrfProcessStateRepositoryManager * | psrManager () |
| virtual DtString | componentFullName () const |
| virtual DtPhysicalWorld * | physicalWorld () |
| Gets the physical world that this component's entity exists in. | |
| virtual const DtPhysicalWorld * | physicalWorld () const |
| virtual DtAttachedTerrain * | terrainAttachedTo () |
| Gets the terrain that this component's entity is attached to, if any. | |
| virtual const DtAttachedTerrain * | terrainAttachedTo () const |
| virtual DtVrfObject * | entity () |
| Gets the entity. | |
| virtual const DtVrfObject * | entity () const |
| virtual DtSimManager * | simManager () |
| Gets the sim manager. | |
| virtual const DtSimManager * | simManager () const |
| virtual const Coordinate_System * | coordinateSystem () const |
| Gets the coordinate system, as it should always exist if the physical world is in a valid state! | |
| virtual Coordinate_System * | coordinateSystem () |
| virtual DtVrfObjectStateRepository * | localStateRepository () |
| Gets the local state repository. | |
| virtual const DtVrfObjectStateRepository * | localStateRepository () const |
| virtual DtTaskVisualizationMap & | taskVisualizations () |
| Returns the list of task visualizations for this component. | |
| virtual bool | taskVisualizationsActive () const |
| Returns true if task visualizations are currently active for this component. | |
| virtual void | enable () |
| Is this component enabled or not. | |
| virtual void | disable () |
| virtual bool | isEnabled () |
| virtual void | setIsEnabled (bool yesNo) |
| virtual DtOutputStream & | objectConsoleDebug (const DtString &channel="") const |
| virtual DtOutputStream & | objectConsoleVerbose (const DtString &channel="") const |
| virtual DtOutputStream & | objectConsoleInfo (const DtString &channel="") const |
| virtual DtOutputStream & | objectConsoleWarn (const DtString &channel="") const |
| virtual DtOutputStream & | objectConsoleError (const DtString &channel="") const |
| virtual DtSimResourceManager & | resourceManager () |
| virtual const DtSimResourceManager & | resourceManager () 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) | |
| pseudo-copy constructor | |
| DtReaderWriter (const DtSymbolString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtReaderWriter (const DtReaderWriter &, DtReaderWriterRegistry *parentRegistry=NULL) | |
| copy constructor | |
| 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 (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename()) |
| Top level call to write itself to file. | |
| virtual void | postPutSelf () |
| Called after either version of put self (file or environment). Default is no-op. | |
| virtual void | prePutSelf () |
| Called before either version of put self (file or environment). Default is no-op. | |
| virtual void | getSelf (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference()) |
| Top level to read itself from an input stream. | |
| virtual void | postGetSelf () |
| Called after either version of getSelf (mtl or environment). Default is no-op. | |
| virtual void | preGetSelf () |
| Called before either version of get self (file or environment). Default is no-op. | |
| virtual void | writeSelf (std::string &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 void | addAlias (const DtString &alias) |
| virtual bool | hasAlias (const DtSymbolString &alias) |
| virtual const aliasContainer & | aliases () const |
| virtual void | setReadonly (bool flag) |
| Set read-only flag. | |
| bool | isReadonly () const |
| virtual void | reset () |
| For those reader/writer items that support it, resets the reader/writer value to iriginal state Default is no-op. | |
| virtual int | alignment () const |
| For those items that are sent over the network via HLA, this will give the network alignment. | |
| 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 const char * | xmlType () const |
| virtual DtString | prettyPrint () const |
| Routine to return a human readable form of the reader/writer variable. | |
| std::string | debugText () const |
| 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 bool | hasVariableReference () const |
| Returns true if this item or any item in the registry (recursive) is a variable reference. | |
| 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 void | recordUpdateTime () const |
| Can be implemented in subclasses to stamp the time when updated. | |
| virtual bool | wasUpdatedSince (DtTime t) const |
| Can be implemented in subclasses to return true if an update occurred after the specified time. | |
| virtual DtlObjPtr | getData (DtlObjPtr args, const SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) |
| virtual void | setValueSpecified (bool specified, bool recurse=false) |
| The specified flags are used for optional values. | |
| virtual bool | valueSpecified () const |
| 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) |
| virtual const DtReaderWriter * | defaultRWValue () const |
| The default value to use if the reader/writer object is a variable and that variable is not specified. | |
| virtual DtReaderWriter * | defaultRWValue () |
| virtual void | setDefaultRWValue (DtReaderWriter *) |
| Previous default value, if exists, will be removed and replaced with a clone of the supplied variable. | |
| virtual bool | checkAndSetDefaultRWValue (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference()) |
| Give the stream, if the stream contains a default value then set it here. | |
| const DtReaderWriterRegistry & | registry () const |
| Collection of child DtReaderWriter nodes owned by this object. | |
| DtReaderWriterRegistry & | registry () |
| virtual DtPropertyInterface * | property () |
| virtual const DtPropertyInterface * | property () const |
| virtual DtString | toXml () const |
| virtual bool | toXml (const DtFilename &) const |
| Writes contents of xml result to the given filename. | |
| virtual bool | fromXml (const DtString &) |
| Restores object from given xml string. Returns true if valid. | |
| virtual bool | fromXmlFile (const DtFilename &) |
| Restires object from given xml file. | |
| virtual void | putSelf (DtEnvironmentSP, DtEnvValueSP parent) const |
| virtual void | putData (DtEnvironmentSP, DtEnvValueSP value) const |
| Override to add attributes of actual data. | |
| virtual void | putVariableReference (DtEnvironmentSP, DtEnvValueSP value) const |
| Called when the item is a variable reference. | |
| 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()) |
| Gets data from the environment value. | |
| virtual void | unrecognizedItem (const DtEnvironmentSP env, const DtEnvValueSP root, const SearchPaths &searchPaths, const DtVariableBindingsList &varBindings) |
| Called when the xml reader tries to parse an unknown reader/writer item. Default is a no-op. | |
| virtual void | getVariableReference (DtEnvironmentSP, DtEnvValueSP value) |
| Called when the item is a variable reference. | |
Static Public Member Functions | |
| static DtSimComponent * | MarkThreadSafe (DtSimComponent *) |
| static DtSimComponentFactory * | factory () |
| A DtSimComponentFactory is allocated by the DtSimCreator, and this pointer is set. | |
| static void | setFactory (DtSimComponentFactory *factory) |
| static DtSimComponent * | createComponent (const DtString &name, const DtString &type, DtVrfObject *owner, DtSimManager *simManager, DtComponentSystem *parentSystem, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) |
| Creates a DtSimComponent using the factory, then initializes it via the MTL stream. | |
| static void | addSimComponentCreatorFcn (const DtString &type, DtSimComponentCreatorFcn fcn) |
| Adds a DtSimComponent creation function to the DtSimComponentFactory, using the given type as the key. | |
Static Public Member Functions inherited from DtReaderWriter | |
| static void | putIndent (std::string &fp, int indentLevel) |
| static const DtVariableBindingsList & | nullVariableReference () |
| static void | setPostGetSelfCallback (DtGetSelfCallbackFcn fcn, void *usrData) |
| static void | setPrePutSelfCallback (DtPutSelfCallbackFcn fcn, void *usrData) |
| static void | setPutIndent (bool) |
| static bool | putIndent () |
| static const char * | theXmlType () |
| The type that is used when archiving to an XML stream. | |
| static const DtFilename & | appPath () |
| Gets the current working directory. | |
| static void | setFactoryCreatorFunction (DtReaderWriterFactoryCreatorFcn fcn) |
| Sets the function to create the DtReaderWriterFactory. | |
| static void | createReaderWriterFactory () |
| static void | cleanupFactory () |
| static DtReaderWriter * | createFromXmlFile (const DtFilename &, bool createAsProperty=false) |
| Given a filename, returns a newly created reader/writer object from the object found within. | |
| static DtReaderWriter * | createFromXml (const DtString &, bool createAsProperty=false) |
| Given a xml string, returns a newly created reader/writer object from the object found within. | |
| static DtReaderWriter * | createFromEnvironment (DtEnvironmentSP, bool createAsProperty=false) |
| Given a xml environment, returns a newly created reader/writer object from the object found within. | |
| static DtString | getAttribute (DtEnvironmentSP env, const DtString &name, DtEnvValueSP root) |
| Gets the named attribute from a DtEnvValueSP. | |
Static Public Member Functions inherited from DtObjectDebugger< DtReaderWriter > | |
| static DtObjectCounter::CounterType | ObjectCount () |
| static const DtObjectContainer * | ObjectContainer () |
Static Public Member Functions inherited from DtObjectDebugger< DtSimComponent > | |
| static DtObjectCounter::CounterType | ObjectCount () |
| static const DtObjectContainer * | ObjectContainer () |
Protected Types | |
| typedef std::map< DtString, DtInputPort * > | DtInputPortMap |
| typedef std::map< DtString, DtOutputPort * > | DtOutputPortMap |
| typedef std::map< DtString, DtInputPortGroup * > | DtInputPortGroupMap |
| typedef std::map< DtString, DtOutputPortGroup * > | DtOutputPortGroupMap |
Protected Member Functions | |
| virtual double | computeCurrentTime () |
| Compute current time and myDT. | |
| bool | testInvariant () const |
| virtual bool | createPortGroups () |
| Called by init. | |
| virtual bool | createPorts () |
| Called by init. | |
| DtVrfProcessStateRepository * | createComponentPsr (const DtString &defaultPsrType, const DtString &defaultPsrName, bool useDescriptorParams=true) |
| Creates a PSR for this component and registers it with the PSR manager. | |
| virtual void | updateTaskVisualizations () |
| Called to update task visualizations after every tick. | |
| virtual void | destroyTaskVisualizations () |
| Destroys all task visualizations for this component. | |
| virtual void | destroyTaskVisualization (const DtString &name) |
| Destroys an existing task visualization. | |
| virtual DtPointTaskVisualizationPtr | pointTaskVisualization (const DtString &name) |
| Finds an existing or creates a new point task visualization with the given name. | |
| virtual DtLineTaskVisualizationPtr | lineTaskVisualization (const DtString &name) |
| Finds an existing or creates a new line task visualization with the given name. | |
| virtual DtAreaTaskVisualizationPtr | areaTaskVisualization (const DtString &name) |
| Finds an existing or creates a new area task visualization with the given name. | |
| virtual DtTextTaskVisualizationPtr | textTaskVisualization (const DtString &name) |
| Finds an existing or creates a new text task visualization with the given name. | |
| double | calculateNextTaskVisTickTime () const |
| Determines the next time the task visualizations should be ticked. | |
Protected Member Functions inherited from DtReaderWriter | |
| virtual void | bindToRwAsVariable (const DtReaderWriter *rw) |
| Copies values from the specified DtReaderWriter. | |
Protected Member Functions inherited from DtObjectDebugger< DtReaderWriter > | |
| DtObjectDebugger () | |
| DtObjectDebugger (const DtObjectDebugger &) | |
| ~DtObjectDebugger () | |
Protected Member Functions inherited from DtObjectDebugger< DtSimComponent > | |
| DtObjectDebugger () | |
| DtObjectDebugger (const DtObjectDebugger &) | |
| ~DtObjectDebugger () | |
Static Protected Attributes | |
| static DtSimComponentFactory * | myFactory |
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 |
| static bool | thePutIndent |
Private Member Functions | |
| DtSimComponent () | |
| default constructor; should not be called. | |
| DtSimComponent (const DtSimComponent &orig) | |
| copy constructor, not implemented | |
| DtSimComponent & | operator= (const DtSimComponent &orig) |
| assignment operator, not implemented | |
Additional Inherited Members | |
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::vector< DtFilename > | SearchPaths |
| typedef std::pair < DtSymbolString, DtString > | DtVariableNameType |
| typedef DtReaderWriterFactory *(* | DtReaderWriterFactoryCreatorFcn )() |
The DtSimComponent class is the base class for the entire simulation model component hierarchy.
****** NOTE of API change for version 3.7 ****** Due to a performance enhancement change, the myComponentDescriptor member variable is now defined to be const and all access to this descriptor (including the componentDescriptor() method) have been changed to be const access. If you have used this descriptor to modify values within the descriptor (either in the original descriptor or a derived descriptor class), this modification will effect all entities that share this descriptor as this descriptor now points to the original parameter database entry.
If you currently modify member variables in a descriptor class, it is suggested to instead make those member variables part of the component that uses them and modify them there. If you must modify the entries in the component descriptor, instead of using the supplied descriptor pointer, you will need to clone the descriptor entry and work with that clone. You will also need to delete this clone in your component destructor to avoid a memory leak.
|
protected |
|
protected |
|
protected |
|
protected |
| DtSimComponent::DtSimComponent | ( | const DtString & | name, |
| DtVrfObject * | owner, | ||
| DtSimManager * | simManager, | ||
| DtComponentDescriptor * | desc = 0, |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
| name | Reader writer name of this component. |
| owner | The DtVrfObject that owns this component |
| simManager | The simulation manager (provides access to terrain, message interface, simulation clock). |
| desc | The component descriptor used to initialize this component. |
| parentRegistry | Pointer to the parent reader writer registry (the containing object that reads/writes this object). |
|
virtual |
destructor
|
private |
default constructor; should not be called.
Here because the compiler will generate an unprotected one otherwise.
|
private |
copy constructor, not implemented
|
static |
| void DtSimComponent::setParentSystem | ( | DtComponentSystem * | system | ) |
Sets the parent system of this component.
This is called before init() when the component is created. Non-virtual since this will probably be moved to the constructor some day, and we don't want to have users overriding this method.
|
virtual |
Calls createPorts and createPortGroups Initializes myLastTickSimTime.
Reimplemented in DtSurfaceEntityPilotController, DtTargetSelectionController, DtRoadMovementController, DtDisaggregatedFormationController, DtDisaggregatedMoveAlongController, DtDamageAdjudicationActuator, DtSimpleProximitySensor, DtSurfaceEntityStopController, DtNavalMineSetController, DtDiGuyController, DtObjectSensor, DtFixedWingEmbarkationController, DtRailPathController, DtWeaponController, DtSpawnController, DtActuatorComponent, DtLauncherController, DtSpotReportGeneratorController, DtBallisticGunController, DtEmitterComponent, DtMunitionLaunchController, DtEngagementReportGeneratorController, DtSurfaceEntityFollowEntityController, DtDisaggregatedEmbarkationController, DtDynamicFeaturesController, DtJammerController, DtSignatureObjectSensor, DtSimpleRotaryWingPilot, DtWeaponActuator, DtConvoyTaskController, DtDisaggregatedMoveIntoFormationController, DtMissileDistractionController, DtSurfaceEntityActuator, DtDynamicTerrainController, DtRadarObjectSensor, DtObstructionSensor, DtWarheadDetonationActuator, DtDetonationController, DtDisaggregatedOccupancyDirectorController, DtFixedWingMoveAlongController, DtDisaggregatedMoveToLocationController, DtDisaggregatedPatrolAlongController, DtFixedWingTakeoffController, DtSurfaceEntityMoveAlongController, DtSurfaceEntitySimpleActuator, DtScriptReactiveTaskController, DtFixedWingActuatorComponent, DtHumanMovementActuator, DtAutomotiveActuatorComponent, DtFixedWingPilotController, DtGroundMovementChooserController, DtLaunchExpendableResourceController, DtRailMovementController, DtLaunchSmokeController, DtSubSurfaceDepthController, DtSuppressionActuator, DtAggregatedMovementActuator, DtAggregatedMoveToController, DtBallisticGun, DtHumanPatrolController, DtResupplyController, DtTurretSlewController, DtHumanMoveToController, DtLimitExistenceController, DtOccupancyDirectorController, DtPassiveSonarSensor, DtReleaseBombController, DtContactFusionController, DtHumanFollowController, DtLasingController, DtOrganizationController, DtRotaryWingActuatorComponent, DtSpotReportReceiver, DtAirVehicleWeaponHoldController, DtGroundCollisionAvoidanceController, DtHumanCollisionAvoidanceController, DtHumanMoveAlongController, DtMultipleHitDamageActuator, DtAggregatedPatrolController, DtAggregatedSetController, DtEmbarkationController, DtIndirectFireController, DtLaserGuidedLauncherController, DtMissileManeuverActComponent, DtFallingFromSkyActuatorComponent, DtFixedWingLandingController, DtGroundMoveToDestinationControllerComponent, DtIndirectFireWeaponController, DtLasingMissileTrackController, DtLauncherActuator, DtSensorGimbalActuator, DtSwingingPartActuator, DtUnderFireDeterminationSensor, DtActiveSonarSensor, DtIntegratedLaserGuidedLauncherController, DtMissileControllerComponent, DtMovementBasedTerrainPreloadController, DtNavigationPreferenceController, DtShapeBasedTerrainPreloadController, DtTopLevelOrganizationController, DtTurretScanController, DtBombController, DtGroundMoveDirectionController, DtHumanCoverPointController, DtRotaryWingWaitController, DtSubSurfaceEntitySimpleActuator, DtWaitController, DtControllerComponent, DtBombActuator, DtDisaggregatedPatrolBetweenController, DtFixedWingFlightCommandController, DtHumanPostureController, DtMissileCollisionActuator, DtAggregateModelResolutionController, DtBaseWeaponController, DtCombatRangeController, DtCruiseMissileDefaultController, DtEnvironmentalActivationController, DtFixedWingDefaultController, DtFixedWingGunneryController, DtHumanCrosswalkController, DtHumanFleeController, DtRotaryWingPilotController, DtSensorGimbalController, DtAggregateIndirectFireController, DtDefaultLandingGearController, DtGroundAutoControllerComponent, DtHumanLauncherAcquireController, DtIndirectArtilleryComponent, DtLocalEntitySetController, DtRotaryWingEncumberedFlightActuator, DtRotaryWingFlightCommandController, DtAggregateAntiAirController, DtAutoAggregateDisaggregateController, DtGroundVehicleTrailingEffectController, DtNbcSensor, DtRotaryWingMoveAlongControllerComponent, DtSendRadioMessageController, DtTranslatablePartActuator, DtDisaggregatedSetController, DtEngineeringObjectSensor, DtGlobalEnvironmentActuator, DtTagVolumeDimensionsController, DtTurnAndMoveController, DtAggregatedMoveAlongController, DtAggregateReleaseBombController, DtRotaryWingJoyFlightController, DtRotaryWingTaskController, DtTerrainProximityIndicator, DtVrfObjectDataMessenger, DtAimWeaponController, DtHumanEyepointController, DtHumanTurnToController, DtRotaryWingLandingGearController, DtUpdateRepositoryActuator, DtBreachDetector, DtHumanAcquireController, DtIffControllerComponent, DtMultiTaskControllerComponent, DtTimeKeeperComponent, DtEncumbranceActuator, DtGroundMoveAlongControllerComponent, DtRotaryWingCollisionAvoidanceController, DtScriptedMovementController, DtSimTerrainVisualizationController, DtEmbeddedEntitiesController, DtFrictionlessGravityCollisionsActuator, DtLaserDetector, DtMissileTargetController, DtHumanFaceTargetController, DtHumanStopMovingController, DtIndividualLifeFormDamageAdjudicationActuator, vrfAddSetEncumbranceExample::DtManualRotaryWingEncumberedFlightActuator, DtSimpleRadarWarningReceiver, DtAimAtPointController, DtEngineeringObjectSetController, DtSystemSwitcherComponent, DtCreateEngineeringObjectController, DtScriptMultiTaskController, DtAffectEngineeringObjectController, DtDestroyEngineeringObjectController, DtBreachObstacleController, DtDieWhenHitActuator, DtFascamController, MyActuatorComponent, and DtCompatibilityController.
|
inlinevirtual |
Called after all components have been created, initialized and added to the component manager.
Override this function if you need to do any further initialization after all other components have been created.
Reimplemented in DtFixedWingPilotController, DtSurfaceEntityPilotController, DtSurfaceEntityFollowEntityController, DtGroundAutoControllerComponent, DtMissileControllerComponent, DtTargetSelectionController, DtHumanAcquireController, DtRotaryWingTaskController, DtSubSurfaceDepthController, DtBombController, DtObjectSensor, DtFixedWingDefaultController, DtTurretAcquireController, DtWeaponActuator, DtSurfaceEntityActuator, DtGroundMovementChooserController, DtSurfaceEntitySimpleActuator, DtTurretActuatorComponent, DtFixedWingTakeoffController, DtBallisticGunController, DtIndirectFireController, DtAggregatedSetController, DtAggregateModelResolutionController, DtSwingingPartActuator, DtDetonationController, DtFixedWingLandingController, DtResupplyController, DtBaseWeaponController, DtFixedWingGunneryController, DtNavigationPreferenceController, DtSensorGimbalController, DtTranslatablePartActuator, DtAimWeaponController, DtBaseMountingController, DtEventTriggerController, DtMountingAzimuthActuator, DtMountingElevationActuator, DtScriptEnableController, and DtMoppEnableController.
|
inlinevirtual |
Called to register functions that provide system attribute values.
Empty in this class. Overridden in different components to add attribute provider functions.
Reimplemented in DtLauncherController, DtMunitionLaunchController, DtIndirectFireWeaponController, and DtIffControllerComponent.
|
virtual |
Is this component enabled or not.
If enabled, component's tick function will be called, otherwise it will not. Default is true (enabled).
Reimplemented in DtEmbarkationController, DtDisaggregatedFormationController, DtTaskControllerComponent, DtLocalEntitySetController, DtNavalMineSetController, DtAggregateModelResolutionController, DtWaitController, DtTacticalGraphicSetController, DtAggregatedSetController, and DtSystemSwitcherComponent.
|
virtual |
Reimplemented in DtEmbarkationController, DtTaskControllerComponent, DtDisaggregatedFormationController, DtObjectSensor, DtLocalEntitySetController, DtNavalMineSetController, DtAggregateModelResolutionController, DtWaitController, DtTacticalGraphicSetController, DtAggregatedSetController, and DtSystemSwitcherComponent.
|
virtual |
|
virtual |
Reimplemented in DtObjectSensor, and DtAggregatedSetController.
|
virtual |
This function can be overridden to initialize a component before it is ticked for the first time.
The implementation for this function is empty. It is called by timedTick if myFirstTick is true.
Reimplemented in DtTargetSelectionController, DtHumanFleeController, DtHumanCoverPointController, DtSpawnController, DtAggregatedMoveToController, DtConvoyTaskController, DtRoadMovementController, DtDiGuyController, DtObjectSensor, DtSimpleProximitySensor, DtRailPathController, DtOccupancyDirectorController, DtLauncherController, DtScriptedMovementController, DtFixedWingLandingController, DtEmbarkationController, DtRadarObjectSensor, DtSignatureObjectSensor, DtBallisticGunController, DtDynamicTerrainController, DtBallisticGun, DtEmitterComponent, DtDetonationController, DtFixedWingMoveAlongController, DtReleaseBombController, DtLaserGuidedLauncherController, DtObstructionSensor, DtHumanMovementActuator, DtMissileTargetController, DtSurfaceEntityMoveAlongController, DtLasingController, DtHumanMoveAlongController, DtLaunchExpendableResourceController, DtMultipleHitDamageActuator, DtAggregateModelResolutionController, DtRailMovementController, DtScriptReactiveTaskController, DtIndirectFireWeaponController, DtEnvironmentalActivationController, DtNavigationPreferenceController, DtSensorGimbalActuator, DtIndirectFireActuator, DtShapeBasedTerrainPreloadController, DtCruiseMissileDefaultController, DtScenarioEventController, DtAggregatedMoveAlongController, DtFrictionlessGravityActuator, DtGroundMoveAlongControllerComponent, DtAggregateAntiAirController, DtAggregateIndirectFireController, DtTagVolumeDimensionsController, DtAggregateReleaseBombController, DtIffControllerComponent, DtTerrainProximityIndicator, DtEmbeddedEntitiesController, DtPropulsionNoiseGenerator, DtFrictionlessGravityCollisionsActuator, DtNbcWeaponController, and DtScriptMultiTaskController.
|
virtual |
This gives the thread of control to the component.
The component is ticked once each simulation from by the component list it's on. This base class tick has no functionality.
Reimplemented in DtBaseWeaponController, DtTargetSelectionController, DtDamageAdjudicationActuator, DtRailPathController, DtGroundFollowEntityController, DtSpawnController, DtConvoyTaskController, DtSurfaceEntityPilotController, DtDisaggregatedMoveAlongController, DtObjectSensor, DtRoadMovementController, DtSurfaceEntityActuator, DtAggregatedSetController, DtLocalEntitySetController, DtDisaggregatedEmbarkationController, DtRotaryWingFollowEntityController, DtDiGuyController, DtSignatureObjectSensor, DtSurfaceEntityFollowEntityController, DtDisaggregatedFormationController, DtSurfaceEntityMoveToLocationController, DtSuppressionActuator, DtSurfaceEntitySimpleActuator, DtRetreatController, DtMunitionLaunchController, DtOccupancyDirectorController, DtSurfaceEntityPatrolBetweenController, DtRadarObjectSensor, DtSurfaceEntityStopController, DtWeaponController, DtLauncherController, DtWarheadDetonationActuator, DtFixedWingTakeoffController, DtFixedWingLandingController, DtDynamicTerrainController, DtHumanJoystickMovementController, DtReleaseBombController, DtTurretAcquireController, DtEmbarkationController, DtSpotReportGeneratorController, DtBallisticGun, DtBallisticGunController, DtObstructionSensor, DtSimpleRotaryWingPilot, DtEngagementReportGeneratorController, DtMissileDistractionController, DtVrfObjectDataMessenger, DtTurnAndMoveController, DtFixedWingMoveAlongController, DtDetonationController, DtLasingController, DtWeaponActuator, DtHumanMoveAlongController, DtNavalMineSetController, DtSubSurfaceEntitySimpleActuator, DtUnderFireDeterminationSensor, DtLaserGuidedLauncherController, DtTurretActuatorComponent, DtRailMovementController, DtDisaggregatedMoveIntoFormationController, DtDynamicFeaturesController, DtFixedWingActuatorComponent, DtHumanMovementActuator, DtLaunchExpendableResourceController, DtSubSurfaceDepthController, DtCombatRangeController, DtAggregatedMovementActuator, DtAggregateModelResolutionController, DtAutomotiveActuatorComponent, DtBallisticGunJoyController, DtIndirectFireController, DtTurretSlewController, DtGroundCollisionAvoidanceController, DtHumanCollisionAvoidanceController, DtHumanFollowController, DtScriptReactiveTaskController, DtContactFusionController, DtDisaggregatedPatrolAlongController, DtFixedWingPilotController, DtAggregatedMoveToController, DtBombController, DtDisaggregatedPatrolBetweenController, DtGroundMoveToDestinationControllerComponent, DtOrganizationController, DtBaseMountingController, DtHumanMoveToController, DtIndirectFireWeaponController, DtRotaryWingActuatorComponent, DtSensorGimbalActuator, DtSwingingPartActuator, DtAirVehicleWeaponHoldController, DtLaunchSmokeController, DtLimitExistenceController, DtSpotReportReceiver, DtActiveSonarSensor, DtAggregateOrganizationController, DtEmitterComponent, DtFallingFromSkyActuatorComponent, DtIndirectArtilleryComponent, DtMissileManeuverActComponent, DtRotaryWingWaitController, DtWaitController, DtCruiseMissileLaunchController, DtTopLevelOrganizationController, DtBombActuator, DtFixedWingGunneryController, DtCruiseMissileDefaultController, DtJammerController, DtMissileCollisionActuator, DtBallisticGunJoy, DtGroundMoveDirectionController, DtHumanAcquireController, DtHumanCoverPointController, DtNbcSensor, DtSensorGimbalController, DtSurfaceEntityTurnMoveController, DtTranslatablePartActuator, DtGroundMoveAlongControllerComponent, DtHumanPostureController, DtSimpleRadarWarningReceiver, DtAggregatedMoveAlongController, DtDefaultLandingGearController, DtEngineeringObjectSensor, DtFixedWingFlightCommandController, DtHumanCrosswalkController, DtHumanFleeController, DtIndividualLifeFormDamageAdjudicationActuator, DtIntegratedLaserGuidedLauncherController, DtRotaryWingEncumberedFlightActuator, DtTurretScanController, DtAutoAggregateDisaggregateController, DtEmbeddedEntitiesController, DtLaserDetector, DtSimpleProximitySensor, DtAimWeaponController, DtFixedWingFollowEntityController, DtEnvironmentalActivationController, DtFixedWingDefaultController, DtHumanWeaponStateActuator, DtRotaryWingPilotController, DtTurretAimController, DtTimeKeeperComponent, DtMountingAzimuthActuator, DtRotaryWingTurnToHeadingController, DtScriptedMovementController, DtTurretReturnToHeadingController, DtDisaggregatedDamageActuator, DtEncumbranceActuator, DtIffControllerComponent, DtMissileMoveToControllerComponent, DtMissileTargetController, DtMountingElevationActuator, DtRotaryWingFlightCommandController, DtRotaryWingLandingController, DtRotaryWingLandingGearController, DtRotaryWingMoveAlongControllerComponent, DtDisaggregatedActuator, DtFixedWingMoveToController, DtHumanEyepointController, DtHumanTurnToController, DtRotaryWingPatrolBetweenController, DtSendRadioMessageController, DtTacticalSmokeActuator, DtAffectEngineeringObjectController, DtEventTriggerController, DtGlobalEnvironmentActuator, DtDisaggregatedMoveToController, DtSinkToDepthActuator, DtTerrainProximityIndicator, DtGroundStopMovingControllerComponent, DtBreachDetector, DtGroundVehicleTrailingEffectController, DtHumanFaceTargetController, DtHumanStopMovingController, DtPropulsionNoiseGenerator, vrfAddSetEncumbranceExample::DtManualRotaryWingEncumberedFlightActuator, DtGroundTurnToControllerComponent, DtRotaryWingCollisionAvoidanceController, DtRotaryWingLoiterControllerComponent, DtSimTerrainVisualizationController, DtAimAtPointController, DtRotaryWingMoveToControllerComponent, DtSystemSwitcherComponent, DtSimpleRadarWarningResponse, DtUpdateRepositoryActuator, DtScenarioEventController, DtScriptEnableByAggregatePostureController, DtScriptMultiTaskController, DtDieWhenHitActuator, MyActuatorComponent, and MyParallelTickComponent.
|
virtual |
This function is called immediately after tick() is called.
Implementation in this class just ticks task visualizations if taskVisualizationsActive() returns true.
Reimplemented in DtMultiTaskControllerComponent, and DtSingleTaskControllerComponent.
|
virtual |
This version of tick checks to see if the time to tick has arrived.
It checks to see if myNextTickTime <= currentTime, where current time is either exerciseClock()->approximateElapsedRealTime() or exerciseClock()->simTime() depending on the tick-period-uses-real-time parameter. If true, it calls tick(), then calls postTick(), and then recalculates the next time to call timedTick() (myNextTickTime) by calling calculateNextTickTime().
Reimplemented in DtSpotReportGeneratorController, and DtActiveSonarSensor.
|
virtual |
specifies a minimum tick period (which can also be thought of as
|
virtual |
access the minimum tick period
|
virtual |
set the variance in the minimum tick time
|
virtual |
access the variance in the minimum tick period
|
virtual |
The next tick time is normally calculated internally.
setNextTickTime can be used to force a tick (set nextTickTime to exerciseClock()-> approximateElapsedRealTime())
|
virtual |
access the next tick time
|
virtual |
The next tick time is equal to mySimManager->exerciseClock()-> approximateElapsedRealTime() + myMinTickPeriod + a random # between -myMinTickPeriodVariance/2.
and +myMinTickPeriodVariance/2. If the exercise clock is paused, the variance is always set to zero to insure that the extra calls to DtFRand() don't prevent repeatability.
|
virtual |
Returns the first time value that the component should tick at.
This is a randomized interval from the current time up to the tick period of the component. Returns either real time or sim time, depending on the value of the tickPeriodUsesRealTime flag in the descriptor.
|
pure virtual |
Returns a string identifies the class type of component.
Type values are defined in compTypes.h. DtSimComponent creation functions are registered with the DtSimComponentFactory using the type values as the key. Warning: this function should always return the same pointer and it should be valid forever. This means the data should be static.
Implemented in DtDisaggregatedConvoyFormationController, DtDamageAdjudicationActuator, DtTargetSelectionController, DtSurfaceEntityPilotController, DtDisaggregatedFormationController, DtObjectSensor, DtRailPathController, DtRoadMovementController, DtSuppressionActuator, DtDisaggregatedMoveAlongController, DtGroundCollisionAvoidanceController, DtHumanCollisionAvoidanceController, DtObstructionSensor, DtWarheadDetonationActuator, DtFixedWingMoveAlongController, DtSignatureObjectSensor, DtMultipleHitDamageActuator, DtDiGuyController, DtDynamicTerrainController, DtEmitterComponent, DtLauncherController, DtSpotReportGeneratorController, DtTurretAcquireController, DtEngagementReportGeneratorController, DtVrfObjectDataMessenger, DtWeaponController, DtSimpleRotaryWingPilot, DtWeaponActuator, DtConvoyTaskController, DtMissileDistractionController, DtSurfaceEntityActuator, DtUnderFireDeterminationSensor, DtBallisticGun, DtRadarObjectSensor, DtFixedWingPilotController, DtSurfaceEntityPatrolRouteController, DtTurretActuatorComponent, DtBombController, DtFixedWingTakeoffController, DtGroundMoveToDestinationControllerComponent, DtBallisticGunController, DtIndirectFireActuator, DtDynamicFeaturesController, DtGroundMovementChooserController, DtMunitionLaunchController, DtSurfaceEntitySimpleActuator, DtTaskControllerComponent, DtFixedWingActuatorComponent, DtHumanMovementActuator, DtSurfaceEntityFollowEntityController, DtRetreatController, DtAggregatedMovementActuator, DtAutomotiveActuatorComponent, DtDisaggregatedMoveIntoFormationController, DtCruiseMissileDefaultController, DtTurretSlewController, DtAggregatedMoveToController, DtBaseWeaponController, DtOccupancyDirectorController, DtPassiveSonarSensor, DtSurfaceEntityPatrolBetweenController, DtAggregateModelResolutionController, DtContactFusionController, DtFixedWingFlyIntoController, DtHumanMoveToController, DtLasingController, DtOrganizationController, DtRotaryWingActuatorComponent, DtSensorGimbalActuator, DtSpotReportReceiver, DtSwingingPartActuator, DtScriptReactiveTaskController, DtAirVehicleWeaponHoldController, DtDetonationController, DtDisaggregatedMoveToLocationController, DtFixedWingFlightCommandController, DtFixedWingLandingController, DtHumanMoveAlongController, DtRotaryWingCollisionAvoidanceController, DtSurfaceEntityMoveAlongController, DtAirVehicleSetController, DtDisaggregatedPatrolAlongController, DtEmbarkationController, DtIndirectArtilleryComponent, DtIndirectFireController, DtMissileManeuverActComponent, DtShapeBasedTerrainPreloadController, DtCulturalFeatureSetController, DtFallingFromSkyActuatorComponent, DtLauncherActuator, DtRailMovementController, DtActiveSonarSensor, DtDisaggregatedEmbarkationController, DtFixedWingDefaultController, DtMissileControllerComponent, DtMovementBasedTerrainPreloadController, DtRotaryWingPilotController, DtSurfaceEntityMoveToLocationController, DtTopLevelOrganizationController, DtAggregateOrganizationController, DtCruiseMissileLaunchController, DtGroundMoveDirectionController, DtHumanAcquireController, DtJammerController, DtRotaryWingTurnToHeadingController, DtSensorGimbalController, DtSubSurfaceDepthController, DtSubSurfaceEntitySimpleActuator, DtSurfaceEntityTurnMoveController, DtBombActuator, DtDisaggregatedPatrolBetweenController, DtHumanCoverPointController, DtHumanPatrolController, DtIffControllerComponent, DtMissileCollisionActuator, DtMissileMoveToControllerComponent, DtRotaryWingFlightCommandController, DtRotaryWingLandingController, DtRotaryWingMoveAlongControllerComponent, DtSurfaceEntityStopController, DtTranslatablePartActuator, DtFixedWingMoveToController, DtGroundMoveToControllerComponent, DtHumanFollowController, DtHumanPostureController, DtLimitExistenceController, DtRotaryWingPatrolBetweenController, DtTagVolumeDimensionsController, DtTurnAndMoveController, DtDefaultLandingGearController, DtDisaggregatedWaitController, DtDynamicTerrainMunitionDamageController, DtGlobalEnvironmentActuator, DtGroundAutoControllerComponent, DtHumanCrosswalkController, DtHumanFleeController, DtHumanLauncherAcquireController, DtLocalEntitySetController, DtMissileTrackEntityController, DtRotaryWingEncumberedFlightActuator, DtAimWeaponController, DtAutoAggregateDisaggregateController, DtBaseMountingController, DtDisaggregatedMoveToController, DtFixedWingEntitySetController, DtFixedWingPatrolRouteController, DtGroundFollowEntityController, DtIndirectFireWeaponController, DtNbcSensor, DtRotaryWingPatrolRouteController, DtSimpleProximitySensor, DtTerrainProximityIndicator, DtAggregatedPatrolController, DtEngineeringObjectSensor, DtGroundStopMovingControllerComponent, DtLaserGuidedLauncherController, DtLasingMissileTrackController, DtRotaryWingFollowEntityController, DtTurretScanController, DtDisaggregatedTurnToHeadingController, DtTurretAimController, DtSimpleRadarWarningReceiver, DtActivityController, DtDisaggregatedOccupancyDirectorController, DtFixedWingFollowEntityController, DtFixedWingPatrolBetweenController, DtGroundPatrolBetweenController, DtGroundPatrolRouteController, DtGroundTurnToControllerComponent, DtIntegratedLaserGuidedLauncherController, DtMountingAzimuthActuator, DtRotaryWingJoyFlightController, DtRotaryWingLoiterControllerComponent, DtRotaryWingWaitController, DtScriptedMovementController, DtSpawnController, DtTurretReturnToHeadingController, DtWaitController, DtControllerComponent, DtAggregatedMoveAlongController, DtHumanEyepointController, DtLaserDetector, DtMissileTargetController, DtMountingElevationActuator, DtReleaseBombController, DtRotaryWingLandingGearController, DtRotaryWingMoveToControllerComponent, DtRotaryWingTaskController, DtAffectEngineeringObjectController, DtBallisticGunJoy, DtCruiseMissileMoveAlongController, DtFixedWingGunneryController, DtFrictionlessGravityCollisionsActuator, DtHumanSetController, DtHumanTurnToController, DtHumanWeaponStateActuator, DtSurfaceEntityMoveToController, DtSurfaceEntitySetController, DtTacticalGraphicSetController, DtTacticalSmokeActuator, DtAggregateIndirectFireController, DtDisaggregatedDamageActuator, DtEncumbranceActuator, DtGroundMoveAlongControllerComponent, DtHumanJoystickMovementController, DtAggregateAntiAirController, DtCreateEngineeringObjectController, DtDisaggregatedActuator, DtDisaggregatedSetController, DtHumanGunActuator, DtSendRadioMessageController, MyJoystickControllerComponenet, DtBallisticGunJoyController, DtDestroyEngineeringObjectController, DtFixedWingEmbarkationController, DtGroundMoveToLocationControllerComponent, DtHumanFaceTargetController, DtIndividualLifeFormDamageAdjudicationActuator, DtLaunchExpendableResourceController, DtLaunchSmokeController, DtAggregateDynamicFeaturesController, DtBreachObstacleController, DtGroundVehicleTrailingEffectController, DtHumanStopMovingController, DtPropulsionNoiseGenerator, DtAggregateReleaseBombController, DtAimAtPointController, DtFixedWingJoyFlightController, DtFrictionlessGravityActuator, DtNavalMineSetController, DtNavigationPreferenceController, DtBreachDetector, DtEventTriggerController, DtFixedWingMoveToLocationController, DtGroundJoyMoveController, DtGroundJoyTurretController, DtMountingController, DtSystemSwitcherComponent, DtScriptEnableController, DtSimTerrainVisualizationController, DtVerticalLauncherController, DtTimeKeeperComponent, DtCombatRangeController, DtFascamController, DtHumanObstructionSensor, DtMoppEnableController, DtNbcWeaponController, DtRotaryWingEmbarkationController, DtRotaryWingMoveToLocationControllerComponent, DtSimpleRadarWarningResponse, DtEmbeddedEntitiesController, DtEnvironmentalActivationController, DtResupplyController, DtUpdateRepositoryActuator, DtPseudoAggregatedSetController, DtScenarioEventController, DtSinkToDepthActuator, DtDieWhenHitActuator, DtScriptMultiTaskController, DtAggregatedSubsurfaceMovementActuator, MyActuatorComponent, MyParallelTickComponent, and DtCompatibilityController.
|
virtual |
The entity's state repository is the place that actuator components make updates and other components look to see our current state.
This provides a basic communication mechanism between components. Having the entity changeable makes it possible to migrate a component from one entity to another... A local copy of the entity's state repository is also made by this call for ease of use.
Reimplemented in DtSimpleRadarWarningReceiver, and DtLaserDetector.
|
virtual |
List management functions.
|
virtual |
|
virtual |
Used by DtComponentList.
|
virtual |
|
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 |
Adds this input port to the components input port list so that other components can look it up and attach to it.
|
virtual |
|
virtual |
Returns a pointer to the input port registered on this component with the specified name.
portName can specify a group and port in the form "groupname:portname" which will cause this function to look for the port inside the specified group.
|
virtual |
Returns the list of DtInputPorts registered on this component.
|
virtual |
Adds this output port to the components output port list so that other components can look it up and attach to it.
|
virtual |
|
virtual |
Returns a pointer to the output port registered on this component with the specified name.
portName can specify a group and port in the form "groupname:portname" which will cause this function to look for the port inside the specified group.
|
virtual |
Returns the list of DtOutputPorts registered on this component.
|
virtual |
Adds this input port to the components input port list so that other components can look it up and attach to it.
|
virtual |
|
virtual |
Returns a pointer the input port group registered on this component with the specified name.
|
virtual |
Returns the list of DtInputPortGroups registered on this component.
|
virtual |
Adds this output port group to the components output port group list so that other components can look it up and attach to it.
|
virtual |
|
virtual |
Returns a pointer the output port group registered on this component with the specified name.
|
virtual |
Returns the list of DtOutputPortGroups registered on this component.
|
virtual |
Return the current connection priority for this component.
This value determines which component will take precedence when multiple connections attempts are active on the same input port. Lower numbers will take precedence. By default, component priorities are based on the order they were listed in the OPD entry, starting with 0.
|
virtual |
Sets a new connection priority for this component, and changes all current outgoing connections from this component to the new value.
By default, component priorities are based on the order they were listed in the OPD entry, starting with 0. It is only necessary to use this method if components are being added or removed after object-creation time.
|
inline |
|
virtual |
Note that while dT is calculated internally, this makes it possible to 'lie' to the component about dT if necessary.
| Input | |
| deltaT | time in seconds |
|
virtual |
The component descriptor specified in the order of battle file or parameter file that was used to create this component.
It may be derived from and hold component-specific parameter information.
Reimplemented in DtWarheadDetonationActuator, DtMunitionLaunchController, DtVrfObjectDataMessenger, DtFixedWingFlyIntoController, DtGroundMoveToDestinationControllerComponent, DtLaserGuidedLauncherController, and DtBallisticGunJoy.
|
virtual |
|
virtual |
If the component returns true here, it will be ticked regardless of the destroyed state of the host entity.
Otherwise, tick will only be called when the entity is alive.
Reimplemented in DtScriptedMovementController, DtDiGuyController, DtObjectSensor, DtRoadMovementController, DtLocalEntitySetController, DtOrganizationController, DtAggregateModelResolutionController, DtActuatorComponent, DtUnderFireDeterminationSensor, DtRailMovementController, DtEmitterComponent, DtSpotReportReceiver, DtFixedWingLandingController, DtJammerController, DtAffectEngineeringObjectController, DtTacticalGraphicSetController, and DtScriptMultiTaskController.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
| DtVrfProcessStateRepositoryManager* DtSimComponent::psrManager | ( | ) |
|
virtual |
|
virtual |
|
virtual |
|
static |
A DtSimComponentFactory is allocated by the DtSimCreator, and this pointer is set.
The DtSimCreator deletes this pointer when it is deleted. This is done this way because we don't allow static initialization.
Reimplemented from DtReaderWriter.
|
static |
|
static |
Creates a DtSimComponent using the factory, then initializes it via the MTL stream.
|
static |
Adds a DtSimComponent creation function to the DtSimComponentFactory, using the given type as the key.
The type string is one of the types defined in compTypes.h.
| type | Type identifying particular derived type of DtSimComponent |
| fcn | Creation function that instantiates a new DtSimComponent. |
|
virtual |
Gets the physical world that this component's entity exists in.
|
virtual |
|
virtual |
Gets the terrain that this component's entity is attached to, if any.
|
virtual |
|
virtual |
Gets the entity.
|
virtual |
|
virtual |
Gets the sim manager.
|
virtual |
|
virtual |
Gets the coordinate system, as it should always exist if the physical world is in a valid state!
|
virtual |
|
virtual |
Gets the local state repository.
|
virtual |
|
virtual |
Returns the list of task visualizations for this component.
|
virtual |
Returns true if task visualizations are currently active for this component.
Default behavior is to return false. Must be overridden in subclasses to enable task visualizations.
Reimplemented in DtTaskControllerComponent.
|
protectedvirtual |
Compute current time and myDT.
|
protected |
|
protectedvirtual |
Called by init.
Derived classes should override this method to create all their input/output port groups.
Reimplemented in DtFixedWingPilotController, DtAutomotiveActuatorComponent, DtHumanMovementActuator, DtBallisticGun, DtFixedWingActuatorComponent, DtSurfaceEntityPilotController, DtHumanCollisionAvoidanceController, DtSurfaceEntityFollowEntityController, DtGroundMoveToDestinationControllerComponent, DtHumanFollowController, DtGroundCollisionAvoidanceController, DtDiGuyController, DtObstructionSensor, DtGroundAutoControllerComponent, DtObjectSensor, DtSurfaceEntityActuator, DtAggregatedMoveToController, DtBaseWeaponController, DtHumanMoveToController, DtBaseMountingController, DtAggregatedMovementActuator, DtBallisticGunController, DtMissileControllerComponent, DtWeaponActuator, DtScriptedMovementController, DtSurfaceEntitySimpleActuator, DtSensorGimbalController, DtTurretAcquireController, DtHumanAcquireController, DtRotaryWingPilotController, DtAggregatedMoveAlongController, DtHumanCoverPointController, DtRotaryWingActuatorComponent, DtRotaryWingMoveAlongControllerComponent, DtSensorGimbalActuator, DtRotaryWingTaskController, DtMissileManeuverActComponent, DtMountingElevationActuator, DtMountingAzimuthActuator, DtGroundMoveDirectionController, DtFallingFromSkyActuatorComponent, DtAirVehicleWeaponHoldController, DtHumanEyepointController, DtHumanFleeController, DtTerrainProximityIndicator, DtAimWeaponController, DtDefaultLandingGearController, DtHumanTurnToController, DtAimAtPointController, DtHumanCrosswalkController, DtHumanStopMovingController, DtHumanFaceTargetController, DtUpdateRepositoryActuator, and DtHumanJoystickMovementController.
|
protectedvirtual |
Called by init.
Derived classes should override this method to create all their input/output ports and port groups.
Reimplemented in DtFixedWingPilotController, DtAutomotiveActuatorComponent, DtHumanMovementActuator, DtBallisticGun, DtFixedWingActuatorComponent, DtSurfaceEntityPilotController, DtHumanCollisionAvoidanceController, DtSurfaceEntityFollowEntityController, DtWeaponController, DtGroundMoveToDestinationControllerComponent, DtHumanFollowController, DtGroundCollisionAvoidanceController, DtDiGuyController, DtSimpleRotaryWingPilot, DtLauncherController, DtObstructionSensor, DtGroundAutoControllerComponent, DtObjectSensor, DtSurfaceEntityActuator, DtAggregatedMoveToController, DtIndirectFireWeaponController, DtTargetSelectionController, DtBaseWeaponController, DtHumanMoveToController, DtBaseMountingController, DtIndirectFireActuator, DtGroundFollowEntityController, DtAggregatedMovementActuator, DtBallisticGunController, DtDetonationController, DtMissileControllerComponent, DtWeaponActuator, DtSignatureObjectSensor, DtSurfaceEntitySimpleActuator, DtSpotReportGeneratorController, DtSensorGimbalController, DtRotaryWingPilotController, DtTurretAcquireController, DtHumanAcquireController, DtFixedWingGunneryController, DtFixedWingLandingController, DtHumanCoverPointController, DtAggregatedMoveAlongController, DtSwingingPartActuator, DtTurretSlewController, DtTurretActuatorComponent, DtRotaryWingActuatorComponent, DtRotaryWingMoveAlongControllerComponent, DtSensorGimbalActuator, DtSubSurfaceDepthController, DtWarheadDetonationActuator, DtLaserGuidedLauncherController, DtRotaryWingTaskController, DtMissileManeuverActComponent, DtLauncherActuator, DtMountingElevationActuator, DtMountingAzimuthActuator, DtSimpleProximitySensor, DtBombController, DtSpotReportReceiver, DtContactFusionController, DtAirVehicleWeaponHoldController, DtHumanPostureController, DtBallisticGunJoyController, DtLaserDetector, DtHumanEyepointController, DtHumanFleeController, DtGroundMoveDirectionController, DtIntegratedLaserGuidedLauncherController, DtSubSurfaceEntitySimpleActuator, DtSimpleRadarWarningReceiver, DtAimWeaponController, DtBombActuator, DtDefaultLandingGearController, DtHumanTurnToController, DtRotaryWingEncumberedFlightActuator, DtHumanCrosswalkController, DtHumanWeaponStateActuator, DtTurretAimController, DtTerrainProximityIndicator, DtEncumbranceActuator, DtEventTriggerController, DtHumanFaceTargetController, DtAimAtPointController, DtHumanGunActuator, DtSimpleRadarWarningResponse, DtHumanJoystickMovementController, and DtBallisticGunJoy.
|
protected |
Creates a PSR for this component and registers it with the PSR manager.
This is typeically called from init() by a derived class if the derived class has a PSR it wishes to use. If the PSR manager already has a PSR of the desired name, that will be returned.
| useDescriptorParams | If true, the PSR Type and Name will be taken from the component descriptor, if available. Otherwise, the default will be used, regardless of descriptor values. |
|
inlineprotectedvirtual |
Called to update task visualizations after every tick.
Implemented by subclasses.
Reimplemented in DtFixedWingMoveAlongController, DtHumanFollowController, DtRoadMovementController, DtFixedWingMoveToController, DtHumanMoveToController, DtRailMovementController, DtGroundMoveAlongControllerComponent, DtGroundMoveToDestinationControllerComponent, DtHumanFleeController, DtScriptedMovementController, DtConvoyTaskController, DtDynamicTerrainController, and DtHumanCrosswalkController.
|
protectedvirtual |
Destroys all task visualizations for this component.
|
protectedvirtual |
Destroys an existing task visualization.
|
protectedvirtual |
Finds an existing or creates a new point task visualization with the given name.
|
protectedvirtual |
Finds an existing or creates a new line task visualization with the given name.
|
protectedvirtual |
Finds an existing or creates a new area task visualization with the given name.
|
protectedvirtual |
Finds an existing or creates a new text task visualization with the given name.
|
protected |
Determines the next time the task visualizations should be ticked.
|
private |
assignment operator, not implemented
|
protected |
|
protected |
|
protected |
|
protected |
Pointer to the DtComponentSystem that this component belongs.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Indicates whether this component should be enabled for ticking or not.
|
protected |
Initialized to true in the constructor, set to false by the first call to postTick.
|
protected |
Whether this component can be use the DtCriticalSection versions of the tick functions and be ticked in parallel with other components Defaults to false.
|
protected |
|
protected |
List of PSRs made using createComponentPsr() that will be deleted by this component when it is destroyed.
|
protected |
Flag indicating that tickPeriod is set to 0, and the component will tick every frame.
|
protected |
The visualization objects to be drawn for this component.
|
protected |
The next tick time for updating the task visualizations.