![]() |
VR-Forces 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 () override |
| 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, double minTickPeriodVariance) |
| virtual void | setupFirstTickTime () |
| 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) override |
| virtual DtlObjPtr | getData (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) override |
| 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 |
| DtString | toString (const DtEntityType &entityType) 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 void | isClutterChanged () |
| virtual bool | taskVisualizationsActive () const |
| virtual bool | taskVisualizationsEnabled () const |
| virtual void | onRestore () |
| makVrf::DtTaskVisualizationMap & | taskVisualizations () |
| virtual void | updateImgui () |
| virtual bool | debugActive () const |
| 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) const |
| 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 | 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). |
|
overridevirtual |
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 DtDisaggregatedMoveToController, DtObjectSensor, DtSurfaceEntityPilotController, DtFixedWingEmbarkationController, DtCounterBatteryRadarSensor, DtDiGuyController, DtDisaggregatedFormationController, DtDamageAdjudicationActuator, DtDisaggregatedMoveAlongController, DtRoadMovementController, DtSimpleProximitySensor, DtProbabilityDamageActuator, DtDisaggregatedManeuverAlongController, DtSpawnController, DtSurfaceEntityStopController, DtAggregateOrganizationController, DtDisaggregatedLeadFollowInFormationController, DtWeaponController, DtLauncherController, DtRadarObjectSensor, DtRailPathController, DtTacticalGraphicSetController, DtNavalMineSetController, DtBallisticGunController, DtEmitterComponent, DtMunitionLaunchController, DtJammerController, DtSpotReportGeneratorController, DtActuatorComponent, DtWeaponActuator, DtDynamicTerrainController, DtHumanMovementActuator, DtSurfaceEntityFollowEntityController, DtDisaggregatedMoveIntoFormationController, DtEngagementReportGeneratorController, DtSignalFlagsSetController, DtWarheadDetonationActuator, DtLookAtActuator, DtMissileDistractionController, DtSignatureObjectSensor, DtConvoyTaskController, DtSurfaceEntityActuator, DtAirRefuelSupplierController, DtFixedWingActuatorComponent, DtLaserGuidedLauncherController, DtLasingController, DtSensorGimbalController, DtScriptReactiveTaskController, DtAutomotiveActuatorComponent, DtFixedWingMoveAlongController, DtReleaseBombController, DtDetonationController, DtDisaggregatedOccupancyDirectorController, DtDisaggregatedPatrolAlongController, DtFixedWingPilotController, DtObstructionSensor, DtSurfaceEntityMoveAlongController, DtSurfaceEntitySimpleActuator, DtCruiseMissileLaunchController, DtFixedWingTakeoffController, DtHumanMoveToController, DtMinefieldController, DtRotorWashController, DtAggregateWeaponListResponder, DtDynamicTerrainLinearDeformationController, DtGroundMoveToDestinationControllerComponent, DtLaserLightController, DtLoiterMunitionLaunchController, DtRotaryWingActuatorComponent, DtSearchLightController, DtAggregatedMovementActuator, DtContactFusionController, DtSwingingPartActuator, DtAggregateMountedMovementSwitcher, DtBallisticGun, DtExtendablePartActuator, DtIndirectFireWeaponController, DtLaunchSmokeController, DtNonLethalDamageActuator, DtParabolicTrajectoryActuator, DtSubSurfaceDepthController, DtSuppressionActuator, DtAggregatedMoveToController, DtGroundMovementChooserController, DtHumanFollowController, DtHumanMoveAlongController, DtHumanPatrolController, DtLasingMissileTrackController, DtResupplyController, DtTurretSlewController, DtGroundManeuverInFormationControllerComponent, DtIffControllerComponent, DtLauncherActuator, DtLaunchExpendableResourceController, DtOccupancyDirectorController, DtPassiveSonarSensor, DtBaseParachuteActuator, DtBombController, DtEmbarkationController, DtLaserLightActuator, DtLimitExistenceController, DtMultipleHitDamageActuator, DtResupplySupplierController, DtSpotReportReceiver, DtHumanCollisionAvoidanceController, DtIntegratedLaserGuidedLauncherController, DtMissileManeuverActComponent, DtNavigationPreferenceController, DtResupplyReceiverController, DtTranslatablePartActuator, DtVtolRotorActuator, DtAggregatedPatrolController, DtFallingFromSkyActuatorComponent, DtFixedWingLandingController, DtGpsJammerController, DtHumanDamageActuator, DtRotaryWingPilotController, DtSearchLightActuator, DtSearchRescueSensor, DtJavelinLauncherController, DtMovementBasedTerrainPreloadController, DtSensorGimbalActuator, DtUnderFireDeterminationSensor, DtControllerComponent, DtActiveSonarSensor, DtEmergencyBeaconComponent, DtSimpleRotaryWingPilot, DtTacanComponent, DtTopLevelOrganizationController, DtDisaggregatedPatrolBetweenController, DtHumanFleeController, DtRotaryWingWaitController, DtShapeBasedTerrainPreloadController, DtSubSurfaceEntitySimpleActuator, DtWaitController, DtAggregateIndirectFireController, DtArticulatedPartController, DtBaseWeaponController, DtBombActuator, DtCombatRangeController, DtEnvironmentalActivationController, DtFixedWingDefaultController, DtFixedWingFlightCommandController, DtHumanPostureController, DtIndirectArtilleryComponent, DtMissileCollisionActuator, DtMoveAlongWithActionsController, DtParachuteController, DtReactToCollisionEventActuator, DtAerodromeSetController, DtAircraftClutterMovementController, DtAirVehicleWeaponHoldController, DtCruiseMissileDefaultController, DtFixedWingGunneryController, DtGroundAutoControllerComponent, DtHumanCrosswalkController, DtRotaryWingEncumberedFlightActuator, DtRotaryWingLandingController, DtAggregateAntiAirController, DtAircraftClutterAreaController, DtDefaultLandingGearController, DtHumanUseDoorController, DtMissileControllerComponent, DtNavTagTraversalController, DtRotaryWingFlightCommandController, DtRotaryWingMoveAlongControllerComponent, DtShipClutterAreaController, DtShipClutterMovementController, DtAimWeaponController, DtGpsReceiverController, DtGroundVehicleTrailingEffectController, DtHumanLauncherAcquireController, DtNbcSensor, DtSendRadioMessageController, DtSetController, DtAggregateMountedMovementRelayController, DtAggregateMountedSetRelayController, DtBreachDetector, DtDisaggregatedSetController, DtDisaggregatedSetManeuverController, DtEngineeringObjectSensor, DtTagVolumeDimensionsController, DtAggregatedMoveAlongController, DtAirportLightingController, DtEncumbranceActuator, DtRotaryWingTaskController, DtTerrainProximityIndicator, DtUpdateRepositoryActuator, DtRotaryWingJoyFlightController, DtAggregateReleaseBombController, DtHumanEyepointController, DtHumanTurnToController, DtRotaryWingLandingGearController, DtTimeKeeperComponent, DtEmbeddedEntitiesController, DtMissileSetController, DtRemoteSensorSpotReportReceiver, DtScriptedMovementController, DtAggregateFollowController, DtGroundMoveAlongControllerComponent, DtGroundPatrolBetweenController, DtHumanAcquireController, DtLocalEntitySetController, DtSurfaceEntityKeepStationController, DtMissileTargetController, DtDiGuyGestureController, DtHumanStopMovingController, DtPlaySoundController, DtRadarWarningReceiver, DtRangeRingController, DtMultiTaskControllerComponent, DtTemperatureMonitorActuator, DtFixedWingHoldController, DtHumanFaceTargetController, DtIndividualLifeFormDamageAdjudicationActuator, DtLookAtPointController, DtRadarJammer, vrfAddSetEncumbranceExample::DtManualRotaryWingEncumberedFlightActuator, DtAggregateCombatAdjustmentController, DtAggregateLoadoutController, DtDynamicFeaturesController, DtStatePropertyInitializationController, DtSyncMatrixController, DtAimAtPointController, DtAirborneAggregatedMovementActuator, DtEngineeringObjectSetController, DtFrictionlessGravityCollisionsActuator, DtHoldController, DtSystemSwitcherComponent, DtWeaponManagementController, DtExampleEmbeddedSystemController, DtCreateEngineeringObjectController, DtScriptMultiTaskController, DtSpawnObjectWarheadActuator, DtAffectEngineeringObjectController, DtDestroyEngineeringObjectController, DtBreachObstacleController, DtNavMovementActuator, DtShipAisController, DtAircraftAdsbController, 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, DtGroundAutoControllerComponent, DtSimpleRotaryWingPilot, DtSurfaceEntityPilotController, DtSurfaceEntityFollowEntityController, DtGroundManeuverInFormationControllerComponent, DtMissileControllerComponent, DtRotaryWingTaskController, DtObjectSensor, DtHumanAcquireController, DtSubSurfaceDepthController, DtBombController, DtFixedWingDefaultController, DtGroundMoveToAdapterComponent, DtWeaponActuator, DtTurretAcquireController, DtSurfaceEntityActuator, DtAggregateMountedMovementSwitcher, DtSurfaceEntitySimpleActuator, DtBallisticGunController, DtAggregateWeaponListResponder, DtSensorGimbalController, DtIndirectFireActuator, DtTurretActuatorComponent, DtFixedWingTakeoffController, DtLaserLightController, DtSearchLightController, DtSwingingPartActuator, DtExtendablePartActuator, DtLaunchExpendableResourceController, DtTrailerActuator, DtTranslatablePartActuator, DtVtolRotorActuator, DtNavigationPreferenceController, DtFixedWingLandingController, DtProvideIndirectFireController, DtControllerComponent, DtBaseWeaponController, DtDetonationController, DtResupplyController, DtFixedWingGunneryController, DtAggregateMountedMovementRelayController, DtResupplySupplierController, DtAggregatedSetController, DtBaseMountingController, DtResupplyReceiverController, DtAimWeaponController, DtAircraftClutterAreaController, DtShipClutterAreaController, DtMountingAzimuthActuator, DtMountingElevationActuator, DtEventTriggerController, DtAggregateLoadoutController, DtMoppEnableController, DtAggregateWeaponPowerController, DtWeaponManagementController, DtShipAisController, and DtAircraftAdsbController.
|
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, DtBallisticGunController, DtTaskControllerComponent, DtIffControllerComponent, DtObjectSensor, DtDisaggregatedFormationController, DtJammerController, DtLaserLightController, DtControllerComponent, DtSpotReportReceiver, DtMovementBasedTerrainPreloadController, DtWaitController, DtProvideIndirectFireController, DtAggregatedSetController, DtPropulsionNoiseGenerator, 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, DtBallisticGunController, DtTaskControllerComponent, DtIffControllerComponent, DtObjectSensor, DtDisaggregatedFormationController, DtLasingController, DtJammerController, DtLaserLightController, DtControllerComponent, DtSpotReportReceiver, DtMovementBasedTerrainPreloadController, DtWaitController, DtProvideIndirectFireController, DtPropulsionNoiseGenerator, DtSystemSwitcherComponent, DtHoldController, DtWeaponManagementController, 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 DtIffControllerComponent, 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 DtRotaryWingActuatorComponent, DtSurfaceEntityFollowEntityController, DtHumanMoveToController, DtLauncherController, DtBaseWeaponController, DtFixedWingTakeoffController, DtHumanFleeController, DtActiveSonarSensor, DtObjectSensor, DtSpawnController, DtMoveAlongWithActionsController, DtAggregatedMoveToController, DtDiGuyController, DtConvoyTaskController, DtDisaggregatedManeuverAlongController, DtOccupancyDirectorController, DtDisaggregatedLeadFollowInFormationController, DtRoadMovementController, DtRadarObjectSensor, DtSimpleProximitySensor, DtBallisticGunController, DtRailPathController, DtWeaponController, DtScriptedMovementController, DtEmbarkationController, DtTurretAcquireController, DtDynamicTerrainController, DtFixedWingLandingController, DtHumanMovementActuator, DtLaserGuidedLauncherController, DtReleaseBombController, DtResupplyReceiverController, DtEmitterComponent, DtEncumbranceActuator, DtAggregateMountedMovementSwitcher, DtBallisticGun, DtLasingController, DtAirRefuelSupplierController, DtJavelinMissileFlightController, DtDetonationController, DtAggregateWeaponListResponder, DtDynamicTerrainVehicleTrackController, DtFixedWingMoveAlongController, DtIndirectFireActuator, DtNavMovementActuator, DtHumanMoveAlongController, DtMissileTargetController, DtSurfaceEntityMoveAlongController, DtIndirectFireWeaponController, DtMinefieldController, DtScriptReactiveTaskController, DtMultipleHitDamageActuator, DtObstructionSensor, DtDisaggregatedPatrolAlongController, DtRotaryWingLandingGearController, DtDisaggregatedPatrolBetweenController, DtTrailerActuator, DtHumanWeaponStateActuator, DtIffControllerComponent, DtEnvironmentalActivationController, DtLaserLightActuator, DtNavigationPreferenceController, DtSearchRescueSensor, DtGpsJammerController, DtSearchLightActuator, DtAggregateMountedMovementRelayController, DtSensorGimbalActuator, DerivedMoveAlongController, DtEmergencyBeaconComponent, DtTacanComponent, DtAggregatedSetController, DtAircraftClutterAreaController, DtAirportLightingController, DtGroundPatrolBetweenController, DtScenarioEventController, DtShipClutterAreaController, DtAggregatedMoveAlongController, DtCruiseMissileDefaultController, DtShapeBasedTerrainPreloadController, DtFrictionlessGravityActuator, DtGroundMoveAlongControllerComponent, DtGroundMoveToAdapterComponent, DtTagVolumeDimensionsController, DtEmbeddedEntitiesController, DtTerrainProximityIndicator, DtAirborneAggregatedMovementActuator, DtPropulsionNoiseGenerator, DtSyncMatrixController, DtRadarWarningReceiver, DtRangeRingController, DtRadarJammer, DtStatePropertyInitializationController, DtAggregateCombatAdjustmentController, DtNbcWeaponController, DtWeaponManagementController, DtAggregateDatabaseLoggingController, DtFrictionlessGravityCollisionsActuator, DtAggregateWeaponPowerController, DtJavelinLauncherActuator, DtScriptMultiTaskController, and DtShipAisController.
|
virtual |
This gives the thread of control to the component. The component is ticked once each simulation frame by the component list it's on. The base class implementation invokes any registered sim object predicate callbacks.
Reimplemented in DtIndirectFireActuator, DtSurfaceEntityMoveAlongController, DtDamageAdjudicationActuator, DtBaseWeaponController, DtObjectSensor, DtSpawnController, DtRailPathController, DtGroundFollowEntityController, DtCounterBatteryRadarSensor, DtSurfaceEntityPilotController, DtDiGuyController, DtDisaggregatedMoveAlongController, DtLocalEntitySetController, DtAggregatedSetController, DtRotaryWingFlyIntoController, DtConvoyTaskController, DtSurfaceEntityActuator, DtRotaryWingFollowEntityController, DtTacticalGraphicSetController, DtRoadMovementController, DtDisaggregatedManeuverAlongController, DtDisaggregatedEmbarkationController, DtRadarObjectSensor, DtDisaggregatedLeadFollowInFormationController, DtOccupancyDirectorController, DtDisaggregatedFormationController, DtSurfaceEntityFollowEntityController, DtLauncherController, DtMunitionLaunchController, DtSignatureObjectSensor, DtWeaponController, DtBallisticGunController, DtAggregateWeaponListResponder, DtReleaseBombController, DtSuppressionActuator, DtSurfaceEntitySimpleActuator, DtWarheadDetonationActuator, DtRetreatController, DtNonLethalDamageActuator, DtSurfaceEntityPatrolBetweenController, DtSurfaceEntityStopController, DtDynamicTerrainController, DtEmbarkationController, DtTurretAcquireController, DtFixedWingTakeoffController, DtFixedWingLandingController, DtLaserGuidedLauncherController, DtResupplyReceiverController, DtSurfaceEntityMoveToController, DtHumanMovementActuator, DtLasingController, DtSpotReportGeneratorController, DtAggregateMountedMovementSwitcher, DtBallisticGun, DtResupplySupplierController, DtWeaponActuator, DtMissileDistractionController, DtDynamicTerrainVehicleTrackController, DtEngagementReportGeneratorController, DtFixedWingMoveAlongController, DtHumanMoveAlongController, DtAirRefuelSupplierController, DtObstructionSensor, DtParabolicTrajectoryActuator, DtSearchRescueSensor, DtDetonationController, DtGroundManeuverInFormationControllerComponent, DtLoiterMunitionLaunchController, DtSubSurfaceEntitySimpleActuator, DtUnderFireDeterminationSensor, DtDynamicTerrainLinearDeformationController, DtFixedWingActuatorComponent, DtNavalMineSetController, DtSensorGimbalController, DtTurretActuatorComponent, DtHumanObstructionSensor, DtAutomotiveActuatorComponent, DtVrfObjectDataMessenger, DtCruiseMissileLaunchController, DtMinefieldController, DtMultipleHitDamageActuator, DtSwingingPartActuator, DtTrailerActuator, DtAggregatedMovementActuator, DtBombController, DtCombatRangeController, DtContactFusionController, DtExtendablePartActuator, DtIndirectFireWeaponController, DtLaserLightController, DtSearchLightController, DtSubSurfaceDepthController, DtScriptReactiveTaskController, DtBaseMountingController, DtDisaggregatedPatrolAlongController, DtFixedWingPilotController, DtGroundMoveToDestinationControllerComponent, DtHumanFollowController, DtHumanMoveToController, DtRotaryWingActuatorComponent, DtBallisticGunJoyController, DtDisaggregatedPatrolBetweenController, DtShapeBasedTerrainPreloadController, DtTurretSlewController, DtDynamicTerrainMunitionDamageController, DtEmitterComponent, DtHumanCollisionAvoidanceController, DtLaserLightActuator, DtIffControllerComponent, DtLaunchExpendableResourceController, DtTranslatablePartActuator, DtVtolRotorActuator, DtAggregatedMoveToController, DtArticulatedPartController, DtPlaySoundController, DtSearchLightActuator, DtAggregateOrganizationController, DtAircraftClutterAreaController, DtIndirectArtilleryComponent, DtJammerController, DtSensorGimbalActuator, DtShipClutterAreaController, DtBaseParachuteActuator, DtDisaggregatedDamageActuator, DtFallingFromSkyActuatorComponent, DtLaunchSmokeController, DtMissileManeuverActComponent, DtSpotReportReceiver, DtActiveSonarSensor, DtLimitExistenceController, DtOrganizationController, DtRotaryWingWaitController, DtSimpleRotaryWingPilot, DtWaitController, DtBallisticGunJoy, DtAirportLightingController, DtHumanDamageActuator, DtRotorWashController, DtTopLevelOrganizationController, DtBombActuator, DtFixedWingGunneryController, DtHumanGunActuator, DtPassiveSonarSensor, DtCruiseMissileDefaultController, DtMissileCollisionActuator, DtAimWeaponController, DtEmbeddedEntitiesController, DtGroundMoveAlongControllerComponent, DtHumanAcquireController, DtHumanFleeController, DtMountingAzimuthActuator, DtMoveAlongWithActionsController, DtNbcSensor, DtRotaryWingPilotController, DtSurfaceEntityTurnMoveController, DtAggregatedMoveAlongController, DtAirVehicleWeaponHoldController, DtGroundMoveToControllerComponent, DtGroundPatrolBetweenController, DtHumanPostureController, DtHumanWeaponStateActuator, DtLookAtActuator, DtMountingElevationActuator, DtRotaryWingEncumberedFlightActuator, DtDefaultLandingGearController, DtEngineeringObjectSensor, DtHumanCrosswalkController, DtIndividualLifeFormDamageAdjudicationActuator, DtSimpleProximitySensor, DtEncumbranceActuator, DtFixedWingFlightCommandController, DtGroundFollowInFormationControllerComponent, DtHumanUseDoorController, DtIffInterrogatorControllerComponent, DtNavTagTraversalController, DtTimeKeeperComponent, DtEnvironmentalActivationController, DtFixedWingDefaultController, DtFixedWingFollowEntityController, DtGroundMoveToAdapterComponent, DtParachuteActuator, DtParachuteController, DtReactToCollisionEventActuator, DtRotaryWingLandingController, DtScriptedMovementController, DtTurretAimController, DtTurretReturnToHeadingController, DtAggregateIndirectFireController, DtAircraftClutterMovementController, DtMissileMoveToControllerComponent, DtAggregateFollowController, DtMissileTargetController, DtRotaryWingLandingGearController, DtRotaryWingMoveAlongControllerComponent, DtRotaryWingTurnToHeadingController, DtShipClutterMovementController, DtDiGuyGestureController, DtDisaggregatedActuator, DtGpsReceiverController, DtHumanEyepointController, DtHumanTurnToController, DtRotaryWingFlightCommandController, DtBreachDetector, DtDisaggregatedMoveToController, DtRemoteSensorSpotReportReceiver, DtRotaryWingPatrolBetweenController, DtSendRadioMessageController, DtTacticalSmokeActuator, DtAffectEngineeringObjectController, DtAggregateMountedSetRelayController, DtDisaggregatedSetController, DtDisaggregatedSetManeuverController, DtEventTriggerController, DtSinkToDepthActuator, DtTerrainProximityIndicator, DtFixedWingMoveToController, DtRotaryWingTaskController, DtAggregateReleaseBombController, DtGpsJammerController, DtGroundStopMovingControllerComponent, DtHumanStopMovingController, DtLaserDetector, DtSyncMatrixController, DtGroundVehicleTrailingEffectController, DtHumanFaceTargetController, DtLookAtPointController, DtPropulsionNoiseGenerator, vrfAddSetEncumbranceExample::DtManualRotaryWingEncumberedFlightActuator, DtTemperatureMonitorActuator, DtEmergencyBeaconComponent, DtGlobalEnvironmentActuator, DtGroundTurnToControllerComponent, DtRotaryWingLoiterControllerComponent, DtTacanComponent, DtExampleEmbeddedSystemController, DtSimpleRadarWarningReceiver, DtSimpleRadarWarningReceiver, DtAggregateDatabaseLoggingController, DtAimAtPointController, DtRotaryWingMoveToControllerComponent, DtSystemSwitcherComponent, DtUpdateRepositoryActuator, DtWeaponManagementController, DtFixedWingHoldController, DtDynamicFeaturesController, DtHoldController, DtScenarioEventController, DtSimpleRadarWarningResponse, DtSimpleRadarWarningResponse, DtRadarWarningReceiver, DtScriptEnableByAggregatePostureController, DtNavMovementActuator, DtScriptMultiTaskController, DtRadarJammer, DtDieWhenHitActuator, DtOrbitActuator, DtLauncherStowController, 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 DtDisaggregatedFormationController, and DtSpotReportGeneratorController.
|
virtual |
Specifies a minimum tick period and variance, both in seconds. These values are used if the component descriptor's minTickPeriod is set to -1, indicating the value was not specified in the OPD entry.
| minTickPeriod | The minimum tick period in seconds. |
| minTickPeriodVariance | The maximum random variance applied to the tick period, in seconds. |
|
virtual |
Sets up the component to tick for the first time after being added to a component system.
|
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, DtProbabilityDamageActuator, DtCounterBatteryRadarSensor, DtSurfaceEntityPilotController, DtDisaggregatedFormationController, DtRailPathController, DtLauncherController, DtDiGuyController, DtSuppressionActuator, DtNonLethalDamageActuator, DtWarheadDetonationActuator, DtMultipleHitDamageActuator, DtDisaggregatedMoveAlongController, DtDynamicTerrainController, DtRadarObjectSensor, DtRoadMovementController, DtEmitterComponent, DtHumanCollisionAvoidanceController, DtIndirectFireActuator, DtFixedWingMoveAlongController, DtDisaggregatedManeuverAlongController, DtObstructionSensor, DtSpotReportGeneratorController, DtDisaggregatedLeadFollowInFormationController, DtSignatureObjectSensor, DtTurretAcquireController, DtWeaponActuator, DtWeaponController, DtTaskControllerComponent, DtHumanMovementActuator, DtMinefieldController, DtBallisticGunController, DtBombController, DtEngagementReportGeneratorController, DtParabolicTrajectoryActuator, DtFixedWingPilotController, DtGroundMoveToDestinationControllerComponent, DtMissileDistractionController, DtBallisticGun, DtConvoyTaskController, DtMunitionLaunchController, DtSensorGimbalController, DtSurfaceEntityActuator, DtUnderFireDeterminationSensor, DtDynamicTerrainLinearDeformationController, DtGroundManeuverInFormationControllerComponent, DtJavelinMissileFlightController, DtTurretActuatorComponent, DtAggregateMountedMovementSwitcher, DtAirRefuelSupplierController, DtFixedWingActuatorComponent, DtIffControllerComponent, DtLasingController, DtSurfaceEntityPatrolRouteController, DtAutomotiveActuatorComponent, DtDynamicTerrainVehicleTrackController, DtFixedWingTakeoffController, DtLaserLightController, DtSearchLightController, DtSurfaceEntityFollowEntityController, DtSurfaceEntitySimpleActuator, DtSwingingPartActuator, DtTrailerActuator, DtVrfObjectDataMessenger, DtAggregatedMovementActuator, DtDisaggregatedMoveIntoFormationController, DtExtendablePartActuator, DtAggregateWeaponListResponder, DtHumanMoveToController, DtRotaryWingActuatorComponent, DtRetreatController, DtContactFusionController, DtFixedWingFlyIntoController, DtGroundMovementChooserController, DtDynamicTerrainMunitionDamageController, DtLaserLightActuator, DtPassiveSonarSensor, DtScriptReactiveTaskController, DtBaseWeaponController, DtCruiseMissileDefaultController, DtHumanMoveAlongController, DtSearchRescueSensor, DtTranslatablePartActuator, DtTurretSlewController, DtVtolRotorActuator, DtAggregatedMoveToController, DtAirVehicleSetController, DtArticulatedPartController, DtGpsJammerController, DtLaserGuidedLauncherController, DtLauncherActuator, DtOccupancyDirectorController, DtRotaryWingFlyIntoController, DtRotaryWingPilotController, DtSearchLightActuator, DtSurfaceEntityPatrolBetweenController, DtBaseParachuteActuator, DtEmbarkationController, DtFixedWingLandingController, DtIndirectArtilleryComponent, DtJammerController, DtSensorGimbalActuator, DtSpotReportReceiver, DtSurfaceEntityMoveAlongController, DtCruiseMissileLaunchController, DtDetonationController, DtDisaggregatedPatrolAlongController, DtEmergencyBeaconComponent, DtMissileManeuverActComponent, DtTacanComponent, DtFallingFromSkyActuatorComponent, DtFixedWingFlightCommandController, DtHumanDamageActuator, DtIffInterrogatorControllerComponent, DtLoiterMunitionLaunchController, DtSimpleRotaryWingPilot, DtAggregateOrganizationController, DtAircraftClutterAreaController, DtAirportLightingController, DtCulturalFeatureSetController, DtDisaggregatedDamageActuator, DtDisaggregatedEmbarkationController, DtFixedWingDefaultController, DtIndirectFireWeaponController, DtMovementBasedTerrainPreloadController, DtOrganizationController, DtParachuteController, DtRotaryWingLandingController, DtRotorWashController, DtShapeBasedTerrainPreloadController, DtShipClutterAreaController, DtSpawnController, DtActiveSonarSensor, DtBaseMountingController, DtMissileMoveToControllerComponent, DtTopLevelOrganizationController, DtAimWeaponController, DtDisaggregatedPatrolBetweenController, DtHumanAcquireController, DtHumanFollowController, DtLasingMissileTrackController, DtRotaryWingMoveAlongControllerComponent, DtRotaryWingTurnToHeadingController, DtSubSurfaceDepthController, DtSubSurfaceEntitySimpleActuator, DtSurfaceEntityStopController, DtSurfaceEntityTurnMoveController, DtBombActuator, DtHumanFleeController, DtHumanPatrolController, DtMissileCollisionActuator, DtMountingAzimuthActuator, DtMoveAlongWithActionsController, DtReleaseBombController, DtRotaryWingFlightCommandController, DtAirVehicleWeaponHoldController, DtDisaggregatedMoveToController, DtGroundAutoControllerComponent, DtGroundMoveToControllerComponent, DtHumanPostureController, DtLookAtActuator, DtMountingElevationActuator, DtRotaryWingEncumberedFlightActuator, DtRotaryWingPatrolBetweenController, DtTagVolumeDimensionsController, DtDefaultLandingGearController, DtDisaggregatedWaitController, DtGroundVehicleSetController, DtHumanCrosswalkController, DtLimitExistenceController, DtMissileControllerComponent, DtSimpleProximitySensor, DtTerrainProximityIndicator, DtFixedWingEntitySetController, DtFixedWingMoveToController, DtFixedWingPatrolRouteController, DtGroundFollowEntityController, DtHumanLauncherAcquireController, DtHumanUseDoorController, DtIntegratedLaserGuidedLauncherController, DtNavTagTraversalController, DtNbcSensor, DtParachuteActuator, DtRotaryWingFollowEntityController, DtRotaryWingPatrolRouteController, DtAggregatedPatrolController, DtAggregateMountedMovementRelayController, DtEngineeringObjectSensor, DtGroundStopMovingControllerComponent, DtHumanWeaponStateActuator, DtJavelinLauncherController, DtRotaryWingTaskController, DtScriptedMovementController, DtTurretAimController, DtControllerComponent, DtBallisticGunJoy, DtDisaggregatedTurnToHeadingController, DtEncumbranceActuator, DtGroundFollowInFormationControllerComponent, DtResupplySupplierController, DtRotaryWingJoyFlightController, DtActivityController, DtAggregatedMoveAlongController, DtDisaggregatedOccupancyDirectorController, DtFixedWingFollowEntityController, DtFixedWingPatrolBetweenController, DtFixedWingTankerEntitySetController, DtGlobalEnvironmentActuator, DtGroundPatrolRouteController, DtGroundTurnToControllerComponent, DtHumanEyepointController, DtMissileTargetController, DtResupplyReceiverController, DtRotaryWingLandingGearController, DtRotaryWingLoiterControllerComponent, DtRotaryWingWaitController, DtTurretReturnToHeadingController, DtWaitController, DtAggregateIndirectFireController, DtBeaconRadarObjectSensor, DtGroundMoveToAdapterComponent, DtHumanTurnToController, DtRadarWarningReceiver, DtReactToCollisionEventActuator, DtRemoteSensorSpotReportReceiver, DtRotaryWingMoveToControllerComponent, DtAffectEngineeringObjectController, DtAircraftClutterMovementController, DtCreateEngineeringObjectController, DtCruiseMissileMoveAlongController, DtFixedWingGunneryController, DtGroundMoveAlongControllerComponent, DtGroundPatrolBetweenController, DtLaunchExpendableResourceController, DtLocalEntitySetController, DtRadarJammer, DtSignalFlagsSetController, DtSurfaceEntityMoveToController, DtTacticalSmokeActuator, DtAggregateAntiAirController, DtDisaggregatedActuator, DtShipClutterMovementController, DtSurfaceEntitySetController, DtAggregateMountedSetRelayController, DtBreachDetector, DtDisaggregatedSetController, DtDisaggregatedSetManeuverController, DtGroundLeadFormationControllerComponent, DtHumanGunActuator, DtHumanSetController, DtNavigationPreferenceController, DtPlaySoundController, DtProvideIndirectFireController, DtSendRadioMessageController, DtTacticalGraphicSetController, DtBallisticGunJoyController, DtDestroyEngineeringObjectController, DtFixedWingEmbarkationController, DtFrictionlessGravityCollisionsActuator, DtGpsReceiverController, DtHumanFaceTargetController, DtHumanStopMovingController, DtIndividualLifeFormDamageAdjudicationActuator, DtLaunchSmokeController, DtLookAtPointController, DtBreachObstacleController, DtGroundVehicleTrailingEffectController, DtPropulsionNoiseGenerator, DtSyncMatrixController, DtFixedWingJoyFlightController, DtAggregateReleaseBombController, DtAimAtPointController, DtDisaggregatedManeuverToController, DtFrictionlessGravityActuator, DtGroundJoyMoveController, DtScriptEnableController, DtTimeKeeperComponent, DtGroundJoyTurretController, DtAirborneAggregatedMovementActuator, DtEmbeddedEntitiesController, DtEventTriggerController, DtHumanObstructionSensor, DtMountingController, DtNavalMineSetController, DtShipAisController, DtSystemSwitcherComponent, DtExampleEmbeddedSystemController, DtAggregateFollowController, DtCombatRangeController, DtDisaggregatedMoveAlongAdapterController, DtLaserDetector, DtUpdateRepositoryActuator, DtVerticalLauncherController, DtEnvironmentalActivationController, DtFascamController, DtMoppEnableController, DtNbcWeaponController, DtRotaryWingEmbarkationController, DtSurfaceEntityKeepStationController, DtAggregateDatabaseLoggingController, DtAircraftAdsbController, DtRangeRingController, DtResupplyController, DtScenarioEventController, DtSinkToDepthActuator, DtTemperatureMonitorActuator, DtSimpleRadarWarningReceiver, DtSimpleRadarWarningResponse, DtSimpleRadarWarningReceiver, DtSimpleRadarWarningResponse, DtDiGuyGestureController, DtDynamicFeaturesController, DtFixedWingHoldController, DtPseudoAggregatedSetController, DtSpawnObjectWarheadActuator, DtAggregateCombatAdjustmentController, DtAggregateLoadoutController, DtJavelinLauncherActuator, DtStatePropertyInitializationController, DtHoldController, DtNavMovementActuator, DtAerodromeSetController, DtWeaponManagementController, DtMissileSetController, DtScriptMultiTaskController, DtDieWhenHitActuator, DtLauncherStowController, DtOrbitActuator, DtAggregatedSubsurfaceMovementActuator, MyActuatorComponent, MyParallelTickComponent, and DtCompatibilityController.
|
virtual |
Sets the entity that this component operates on. The entity's state repository is the place that actuator components make updates and other components look to see the current state, providing a basic communication mechanism between components.
| entity | The new local object to associate with this component. |
Reimplemented in DtLaserDetector, DtSimpleRadarWarningReceiver, and DtSimpleRadarWarningReceiver.
|
virtual |
|
virtual |
|
virtual |
Sets the list item node for this component used for intrusive list membership. Used by DtComponentList.
| item | The list item to associate with this component. |
|
virtual |
|
overridevirtual |
putData writes our type, which is provided by the virtual type accessor of the deriving class.
Reimplemented from DtReaderWriter.
|
overridevirtual |
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 |
Removes the given input port from this component's input port list.
| port | The input port to remove. |
|
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 |
Removes the given output port from this component's output port list.
| port | The output port to remove. |
|
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 group to the components input port group list so that other components can look it up and attach to it.
|
virtual |
Removes the given input port group from this component's input port group list.
| group | The input port group to remove. |
|
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 |
Removes the given output port group from this component's output port group list.
| group | The output port group to remove. |
|
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.
| 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, DtLoiterMunitionLaunchController, DtFixedWingFlyIntoController, DtLaserGuidedLauncherController, DtRotaryWingFlyIntoController, DtCruiseMissileLaunchController, DtVrfObjectDataMessenger, 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, DtLasingController, DtScriptedMovementController, DtDiGuyController, DtLocalEntitySetController, DtRoadMovementController, DtParachuteController, DtOrganizationController, DtWaitController, DtScriptReactiveTaskController, DtActuatorComponent, DtUnderFireDeterminationSensor, DtEmitterComponent, DtJammerController, DtSpotReportReceiver, DtFixedWingLandingController, DtAffectEngineeringObjectController, DtTacticalGraphicSetController, DtGpsJammerController, DtEmergencyBeaconComponent, DtTacanComponent, DtAggregateDatabaseLoggingController, and DtScriptMultiTaskController.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Referenced by getCachedCurrentFrameStatePropertyValue().
|
virtual |
|
virtual |
| DtString DtSimComponent::toString | ( | const DtEntityType & | entityType | ) | const |
Returns a human-readable string for an entity type using the simulation's enumeration dictionary. Produces "displayName (enum)" when a dictionary name is available, or just the enum string otherwise.
| 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.
Referenced by cachedCurrentFrameStateProperty(), and cachedNextFrameStateProperty().
|
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 |
Called when the is-clutter setting changes.
Reimplemented in DtFixedWingMoveToController, DtShipClutterMovementController, DtAircraftClutterMovementController, and DtLocalEntitySetController.
|
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 DtDamageAdjudicationActuator, DtRadarObjectSensor, DtTaskControllerComponent, DtIndirectFireActuator, DtScriptMultiTaskController, DtParachuteController, DtWarheadDetonationActuator, DtRadarJammer, DtDynamicTerrainVehicleTrackController, DtHumanUseDoorController, DtAircraftClutterAreaController, DtShipClutterAreaController, DtSimpleRotaryWingPilot, DtMinefieldController, DtNavMovementActuator, and DtGpsReceiverController.
|
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, and DtGroundManeuverInFormationControllerComponent.
|
inline |
|
virtual |
Updates the ImGui debug window for this component. The base class implementation displays the component type, a debug toggle, input and output port tables, and the component's descriptor. Override in subclasses to display additional component-specific information.
Reimplemented in DtDamageAdjudicationActuator, DtSingleTaskControllerComponent, and DtMultiTaskControllerComponent.
|
virtual |
myLocalDebug) is set, or the descriptor's debugActive is true and the entity's notify level is set to debug.
|
protectedvirtual |
Configures the timed tick logic based on the given tick period and variance. Called during init() and when setMinTickPeriod() updates the tick rate.
| minTickPeriod | The minimum time in seconds between ticks. |
| minTickPeriodVariance | The maximum random variance applied to the tick period, in seconds. |
|
protectedvirtual |
Computes the current simulation time and updates myDT based on the elapsed time since the last tick.
|
protected |
Tests whether the class invariant holds.
|
protectedvirtual |
Called by init. Derived classes should override this method to create all their input/output port groups.
Reimplemented in DtAutomotiveActuatorComponent, DtFixedWingPilotController, DtHumanMovementActuator, DtGroundAutoControllerComponent, DtBallisticGun, DtGroundMoveToDestinationControllerComponent, DtDiGuyController, DtFixedWingActuatorComponent, DtSurfaceEntityPilotController, DtObjectSensor, DtHumanCollisionAvoidanceController, DtSurfaceEntityFollowEntityController, DtHumanFollowController, DtBallisticGunController, DtObstructionSensor, DtBaseMountingController, DtSurfaceEntityActuator, DtBaseWeaponController, DtAggregatedMoveToController, DtSensorGimbalController, DtHumanMoveToController, DtAggregatedMovementActuator, DtLasingController, DtWeaponActuator, DtMissileControllerComponent, DtScriptedMovementController, DtRotaryWingPilotController, DtSignatureObjectSensor, DtSurfaceEntitySimpleActuator, DtTurretAcquireController, DtLaserLightController, DtSearchLightController, DtHumanAcquireController, DtAggregatedMoveAlongController, DtRotaryWingActuatorComponent, DtLaserLightActuator, DtRotaryWingMoveAlongControllerComponent, DtSearchLightActuator, DtSensorGimbalActuator, DtMountingAzimuthActuator, DtRotaryWingTaskController, DtMountingElevationActuator, DtMissileManeuverActComponent, DtShipClutterMovementController, DtBaseParachuteActuator, DtFallingFromSkyActuatorComponent, DtHumanUseDoorController, DtLookAtActuator, DtHumanFleeController, DtHumanEyepointController, DtAimWeaponController, DtTerrainProximityIndicator, DtParachuteController, DtAirVehicleWeaponHoldController, DtHumanTurnToController, DtDefaultLandingGearController, DtLookAtPointController, DtAimAtPointController, DtDisaggregatedActuator, DtHumanCrosswalkController, DtHumanStopMovingController, DtHumanFaceTargetController, DtUpdateRepositoryActuator, DtReactToCollisionEventActuator, and DtAggregateFollowController.
|
protectedvirtual |
Called by init. Derived classes should override this method to create all their input/output ports and port groups.
Reimplemented in DtAutomotiveActuatorComponent, DtFixedWingPilotController, DtHumanMovementActuator, DtSurfaceEntityMoveAlongController, DtGroundAutoControllerComponent, DtBallisticGun, DtGroundMoveToDestinationControllerComponent, DtFixedWingMoveAlongController, DtDiGuyController, DtFixedWingActuatorComponent, DtWeaponController, DtSurfaceEntityPilotController, DtObjectSensor, DtSurfaceEntityFollowEntityController, DtHumanCollisionAvoidanceController, DtHumanFollowController, DtBallisticGunController, DtIndirectFireActuator, DtBaseMountingController, DtObstructionSensor, DtSurfaceEntityActuator, DtIndirectFireWeaponController, DtBaseWeaponController, DtAggregatedMoveToController, DtLauncherController, DtHumanMoveAlongController, DtGroundMoveAlongControllerComponent, DtSensorGimbalController, DtHumanMoveToController, DtAggregatedMovementActuator, DtLasingController, DtWeaponActuator, DtDetonationController, DtGroundFollowEntityController, DtMissileControllerComponent, DtRotaryWingPilotController, DtSignatureObjectSensor, DtSurfaceEntitySimpleActuator, DtScriptedMovementController, DtSpotReportGeneratorController, DtLaserGuidedLauncherController, DtLaserLightController, DtSwingingPartActuator, DtExtendablePartActuator, DtSearchLightController, DtTurretAcquireController, DtHumanAcquireController, DtFixedWingLandingController, DtFixedWingGunneryController, DtAggregatedMoveAlongController, DtRotaryWingActuatorComponent, DtTurretSlewController, DtWarheadDetonationActuator, DtLaserLightActuator, DtRotaryWingMoveAlongControllerComponent, DtTurretActuatorComponent, DtSearchLightActuator, DtSensorGimbalActuator, DtContactFusionController, DtMountingAzimuthActuator, DtRotaryWingTaskController, DtLauncherActuator, DtMountingElevationActuator, DtSubSurfaceDepthController, DtSpotReportReceiver, DtMissileManeuverActComponent, DtSimpleProximitySensor, DtBombController, DtMoveAlongWithActionsController, DtHumanObstructionSensor, DtHumanUseDoorController, DtBaseParachuteActuator, DtHumanPostureController, DtLookAtActuator, DtBallisticGunJoyController, DtHumanFleeController, DtHumanWeaponStateActuator, DtEmbarkationController, DtHumanEyepointController, DtWeaponManagementController, DtAimWeaponController, DtSubSurfaceEntitySimpleActuator, DtAirVehicleWeaponHoldController, DtBombActuator, DtHumanTurnToController, DtParachuteController, DtRotaryWingEncumberedFlightActuator, DtDefaultLandingGearController, DtEncumbranceActuator, DtIntegratedLaserGuidedLauncherController, DtHumanCrosswalkController, DtTurretAimController, DtLaserDetector, DtTerrainProximityIndicator, DtLookAtPointController, DtEventTriggerController, DtHumanFaceTargetController, DtHumanGunActuator, DtAimAtPointController, DtSimpleRadarWarningReceiver, DtSimpleRadarWarningReceiver, DtSimpleRotaryWingPilot, DtBallisticGunJoy, DtSimpleRadarWarningResponse, DtSimpleRadarWarningResponse, DtLauncherStowController, 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, DtDamageAdjudicationActuator, DtFixedWingMoveAlongController, DtAircraftClutterAreaController, DtHumanFollowController, DtRoadMovementController, DtFixedWingMoveToController, DtHumanMoveToController, DtShipClutterAreaController, DtIndirectFireActuator, DtWarheadDetonationActuator, DtGroundManeuverInFormationControllerComponent, DtGroundMoveToDestinationControllerComponent, DtFixedWingFollowEntityController, DtMoveAlongWithActionsController, DtGroundMoveAlongControllerComponent, DtGroundFollowInFormationControllerComponent, DtShipClutterMovementController, DtHumanFleeController, DtRotaryWingMoveToControllerComponent, DtRotaryWingFollowEntityController, DtScriptedMovementController, DtAircraftClutterMovementController, DtSurfaceEntityMoveToController, DtRotaryWingTaskController, DtNavTagTraversalController, DtFixedWingFlyIntoController, DtDynamicTerrainController, DtConvoyTaskController, DtParachuteController, DtRotaryWingFlyIntoController, DtFixedWingDefaultController, DtGroundLeadFormationControllerComponent, DtAggregatedMoveToController, DtHumanCrosswalkController, DtDynamicTerrainVehicleTrackController, DtHumanUseDoorController, DtMinefieldController, DtSimpleRotaryWingPilot, and DtGpsReceiverController.
|
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.
|
inlineprotected |
Returns the cached property interface for a next-frame state property, looking it up and caching the result on first access.
| prop | Pointer to the cache slot; populated on first call and reused on subsequent calls. |
| propName | Name of the state property to look up. |
References entity(), DtRwProperties::findPropertyInterface(), and DtLocalObject::nextFrameStateProperties().
Referenced by setCachedNextFrameStatePropertyValue().
|
inlineprotected |
Sets the value of a next-frame state property via a cached property interface. The cache pointer is populated on the first call and reused on subsequent calls.
| prop | Pointer to the cache slot for the property interface. |
| propName | Name of the state property to set. |
| value | The new value to assign to the property. |
References cachedNextFrameStateProperty(), and DtPropertyInterface::setPropertyValue().
|
inlineprotected |
Returns the cached read-only property interface for a current-frame state property, looking it up and caching the result on first access.
| prop | Pointer to the cache slot; populated on first call and reused on subsequent calls. |
| propName | Name of the state property to look up. |
References entity(), DtRwProperties::findPropertyInterface(), and DtLocalObject::stateProperties().
Referenced by getCachedCurrentFrameStatePropertyValue().
|
protected |
Gets the value of a current-frame state property via a cached property interface. The cache pointer is populated on the first call and reused on subsequent calls. Logs a warning if the property cannot be found.
| prop | Pointer to the cache slot for the property interface. |
| propName | Name of the state property to read. |
| value | Output parameter that receives the property value if found. |
References cachedCurrentFrameStateProperty(), objectConsoleWarn(), and DtPropertyInterface::propertyValue().
|
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.
Registers a callback function to be invoked when the given predicate evaluates to true for the specified sim object. Callbacks are evaluated at the beginning of each tick.
| simObject | The sim object to which the predicate is applied. |
| function | The callback function to invoke when the predicate evaluates to true. |
| predicate | The predicate to evaluate each tick. |
| evaluationPeriod | Minimum time in seconds between predicate evaluations (0 means every tick). |
| userData | Optional user data passed to the callback function. |
|
protected |
Removes a previously registered predicate callback for the specified sim object.
| simObject | The sim object associated with the callback to remove. |
| function | The callback function that was registered. |
| predicate | The predicate that was registered. |
| evaluationPeriod | The evaluation period that was specified when the callback was added. |
| userData | The user data that was specified when the callback was added. |
|
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 |
The local object (entity) that owns this component.
|
protected |
Pointer to the DtComponentSystem that this component belongs.
|
protected |
The list item node used for intrusive list membership in DtComponentList.
|
protected |
Map of input ports registered on this component, keyed by port name.
|
protected |
Map of output ports registered on this component, keyed by port name.
|
protected |
Map of input port groups registered on this component, keyed by group name.
|
protected |
Map of output port groups registered on this component, keyed by group name.
|
staticprotected |
The factory used to create DtSimComponent instances.
|
protected |
The connection priority of this component; lower values take precedence.
|
protected |
The simulation time at which this component was last ticked.
|
protected |
The logic object that determines when this component should be ticked.
|
protected |
The time delta since the last tick, in seconds.
Referenced by dT().
|
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 |
The descriptor used to configure this component, typically read from an OPD file.
|
protected |
List of PSRs created via createComponentPsr() that will be automatically unregistered and deleted when this component is destroyed.
|
protected |
The visualization objects to be drawn for this component.
|
protected |
The next tick time for updating the task visualizations.
|
mutableprotected |
The fully-qualified name of this component, composed of the containing system hierarchy and component name.
|
protected |
Pointer to the simulation services, providing access to the clock, terrain, and messaging.
|
protected |
Manages the registered predicate callbacks that are invoked each tick.
|
protected |
Connection to the entity's isClutterChanged signal, used to re-enable when clutter state changes.
|
protected |
Local debug flag for this component instance. If true, debugActive() will return true.