![]() |
VR-Forces 5.0.1 Developer's Guide
|
The DtSimComponent class is the base class for the entire simulation model component hierarchy.
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.

Public Member Functions | |
| DtSimComponent (const DtString &name, DtLocalObject *owner, DtSimulationServices *simServices, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) | |
| virtual | ~DtSimComponent () |
| virtual void | setParentSystem (DtComponentSystem *system) |
| DtComponentSystem * | parentSystem () const |
| virtual bool | init () |
| virtual bool | postAddComponentsInit () |
| virtual void | registerAttributeFunctions () |
| virtual void | preFirstTickInit () |
| virtual void | tick () |
| virtual void | postTick () |
| virtual void | timedTick () |
| virtual void | setMinTickPeriod (double minTickPeriod) |
| virtual double | minTickPeriod () const |
| virtual void | setMinTickPeriodVariance (double minTickPeriodVariance) |
| virtual double | minTickPeriodVariance () const |
| virtual void | setNextTickTime (double nextTickTime) |
| virtual double | nextTickTime () const |
| virtual double | calculateNextTickTime () const |
| virtual double | calculateFirstTickTime () const |
| virtual const char * | type () const =0 |
| virtual void | setEntity (DtLocalObject *entity) |
| virtual DtSimComponent * | nextComponent () |
| virtual DtSimComponent * | prevComponent () |
| virtual void | setListItem (DtListItem *item) |
| virtual DtListItem * | listItem () |
| virtual void | putData (std::string &fp, int indentLevel=0) |
| virtual DtlObjPtr | getData (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) |
| virtual void | addInputPort (DtInputPort *port) |
| virtual void | removeInputPort (DtInputPort *port) |
| virtual DtInputPort * | lookupInputPort (const DtString &portName) |
| virtual DtList | inputPortList () const |
| virtual void | addOutputPort (DtOutputPort *port) |
| virtual void | removeOutputPort (DtOutputPort *port) |
| virtual DtOutputPort * | lookupOutputPort (const DtString &portName) |
| virtual DtList | outputPortList () const |
| virtual void | addInputPortGroup (DtInputPortGroup *group) |
| virtual void | removeInputPortGroup (DtInputPortGroup *group) |
| virtual DtInputPortGroup * | lookupInputPortGroup (const DtString &groupName) |
| virtual DtList | inputPortGroupList () const |
| virtual void | addOutputPortGroup (DtOutputPortGroup *group) |
| virtual void | removeOutputPortGroup (DtOutputPortGroup *group) |
| virtual DtOutputPortGroup * | lookupOutputPortGroup (const DtString &groupName) |
| virtual DtList | outputPortGroupList () const |
| virtual int | priority () const |
| virtual void | setPriority (int priority) |
| double | dT () const |
| virtual void | setDT (double deltaT) |
| virtual void | setComponentDescriptor (DtComponentDescriptor *componentDescriptor) |
| virtual const DtComponentDescriptor * | componentDescriptor () const |
| virtual bool | tickWhileDestroyed () const |
| DtVrfProcessStateRepositoryManager * | psrManager () |
| virtual const DtSymbolString & | componentFullName () const |
| DtPhysicalWorld * | physicalWorld () |
| const DtPhysicalWorld * | physicalWorld () const |
| const DtAttachedTerrain * | terrainAttachedTo () const |
| DtLocalObject * | entity () |
| const DtLocalObject * | entity () const |
| DtSimulationServices * | simulationServices () |
| const DtSimulationServices * | simulationServices () const |
| const Coordinate_System * | coordinateSystem () const |
| virtual bool | taskVisualizationsActive () const |
| virtual bool | taskVisualizationsEnabled () const |
| virtual void | onRestore () |
| makVrf::DtTaskVisualizationMap & | taskVisualizations () |
| virtual void | enable () |
| virtual void | disable () |
| virtual bool | isEnabled () |
| virtual void | setIsEnabled (bool yesNo) |
Object Console Streams | |
These convenience functions make use of the DtLocalObject object console streams. Please see the documentation there for more details. | |
| 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 int | notifyLevel () const |
| virtual DtSimResourceManager & | resourceManager () |
| virtual const DtSimResourceManager & | resourceManager () const |
Public Member Functions inherited from DtReaderWriter | |
| DtReaderWriter () | |
| DtReaderWriter (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false) | |
| DtReaderWriter (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false) | |
| DtReaderWriter (const DtString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtReaderWriter (const DtSymbolString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtReaderWriter (const DtReaderWriter &, DtReaderWriterRegistry *parentRegistry=NULL) | |
| const DtReaderWriter & | operator= (const DtReaderWriter &orig) |
| bool | operator== (const DtReaderWriter &) const |
| bool | operator!= (const DtReaderWriter &rhs) |
| virtual | ~DtReaderWriter () |
| virtual void | putSelf (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename()) |
| virtual void | postPutSelf () |
| virtual void | prePutSelf () |
| virtual void | getSelf (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference()) |
| virtual void | postGetSelf () |
| virtual void | preGetSelf () |
| virtual void | writeSelf (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename()) |
| virtual DtSymbolString | name () const |
| virtual void | addAlias (const DtSymbolString &alias) |
| virtual void | addAlias (const DtString &alias) |
| virtual bool | hasAlias (const DtSymbolString &alias) |
| virtual const aliasContainer & | aliases () const |
| virtual void | setReadonly (bool flag) |
| bool | isReadonly () const |
| virtual void | reset () |
| virtual int | alignment () const |
| virtual bool | variableIsBound () const |
| virtual void | unbindVariable () |
| virtual void | setName (const DtString &) |
| virtual const char * | readerWriterType () const |
| virtual const char * | xmlType () const |
| virtual DtString | prettyPrint () const |
| std::string | debugText () const |
| virtual void | bindVariables (DtVariableBindingsList variableBindings) |
| virtual std::list < DtVariableNameType > | unboundVariables () const |
| bool | invalid () const |
| virtual bool | hasChild (const DtReaderWriter *p) const |
| virtual bool | hasVariableReference () const |
| virtual void | bindLocalVariables (const DtVariableBindingsList &variableBindings) |
| virtual void | recordUpdateTime () const |
| virtual bool | wasUpdatedSince (DtTime t) const |
| virtual bool | changedSinceLastChecked () |
| virtual bool | peekChangedSinceLastChecked () const |
| virtual void | setValueSpecified (bool specified, bool recurse=false) |
| virtual bool | valueSpecified () const |
| virtual bool | isVariableReference () const |
| virtual void | setIsVariableReference (bool value) |
| virtual void | clearAllVariableReferenceFlags () |
| virtual DtSymbolString | variableName () const |
| virtual void | setVariableName (const DtSymbolString variableName) |
| virtual const DtReaderWriter * | defaultRWValue () const |
| virtual DtReaderWriter * | defaultRWValue () |
| virtual void | setDefaultRWValue (DtReaderWriter *) |
| virtual bool | checkAndSetDefaultRWValue (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference()) |
| const DtReaderWriterRegistry & | registry () const |
| DtReaderWriterRegistry & | registry () |
| virtual DtPropertyInterface * | property () |
| virtual const DtPropertyInterface * | property () const |
| virtual DtString | toXml () const |
| virtual DtRwVariableBindings * | generateVariableBindings () const |
| virtual bool | toXml (const DtFilename &) const |
| virtual bool | fromXml (const DtString &) |
| virtual bool | fromXmlFile (const DtFilename &) |
| virtual void | putSelf (DtEnvironmentSP, DtEnvValueSP parent) const |
| virtual void | putData (DtEnvironmentSP, DtEnvValueSP value) const |
| virtual void | putVariableReference (DtEnvironmentSP, DtEnvValueSP value) const |
| virtual void | getSelf (const DtEnvironmentSP, const DtEnvValueSP root, const SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &bindings=DtVariableBindingsList()) |
| virtual void | getData (const DtEnvironmentSP, const DtEnvValueSP, const SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &bindings=DtVariableBindingsList()) |
| virtual void | unrecognizedItem (const DtEnvironmentSP env, const DtEnvValueSP root, const SearchPaths &searchPaths, const DtVariableBindingsList &varBindings) |
| virtual void | getVariableReference (DtEnvironmentSP, DtEnvValueSP value) |
Protected 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 |
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 |
| static DtOutputStream * | theOutputStream |
Private Member Functions | |
| DtSimComponent () | |
| DtSimComponent (const DtSimComponent &orig) | |
| DtSimComponent & | operator= (const DtSimComponent &orig) |
| VRF4API_METHOD const DtSimulationServices * | simManager () const |
| static VRF4API_METHOD DtSimComponent * | MarkThreadSafe (DtSimComponent *comp) |
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 )() |
|
protected |
|
protected |
|
protected |
|
protected |
| DtSimComponent::DtSimComponent | ( | const DtString & | name, |
| DtLocalObject * | owner, | ||
| DtSimulationServices * | simServices, | ||
| DtComponentDescriptor * | desc = 0, |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
| name | Reader writer name of this component. |
| owner | The DtLocalObject 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
|
virtual |
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.
| DtComponentSystem* DtSimComponent::parentSystem | ( | ) | const |
|
virtual |
Calls createPorts and createPortGroups Initializes myLastTickSimTime.
Reimplemented in DtObjectSensor, DtTDLContactMessageGeneratorController, DtSurfaceEntityPilotController, DtTargetSelectionController, DtDiGuyController, DtDisaggregatedFormationController, DtDisaggregatedMoveAlongController, DtDamageAdjudicationActuator, DtRoadMovementController, DtSimpleProximitySensor, DtSurfaceEntityStopController, DtAggregateOrganizationController, DtDisaggregatedLeadFollowInFormationController, DtSpawnController, DtFixedWingEmbarkationController, DtRadarObjectSensor, DtLauncherController, DtRailPathController, DtNavalMineSetController, DtWeaponController, DtEmitterComponent, DtMunitionLaunchController, DtJammerController, DtTacticalGraphicSetController, DtActuatorComponent, DtSpotReportGeneratorController, DtWeaponActuator, DtSurfaceEntityFollowEntityController, DtDynamicTerrainController, DtBallisticGunController, DtDisaggregatedMoveIntoFormationController, DtEngagementReportGeneratorController, DtWarheadDetonationActuator, DtConvoyTaskController, DtDynamicFeaturesController, DtLookAtActuator, DtMissileDistractionController, DtSignatureObjectSensor, DtHumanMovementActuator, DtSurfaceEntityActuator, DtScriptReactiveTaskController, DtAirRefuelSupplierController, DtFixedWingActuatorComponent, DtLasingController, DtSensorGimbalController, DtFixedWingMoveAlongController, DtDetonationController, DtDisaggregatedMoveToLocationController, DtDisaggregatedOccupancyDirectorController, DtDisaggregatedPatrolAlongController, DtFixedWingPilotController, DtLaunchExpendableResourceController, DtObstructionSensor, DtSurfaceEntityMoveAlongController, DtSurfaceEntitySimpleActuator, DtFixedWingTakeoffController, DtLaserGuidedLauncherController, DtMinefieldController, DtReleaseBombController, DtRotorWashController, DtAggregateWeaponListResponder, DtAutomotiveActuatorComponent, DtAggregatedMovementActuator, DtContactFusionController, DtCruiseMissileLaunchController, DtGroundMovementChooserController, DtIndirectFireController, DtRotaryWingActuatorComponent, DtSwingingPartActuator, DtAggregateMountedMovementSwitcher, DtBallisticGun, DtExtendablePartActuator, DtLaunchSmokeController, DtNonLethalDamageActuator, DtParabolicTrajectoryActuator, DtSubSurfaceDepthController, DtSuppressionActuator, DtAggregatedMoveToController, DtHumanFollowController, DtHumanMoveAlongController, DtHumanMoveToController, DtHumanPatrolController, DtLasingMissileTrackController, DtResupplyController, DtTurretSlewController, DtOccupancyDirectorController, DtPassiveSonarSensor, DtBaseParachuteActuator, DtBombController, DtEmbarkationController, DtLauncherActuator, DtLimitExistenceController, DtMultipleHitDamageActuator, DtResupplySupplierController, DtSpotReportReceiver, DtAirVehicleWeaponHoldController, DtHumanCollisionAvoidanceController, DtMissileManeuverActComponent, DtResupplyReceiverController, DtTranslatablePartActuator, DtAggregatedPatrolController, DtFallingFromSkyActuatorComponent, DtFixedWingLandingController, DtHumanDamageActuator, DtIndirectFireWeaponController, DtRotaryWingPilotController, DtSearchRescueSensor, DtGroundCollisionAvoidanceController, DtGroundMoveToDestinationControllerComponent, DtMovementBasedTerrainPreloadController, DtNavigationPreferenceController, DtSensorGimbalActuator, DtTDLMessageGeneratorController, DtUnderFireDeterminationSensor, DtControllerComponent, DtActiveSonarSensor, DtEmergencyBeaconComponent, DtIntegratedLaserGuidedLauncherController, DtSimpleRotaryWingPilot, DtTacanComponent, DtTopLevelOrganizationController, DtTurretScanController, DtDisaggregatedPatrolBetweenController, DtHumanFleeController, DtRotaryWingWaitController, DtShapeBasedTerrainPreloadController, DtSubSurfaceEntitySimpleActuator, DtWaitController, DtArticulatedPartController, DtBombActuator, DtCombatRangeController, DtEnvironmentalActivationController, DtFixedWingFlightCommandController, DtHumanPostureController, DtIndirectArtilleryComponent, DtMissileCollisionActuator, DtMoveAlongWithActionsController, DtParachuteController, DtBaseWeaponController, DtCruiseMissileDefaultController, DtFixedWingDefaultController, DtFixedWingGunneryController, DtGroundAutoControllerComponent, DtHumanCrosswalkController, DtRotaryWingEncumberedFlightActuator, DtRotaryWingLandingController, DtAggregateAntiAirController, DtAggregateIndirectFireController, DtAimWeaponController, DtDefaultLandingGearController, DtGroundVehicleTrailingEffectController, DtHumanUseDoorController, DtMissileControllerComponent, DtNavTagTraversalController, DtRotaryWingFlightCommandController, DtRotaryWingMoveAlongControllerComponent, DtHumanLauncherAcquireController, DtNbcSensor, DtSendRadioMessageController, DtSetController, DtAggregateMountedMovementRelayController, DtAggregateMountedSetRelayController, DtDisaggregatedSetController, DtDisaggregatedSetManeuverController, DtEngineeringObjectSensor, DtTagVolumeDimensionsController, DtAggregatedMoveAlongController, DtAirportLightingController, DtBreachDetector, DtEncumbranceActuator, DtIffControllerComponent, DtRotaryWingTaskController, DtTerrainProximityIndicator, DtUpdateRepositoryActuator, DtAggregateReleaseBombController, DtHumanEyepointController, DtHumanTurnToController, DtRotaryWingJoyFlightController, DtRotaryWingLandingGearController, DtTimeKeeperComponent, DtMissileSetController, DtRemoteSensorSpotReportReceiver, DtAggregateFollowController, DtEmbeddedEntitiesController, DtGroundMoveAlongControllerComponent, DtHumanAcquireController, DtLocalEntitySetController, DtScriptedMovementController, DtMissileTargetController, DtDiGuyGestureController, DtFrictionlessGravityCollisionsActuator, DtHumanStopMovingController, DtRadarWarningReceiver, DtRangeRingController, DtMultiTaskControllerComponent, DtTemperatureMonitorActuator, DtFixedWingHoldController, DtHumanFaceTargetController, DtIndividualLifeFormDamageAdjudicationActuator, DtLookAtPointController, DtRadarJammer, vrfAddSetEncumbranceExample::DtManualRotaryWingEncumberedFlightActuator, DtAggregateCombatAdjustmentController, DtAggregateLoadoutController, DtAirborneAggregatedMovementActuator, DtStatePropertyInitializationController, DtAimAtPointController, DtEngineeringObjectSetController, DtHoldController, DtSyncMatrixController, DtSystemSwitcherComponent, DtCreateEngineeringObjectController, DtScriptMultiTaskController, DtSpawnObjectWarheadActuator, DtAffectEngineeringObjectController, DtDestroyEngineeringObjectController, DtBreachObstacleController, DtNavMovementActuator, DtDieWhenHitActuator, DtFascamController, DtOrbitActuator, DtCompatibilityController, and MyActuatorComponent.
|
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, DtSimpleRotaryWingPilot, DtSurfaceEntityPilotController, DtSurfaceEntityFollowEntityController, DtGroundAutoControllerComponent, DtMissileControllerComponent, DtTargetSelectionController, DtRotaryWingTaskController, DtObjectSensor, DtHumanAcquireController, DtSubSurfaceDepthController, DtBombController, DtFixedWingDefaultController, DtWeaponActuator, DtTurretAcquireController, DtSurfaceEntityActuator, DtGroundMovementChooserController, DtAggregateMountedMovementSwitcher, DtSurfaceEntitySimpleActuator, DtAggregateWeaponListResponder, DtIndirectFireController, DtLaunchExpendableResourceController, DtSensorGimbalController, DtTurretActuatorComponent, DtIndirectFireActuator, DtFixedWingTakeoffController, DtSwingingPartActuator, DtBallisticGunController, DtExtendablePartActuator, DtTrailerActuator, DtTranslatablePartActuator, DtFixedWingLandingController, DtControllerComponent, DtDetonationController, DtNavigationPreferenceController, DtResupplyController, DtBaseWeaponController, DtFixedWingGunneryController, DtAggregateMountedMovementRelayController, DtResupplySupplierController, DtAimWeaponController, DtBaseMountingController, DtResupplyReceiverController, DtAggregatedSetController, DtMountingAzimuthActuator, DtMountingElevationActuator, DtEventTriggerController, DtAggregateLoadoutController, and DtMoppEnableController.
|
inlinevirtual |
Called to register functions that provide system attribute values. Called by init(). Empty in this class. Overridden in different components to add attribute provider functions.
Reimplemented in DtIndirectFireActuator, DtLaserGuidedLauncherController, DtLauncherController, DtMunitionLaunchController, DtIndirectFireWeaponController, DtIffControllerComponent, and DtFixedWingPilotController.
|
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, DtIndirectFireWeaponController, DtWeaponController, DtTaskControllerComponent, DtObjectSensor, DtDisaggregatedFormationController, DtIffControllerComponent, DtBallisticGunController, DtJammerController, DtSpotReportReceiver, DtWaitController, DtProvideIndirectFireController, DtAggregatedSetController, DtSystemSwitcherComponent, DtHoldController, and DtSetController.
|
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, DtIndirectFireWeaponController, DtWeaponController, DtSingleTaskControllerComponent, DtTaskControllerComponent, DtObjectSensor, DtDisaggregatedFormationController, DtIffControllerComponent, DtBallisticGunController, DtLasingController, DtJammerController, DtSpotReportReceiver, DtWaitController, DtProvideIndirectFireController, DtSystemSwitcherComponent, DtHoldController, DtAggregateMountedMovementRelayController, and DtSetController.
|
virtual |
Is this component enabled or not. If enabled, component's tick function will be called, otherwise it will not. Default is true (enabled).
|
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 DtObjectSensor, DtIffControllerComponent, 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 DtRotaryWingActuatorComponent, DtSurfaceEntityFollowEntityController, DtHumanMoveToController, DtBaseWeaponController, DtLauncherController, DtTargetSelectionController, DtFixedWingTakeoffController, DtHumanFleeController, DtActiveSonarSensor, DtObjectSensor, DtSpawnController, DtAggregatedMoveToController, DtMoveAlongWithActionsController, DtDiGuyController, DtConvoyTaskController, DtDisaggregatedLeadFollowInFormationController, DtRoadMovementController, DtRadarObjectSensor, DtSimpleProximitySensor, DtOccupancyDirectorController, DtRailPathController, DtEmbarkationController, DtScriptedMovementController, DtTurretAcquireController, DtWeaponController, DtFixedWingLandingController, DtDynamicTerrainController, DtResupplyReceiverController, DtEmitterComponent, DtEncumbranceActuator, DtLaserGuidedLauncherController, DtHumanMovementActuator, DtAggregateMountedMovementSwitcher, DtLasingController, DtReleaseBombController, DtBallisticGun, DtBallisticGunController, DtAirRefuelSupplierController, DtDetonationController, DtLaunchExpendableResourceController, DtAggregateWeaponListResponder, DtFixedWingMoveAlongController, DtIndirectFireActuator, DtNavMovementActuator, DtHumanMoveAlongController, DtMissileTargetController, DtSurfaceEntityMoveAlongController, DtScriptReactiveTaskController, DtDynamicTerrainVehicleTrackController, DtMinefieldController, DtMultipleHitDamageActuator, DtObstructionSensor, DtRotaryWingLandingGearController, DtTrailerActuator, DtIndirectFireWeaponController, DtEnvironmentalActivationController, DtSearchRescueSensor, DtNavigationPreferenceController, DtAggregateMountedMovementRelayController, DtProvideIndirectFireController, DtSensorGimbalActuator, DtEmergencyBeaconComponent, DtTacanComponent, DtAirportLightingController, DtScenarioEventController, DtAggregatedMoveAlongController, DtCruiseMissileDefaultController, DtShapeBasedTerrainPreloadController, DtFrictionlessGravityActuator, DtGroundMoveAlongControllerComponent, DtAggregateAntiAirController, DtAggregateIndirectFireController, DtIffControllerComponent, DtTagVolumeDimensionsController, DtAggregateReleaseBombController, DtTerrainProximityIndicator, DtEmbeddedEntitiesController, DtAirborneAggregatedMovementActuator, DtPropulsionNoiseGenerator, DtRadarWarningReceiver, DtRangeRingController, DtSyncMatrixController, DtFrictionlessGravityCollisionsActuator, DtRadarJammer, DtStatePropertyInitializationController, DtAggregateCombatAdjustmentController, DtNbcWeaponController, DtRunwaySetController, 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 DtIndirectFireActuator, DtSurfaceEntityMoveAlongController, DtTargetSelectionController, DtBaseWeaponController, DtDamageAdjudicationActuator, DtObjectSensor, DtGroundFollowEntityController, DtRailPathController, DtSpawnController, DtSurfaceEntityPilotController, DtDiGuyController, DtDisaggregatedMoveAlongController, DtLocalEntitySetController, DtConvoyTaskController, DtSurfaceEntityActuator, DtAggregatedSetController, DtDisaggregatedEmbarkationController, DtRadarObjectSensor, DtRoadMovementController, DtRotaryWingFollowEntityController, DtDisaggregatedLeadFollowInFormationController, DtDisaggregatedFormationController, DtSurfaceEntityFollowEntityController, DtSignatureObjectSensor, DtMunitionLaunchController, DtSurfaceEntityMoveToLocationController, DtOccupancyDirectorController, DtAggregateWeaponListResponder, DtSuppressionActuator, DtSurfaceEntitySimpleActuator, DtWarheadDetonationActuator, DtWeaponController, DtRetreatController, DtNonLethalDamageActuator, DtSurfaceEntityPatrolBetweenController, DtSurfaceEntityStopController, DtEmbarkationController, DtReleaseBombController, DtDynamicTerrainController, DtLauncherController, DtFixedWingTakeoffController, DtLasingController, DtTurretAcquireController, DtFixedWingLandingController, DtResupplyReceiverController, DtSurfaceEntityMoveToController, DtHumanJoystickMovementController, DtSpotReportGeneratorController, DtAggregateMountedMovementSwitcher, DtBallisticGun, DtLaserGuidedLauncherController, DtResupplySupplierController, DtWeaponActuator, DtHumanMovementActuator, DtMissileDistractionController, DtBallisticGunController, DtEngagementReportGeneratorController, DtFixedWingMoveAlongController, DtHumanMoveAlongController, DtAirRefuelSupplierController, DtLaunchExpendableResourceController, DtObstructionSensor, DtParabolicTrajectoryActuator, DtSearchRescueSensor, DtDetonationController, DtSubSurfaceEntitySimpleActuator, DtUnderFireDeterminationSensor, DtDynamicTerrainVehicleTrackController, DtFixedWingActuatorComponent, DtHumanObstructionSensor, DtIndirectFireController, DtNavalMineSetController, DtSensorGimbalController, DtTurretActuatorComponent, DtVrfObjectDataMessenger, DtDynamicFeaturesController, DtMinefieldController, DtSwingingPartActuator, DtTrailerActuator, DtScriptReactiveTaskController, DtAggregatedMovementActuator, DtBombController, DtCombatRangeController, DtContactFusionController, DtExtendablePartActuator, DtSubSurfaceDepthController, DtAutomotiveActuatorComponent, DtBaseMountingController, DtCruiseMissileLaunchController, DtFixedWingPilotController, DtHumanFollowController, DtBallisticGunJoyController, DtRotaryWingActuatorComponent, DtShapeBasedTerrainPreloadController, DtTurretSlewController, DtDisaggregatedPatrolAlongController, DtEmitterComponent, DtHumanCollisionAvoidanceController, DtDisaggregatedPatrolBetweenController, DtTranslatablePartActuator, DtAggregatedMoveToController, DtArticulatedPartController, DtGroundCollisionAvoidanceController, DtGroundMoveToDestinationControllerComponent, DtHumanMoveToController, DtIndirectFireWeaponController, DtAggregateOrganizationController, DtIndirectArtilleryComponent, DtJammerController, DtSensorGimbalActuator, DtAirVehicleWeaponHoldController, DtBaseParachuteActuator, DtDisaggregatedDamageActuator, DtDynamicTerrainMunitionDamageController, DtFallingFromSkyActuatorComponent, DtLaunchSmokeController, DtMissileManeuverActComponent, DtSpotReportReceiver, DtActiveSonarSensor, DtLimitExistenceController, DtOrganizationController, DtRotaryWingWaitController, DtSimpleRotaryWingPilot, DtTDLMessageGeneratorController, DtWaitController, DtAirportLightingController, DtBallisticGunJoy, DtHumanDamageActuator, DtRotorWashController, DtTopLevelOrganizationController, DtBombActuator, DtFixedWingGunneryController, DtHumanGunActuator, DtAimWeaponController, DtCruiseMissileDefaultController, DtMissileCollisionActuator, DtGroundMoveAlongControllerComponent, DtHumanAcquireController, DtHumanFleeController, DtMountingAzimuthActuator, DtMoveAlongWithActionsController, DtNbcSensor, DtRotaryWingPilotController, DtSurfaceEntityTurnMoveController, DtAggregatedMoveAlongController, DtEmbeddedEntitiesController, DtHumanPostureController, DtLookAtActuator, DtMountingElevationActuator, DtRotaryWingEncumberedFlightActuator, DtDefaultLandingGearController, DtEngineeringObjectSensor, DtFixedWingFlightCommandController, DtHumanCrosswalkController, DtHumanWeaponStateActuator, DtIndividualLifeFormDamageAdjudicationActuator, DtIntegratedLaserGuidedLauncherController, DtSimpleProximitySensor, DtTurretScanController, DtEncumbranceActuator, DtHumanUseDoorController, DtNavTagTraversalController, DtTimeKeeperComponent, DtEnvironmentalActivationController, DtFixedWingFollowEntityController, DtIffControllerComponent, DtParachuteActuator, DtParachuteController, DtRotaryWingLandingController, DtTurretAimController, DtAggregateIndirectFireController, DtFixedWingDefaultController, DtScriptedMovementController, DtAggregateFollowController, DtMissileTargetController, DtRotaryWingLandingGearController, DtRotaryWingMoveAlongControllerComponent, DtRotaryWingTurnToHeadingController, DtTurretReturnToHeadingController, DtAggregateReleaseBombController, DtDiGuyGestureController, DtDisaggregatedActuator, DtGroundFollowInFormationControllerComponent, DtHumanEyepointController, DtHumanTurnToController, DtMissileMoveToControllerComponent, DtRotaryWingFlightCommandController, DtRemoteSensorSpotReportReceiver, DtRotaryWingPatrolBetweenController, DtSendRadioMessageController, DtTacticalSmokeActuator, DtAffectEngineeringObjectController, DtAggregateMountedSetRelayController, DtBreachDetector, DtDisaggregatedSetController, DtDisaggregatedSetManeuverController, DtEventTriggerController, DtSinkToDepthActuator, DtTerrainProximityIndicator, DtFixedWingMoveToController, DtRotaryWingTaskController, DtGroundStopMovingControllerComponent, DtGroundVehicleTrailingEffectController, DtHumanStopMovingController, DtLaserDetector, DtHumanFaceTargetController, DtLookAtPointController, DtPropulsionNoiseGenerator, DtSyncMatrixController, vrfAddSetEncumbranceExample::DtManualRotaryWingEncumberedFlightActuator, DtTemperatureMonitorActuator, DtEmergencyBeaconComponent, DtGlobalEnvironmentActuator, DtGroundTurnToControllerComponent, DtRotaryWingLoiterControllerComponent, DtTacanComponent, DtSimpleRadarWarningReceiver, DtSimpleRadarWarningReceiver, DtAimAtPointController, DtRotaryWingMoveToControllerComponent, DtSystemSwitcherComponent, DtUpdateRepositoryActuator, DtDisaggregatedMoveToController, DtHoldController, DtScenarioEventController, DtSimpleRadarWarningResponse, DtSimpleRadarWarningResponse, DtRadarWarningReceiver, DtScriptEnableByAggregatePostureController, DtNavMovementActuator, DtScriptMultiTaskController, DtRunwaySetController, DtRadarJammer, DtDieWhenHitActuator, DtOrbitActuator, 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, DtObjectSensor, DtTargetSelectionController, DtSurfaceEntityPilotController, DtDisaggregatedFormationController, DtRailPathController, DtDiGuyController, DtSuppressionActuator, DtNonLethalDamageActuator, DtWarheadDetonationActuator, DtDisaggregatedMoveAlongController, DtRadarObjectSensor, DtRoadMovementController, DtDynamicTerrainController, DtEmitterComponent, DtHumanCollisionAvoidanceController, DtLauncherController, DtFixedWingMoveAlongController, DtIndirectFireActuator, DtGroundCollisionAvoidanceController, DtMultipleHitDamageActuator, DtObstructionSensor, DtDisaggregatedLeadFollowInFormationController, DtSignatureObjectSensor, DtSpotReportGeneratorController, DtWeaponActuator, DtTurretAcquireController, DtMinefieldController, DtBombController, DtEngagementReportGeneratorController, DtParabolicTrajectoryActuator, DtConvoyTaskController, DtFixedWingPilotController, DtMissileDistractionController, DtWeaponController, DtBallisticGun, DtHumanMovementActuator, DtSensorGimbalController, DtSurfaceEntityActuator, DtUnderFireDeterminationSensor, DtMunitionLaunchController, DtTurretActuatorComponent, DtAggregateMountedMovementSwitcher, DtAirRefuelSupplierController, DtFixedWingActuatorComponent, DtLasingController, DtSurfaceEntityPatrolRouteController, DtFixedWingTakeoffController, DtGroundMoveToDestinationControllerComponent, DtSurfaceEntityFollowEntityController, DtSurfaceEntitySimpleActuator, DtSwingingPartActuator, DtTrailerActuator, DtVrfObjectDataMessenger, DtAggregatedMovementActuator, DtBallisticGunController, DtDisaggregatedMoveIntoFormationController, DtDynamicFeaturesController, DtExtendablePartActuator, DtGroundMovementChooserController, DtTaskControllerComponent, DtAggregateWeaponListResponder, DtAutomotiveActuatorComponent, DtRetreatController, DtContactFusionController, DtDynamicTerrainVehicleTrackController, DtIndirectFireController, DtRotaryWingActuatorComponent, DtScriptReactiveTaskController, DtCruiseMissileDefaultController, DtHumanMoveAlongController, DtSearchRescueSensor, DtTranslatablePartActuator, DtTurretSlewController, DtAggregatedMoveToController, DtArticulatedPartController, DtBaseWeaponController, DtHumanMoveToController, DtOccupancyDirectorController, DtPassiveSonarSensor, DtRotaryWingPilotController, DtSurfaceEntityPatrolBetweenController, DtAirVehicleSetController, DtBaseParachuteActuator, DtDisaggregatedMoveToLocationController, DtEmbarkationController, DtFixedWingFlyIntoController, DtFixedWingLandingController, DtIndirectArtilleryComponent, DtJammerController, DtLauncherActuator, DtSensorGimbalActuator, DtSpotReportReceiver, DtSurfaceEntityMoveAlongController, DtAirVehicleWeaponHoldController, DtDetonationController, DtDisaggregatedPatrolAlongController, DtDynamicTerrainMunitionDamageController, DtEmergencyBeaconComponent, DtFixedWingFlightCommandController, DtMissileManeuverActComponent, DtTacanComponent, DtFallingFromSkyActuatorComponent, DtHumanDamageActuator, DtLaserGuidedLauncherController, DtSimpleRotaryWingPilot, DtAggregateOrganizationController, DtAirportLightingController, DtCruiseMissileLaunchController, DtCulturalFeatureSetController, DtDisaggregatedDamageActuator, DtDisaggregatedEmbarkationController, DtIffControllerComponent, DtMovementBasedTerrainPreloadController, DtOrganizationController, DtParachuteController, DtRotaryWingLandingController, DtRotorWashController, DtShapeBasedTerrainPreloadController, DtTDLMessageGeneratorController, DtActiveSonarSensor, DtAimWeaponController, DtBaseMountingController, DtFixedWingDefaultController, DtSurfaceEntityMoveToLocationController, DtTopLevelOrganizationController, DtDisaggregatedPatrolBetweenController, DtHumanAcquireController, DtHumanFollowController, DtLasingMissileTrackController, DtRotaryWingMoveAlongControllerComponent, DtRotaryWingTurnToHeadingController, DtSubSurfaceDepthController, DtSubSurfaceEntitySimpleActuator, DtSurfaceEntityTurnMoveController, DtBombActuator, DtHumanFleeController, DtHumanPatrolController, DtMissileCollisionActuator, DtMissileMoveToControllerComponent, DtMountingAzimuthActuator, DtMoveAlongWithActionsController, DtRotaryWingFlightCommandController, DtSurfaceEntityStopController, DtGroundAutoControllerComponent, DtGroundMoveToControllerComponent, DtHumanPostureController, DtLookAtActuator, DtMissileTrackEntityController, DtMountingElevationActuator, DtRotaryWingEncumberedFlightActuator, DtRotaryWingPatrolBetweenController, DtTagVolumeDimensionsController, DtDefaultLandingGearController, DtDisaggregatedWaitController, DtFixedWingEntitySetController, DtHumanCrosswalkController, DtIndirectFireWeaponController, DtLimitExistenceController, DtMissileControllerComponent, DtReleaseBombController, DtSimpleProximitySensor, DtTerrainProximityIndicator, DtFixedWingMoveToController, DtFixedWingPatrolRouteController, DtGroundFollowEntityController, DtHumanLauncherAcquireController, DtHumanUseDoorController, DtNavTagTraversalController, DtNbcSensor, DtParachuteActuator, DtRotaryWingPatrolRouteController, DtSpawnController, DtTDLContactMessageGeneratorController, DtAggregatedPatrolController, DtAggregateMountedMovementRelayController, DtEngineeringObjectSensor, DtGroundStopMovingControllerComponent, DtRotaryWingFollowEntityController, DtRotaryWingTaskController, DtTurretAimController, DtTurretScanController, DtControllerComponent, DtBallisticGunJoy, DtDisaggregatedTurnToHeadingController, DtEncumbranceActuator, DtHumanWeaponStateActuator, DtResupplySupplierController, DtScriptedMovementController, DtActivityController, DtAggregatedMoveAlongController, DtDisaggregatedOccupancyDirectorController, DtFixedWingFollowEntityController, DtFixedWingPatrolBetweenController, DtFixedWingTankerEntitySetController, DtGlobalEnvironmentActuator, DtGroundPatrolBetweenController, DtGroundPatrolRouteController, DtGroundTurnToControllerComponent, DtHumanEyepointController, DtIntegratedLaserGuidedLauncherController, DtMissileTargetController, DtResupplyReceiverController, DtRotaryWingJoyFlightController, DtRotaryWingLandingGearController, DtRotaryWingLoiterControllerComponent, DtRotaryWingWaitController, DtTurretReturnToHeadingController, DtWaitController, DtBeaconRadarObjectSensor, DtHumanTurnToController, DtRadarWarningReceiver, DtRemoteSensorSpotReportReceiver, DtRotaryWingMoveToControllerComponent, DtAffectEngineeringObjectController, DtCreateEngineeringObjectController, DtCruiseMissileMoveAlongController, DtFixedWingGunneryController, DtFrictionlessGravityCollisionsActuator, DtGroundFollowInFormationControllerComponent, DtGroundMoveAlongControllerComponent, DtLaunchExpendableResourceController, DtLocalEntitySetController, DtRadarJammer, DtSurfaceEntityMoveToController, DtTacticalSmokeActuator, DtAggregateAntiAirController, DtAggregateIndirectFireController, DtDisaggregatedActuator, DtDisaggregatedMoveToController, DtHumanJoystickMovementController, DtAggregateMountedSetRelayController, DtDisaggregatedSetController, DtDisaggregatedSetManeuverController, DtHumanGunActuator, DtHumanSetController, DtProvideIndirectFireController, DtSendRadioMessageController, DtSurfaceEntitySetController, MyJoystickControllerComponenet, DtBallisticGunJoyController, DtBreachDetector, DtDestroyEngineeringObjectController, DtFixedWingEmbarkationController, DtGroundLeadFormationControllerComponent, DtGroundMoveToLocationControllerComponent, DtGroundVehicleTrailingEffectController, DtHumanFaceTargetController, DtHumanStopMovingController, DtIndividualLifeFormDamageAdjudicationActuator, DtLaunchSmokeController, DtLookAtPointController, DtTacticalGraphicSetController, ExampleTDLMessageGeneratorController, DtAggregateDynamicFeaturesController, DtBreachObstacleController, DtNavigationPreferenceController, DtPropulsionNoiseGenerator, DtAggregateReleaseBombController, DtAimAtPointController, DtAirborneAggregatedMovementActuator, DtFixedWingJoyFlightController, DtFrictionlessGravityActuator, DtGroundJoyMoveController, DtScriptEnableController, DtSyncMatrixController, DtTimeKeeperComponent, DtEventTriggerController, DtFixedWingMoveToLocationController, DtGroundJoyTurretController, DtHumanObstructionSensor, DtMountingController, DtNavalMineSetController, DtSystemSwitcherComponent, DtTDLPPLIMessageGeneratorController, DtTDLStatusMessageGeneratorController, DtAggregateFollowController, DtCombatRangeController, DtEmbeddedEntitiesController, DtLaserDetector, DtUpdateRepositoryActuator, DtVerticalLauncherController, DtEnvironmentalActivationController, DtFascamController, DtMoppEnableController, DtNbcWeaponController, DtRotaryWingEmbarkationController, DtRotaryWingMoveToLocationControllerComponent, DtRangeRingController, DtResupplyController, DtScenarioEventController, DtSinkToDepthActuator, DtTemperatureMonitorActuator, DtSimpleRadarWarningReceiver, DtSimpleRadarWarningResponse, DtSimpleRadarWarningReceiver, DtSimpleRadarWarningResponse, DtDiGuyGestureController, DtFixedWingHoldController, DtPseudoAggregatedSetController, DtSpawnObjectWarheadActuator, DtAggregateCombatAdjustmentController, DtAggregateLoadoutController, DtStatePropertyInitializationController, DtHoldController, DtNavMovementActuator, DtRunwaySetController, DtAerodromeSetController, DtMissileSetController, DtScriptMultiTaskController, DtDieWhenHitActuator, DtOrbitActuator, 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 DtLaserDetector, DtSimpleRadarWarningReceiver, and DtSimpleRadarWarningReceiver.
|
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.
Reimplemented from DtReaderWriter.
|
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, DtFixedWingFlyIntoController, DtLaserGuidedLauncherController, DtCruiseMissileLaunchController, DtVrfObjectDataMessenger, DtGroundMoveToDestinationControllerComponent, 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 DtObjectSensor, DtScriptedMovementController, DtDiGuyController, DtLocalEntitySetController, DtRoadMovementController, DtParachuteController, DtOrganizationController, DtActuatorComponent, DtUnderFireDeterminationSensor, DtEmitterComponent, DtJammerController, DtSpotReportReceiver, DtFixedWingLandingController, DtAffectEngineeringObjectController, DtTacticalGraphicSetController, DtEmergencyBeaconComponent, DtTacanComponent, and DtScriptMultiTaskController.
|
virtual |
|
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.
|
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. |
| DtPhysicalWorld* DtSimComponent::physicalWorld | ( | ) |
Gets the physical world that this component's entity exists in.
| const DtPhysicalWorld* DtSimComponent::physicalWorld | ( | ) | const |
| const DtAttachedTerrain* DtSimComponent::terrainAttachedTo | ( | ) | const |
Gets the terrain that this component's entity is attached to, if any.
|
inline |
Gets the entity.
|
inline |
| DtSimulationServices* DtSimComponent::simulationServices | ( | ) |
Returns pointer to the DtSimulationServices.
| const DtSimulationServices* DtSimComponent::simulationServices | ( | ) | const |
| const Coordinate_System* DtSimComponent::coordinateSystem | ( | ) | const |
Gets the coordinate system, as it should always exist if the physical world is in a valid state!
|
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 DtRadarObjectSensor, DtTaskControllerComponent, DtIndirectFireActuator, DtParachuteController, DtRadarJammer, DtHumanUseDoorController, DtDynamicTerrainVehicleTrackController, DtSimpleRotaryWingPilot, DtMinefieldController, and DtNavMovementActuator.
|
virtual |
Returns true if task visualizations are enabled for this component. Task visualizations are usually enabled or disabled by configuration of the SMS. This differs from whether task visualizations are active, as task visualization activation changes at run time based on specific conditions of the entity and component (e.g. is the component currently tasked).
|
virtual |
Called whenever a component is restored. Default is no-op.
Reimplemented in DtControllerComponent.
|
inline |
|
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, DtDiGuyController, DtSurfaceEntityPilotController, DtObjectSensor, DtHumanCollisionAvoidanceController, DtSurfaceEntityFollowEntityController, DtGroundMoveToDestinationControllerComponent, DtGroundAutoControllerComponent, DtHumanFollowController, DtGroundCollisionAvoidanceController, DtObstructionSensor, DtBaseMountingController, DtSurfaceEntityActuator, DtAggregatedMoveToController, DtBaseWeaponController, DtHumanMoveToController, DtSensorGimbalController, DtAggregatedMovementActuator, DtBallisticGunController, DtLasingController, DtWeaponActuator, DtMissileControllerComponent, DtRotaryWingPilotController, DtScriptedMovementController, DtSignatureObjectSensor, DtSurfaceEntitySimpleActuator, DtTurretAcquireController, DtHumanAcquireController, DtAggregatedMoveAlongController, DtRotaryWingActuatorComponent, DtRotaryWingMoveAlongControllerComponent, DtSensorGimbalActuator, DtRotaryWingTaskController, DtMountingElevationActuator, DtMountingAzimuthActuator, DtMissileManeuverActComponent, DtBaseParachuteActuator, DtFallingFromSkyActuatorComponent, DtHumanUseDoorController, DtAirVehicleWeaponHoldController, DtLookAtActuator, DtAimWeaponController, DtHumanFleeController, DtHumanEyepointController, DtTerrainProximityIndicator, DtParachuteController, DtHumanTurnToController, DtDefaultLandingGearController, DtLookAtPointController, DtAimAtPointController, DtDisaggregatedActuator, DtHumanCrosswalkController, DtHumanStopMovingController, DtHumanFaceTargetController, DtUpdateRepositoryActuator, DtAggregateFollowController, 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, DtSurfaceEntityMoveAlongController, DtFixedWingMoveAlongController, DtBallisticGun, DtFixedWingActuatorComponent, DtDiGuyController, DtSurfaceEntityPilotController, DtObjectSensor, DtSurfaceEntityFollowEntityController, DtHumanCollisionAvoidanceController, DtGroundMoveToDestinationControllerComponent, DtWeaponController, DtHumanFollowController, DtGroundAutoControllerComponent, DtGroundCollisionAvoidanceController, DtIndirectFireActuator, DtBaseMountingController, DtObstructionSensor, DtTargetSelectionController, DtSurfaceEntityActuator, DtAggregatedMoveToController, DtGroundMoveAlongControllerComponent, DtBaseWeaponController, DtHumanMoveAlongController, DtHumanMoveToController, DtSensorGimbalController, DtLauncherController, DtIndirectFireWeaponController, DtAggregatedMovementActuator, DtBallisticGunController, DtLasingController, DtGroundFollowEntityController, DtWeaponActuator, DtDetonationController, DtMissileControllerComponent, DtRotaryWingPilotController, DtSignatureObjectSensor, DtSurfaceEntitySimpleActuator, DtScriptedMovementController, DtSpotReportGeneratorController, DtSwingingPartActuator, DtExtendablePartActuator, DtTurretAcquireController, DtHumanAcquireController, DtFixedWingLandingController, DtFixedWingGunneryController, DtAggregatedMoveAlongController, DtContactFusionController, DtRotaryWingActuatorComponent, DtTurretSlewController, DtRotaryWingMoveAlongControllerComponent, DtTurretActuatorComponent, DtLaserGuidedLauncherController, DtWarheadDetonationActuator, DtSensorGimbalActuator, DtRotaryWingTaskController, DtLauncherActuator, DtMountingElevationActuator, DtSubSurfaceDepthController, DtMountingAzimuthActuator, DtSpotReportReceiver, DtMissileManeuverActComponent, DtSimpleProximitySensor, DtBombController, DtHumanObstructionSensor, DtMoveAlongWithActionsController, DtHumanUseDoorController, DtAirVehicleWeaponHoldController, DtBaseParachuteActuator, DtHumanPostureController, DtLookAtActuator, DtAimWeaponController, DtHumanFleeController, DtBallisticGunJoyController, DtEmbarkationController, DtHumanEyepointController, DtIntegratedLaserGuidedLauncherController, DtSubSurfaceEntitySimpleActuator, DtBombActuator, DtHumanTurnToController, DtParachuteController, DtRotaryWingEncumberedFlightActuator, DtDefaultLandingGearController, DtHumanWeaponStateActuator, DtEncumbranceActuator, DtHumanCrosswalkController, DtTurretAimController, DtLaserDetector, DtTerrainProximityIndicator, DtLookAtPointController, DtEventTriggerController, DtHumanFaceTargetController, DtHumanGunActuator, DtAimAtPointController, DtSimpleRadarWarningReceiver, DtSimpleRadarWarningReceiver, DtSimpleRotaryWingPilot, DtSimpleRadarWarningResponse, DtSimpleRadarWarningResponse, DtBallisticGunJoy, DtHumanJoystickMovementController, and DtAggregateFollowController.
|
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 DtFixedWingPilotController, DtFixedWingMoveAlongController, DtHumanFollowController, DtRoadMovementController, DtFixedWingMoveToController, DtHumanMoveToController, DtFixedWingFollowEntityController, DtIndirectFireActuator, DtGroundMoveToDestinationControllerComponent, DtGroundMoveAlongControllerComponent, DtMoveAlongWithActionsController, DtGroundFollowInFormationControllerComponent, DtHumanFleeController, DtRotaryWingMoveToControllerComponent, DtScriptedMovementController, DtSurfaceEntityMoveToLocationController, DtRotaryWingTaskController, DtNavTagTraversalController, DtConvoyTaskController, DtDynamicTerrainController, DtParachuteController, DtFixedWingDefaultController, DtHumanCrosswalkController, DtHumanUseDoorController, DtDynamicTerrainVehicleTrackController, DtGroundLeadFormationControllerComponent, DtMinefieldController, and DtSimpleRotaryWingPilot.
|
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.
|
protected |
Gets the local state repository.
|
protected |
You would want to use this call if you could be either a const or non-const local state repository, and you wanted to be sure you only had const access.
|
protected |
Predicate callbacks are added and invoked every simulation tick to see if the predicate evaluates to true. If does the callback added is invoked. These callbacks will be invoked at the beginning of each tick.
Add/remove a callback function to be invoked when the DtSimObject predicate object associated with it returns true(). These predicates will be applied to the given sim object
|
protected |
Predicate callbacks are added and invoked every simulation tick to see if the predicate evaluates to true. If does the callback added is invoked. These callbacks will be invoked at the beginning of each tick.
Add/remove a callback function to be invoked when the DtSimObject predicate object associated with it returns true(). These predicates will be applied to the given sim object
|
protected |
Called each tick. Iterates through myPredicateCallbackList, calling the predicate object's isTrue() function. If it time to test the predicate (isTimeToTest()) and the predicate's isTrue() function returns true, it invokes the associated callback function.
|
protectedvirtual |
Clear out object predicate callback list. Should only be called upon queuing object for removal and deletion.
|
private |
assignment operator, not implemented
|
inline |
This is the deprecated API that can be used as a reference to migrate 4.X code to 5.X. Please refer to the simObject.inl file for a reference as to how you can do this.
Use simulationServices() in place of simManager().
|
inlinestatic |
This is the deprecated API that can be used as a reference to migrate 4.X code to 5.X. Please refer to the simObject.inl file for a reference as to how you can do this.
Use simulationServices() in place of simManager().
|
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 |
|
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.
|
mutableprotected |
|
protected |
|
protected |