VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions
DtSimComponent Class Referenceabstract

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.

Related examples
Other uses in examples
Inheritance diagram for DtSimComponent:
Inheritance graph
[legend]

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)
 

Static Public Member Functions

static DtSimComponentFactory * factory ()
 
static void setFactory (DtSimComponentFactory *factory)
 
static DtSimComponent * createComponent (const DtString &name, const DtString &type, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentSystem *parentSystem, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 
static void addSimComponentCreatorFcn (const DtString &type, DtSimComponentCreatorFcn fcn)
 
- Static Public Member Functions inherited from DtReaderWriter
static void putIndent (std::string &fp, int indentLevel)
 
static const
DtVariableBindingsList & 
nullVariableReference ()
 
static void setPostGetSelfCallback (DtGetSelfCallbackFcn fcn, void *usrData)
 
static void setPrePutSelfCallback (DtPutSelfCallbackFcn fcn, void *usrData)
 
static void setPutIndent (bool)
 
static bool putIndent ()
 
static const char * theXmlType ()
 
static const DtFilename & appPath ()
 
static void setFactoryCreatorFunction (DtReaderWriterFactoryCreatorFcn fcn)
 
static void createReaderWriterFactory ()
 
static void cleanupFactory ()
 
static DtReaderWriterFactory * factory ()
 
static void setOutputStream (DtOutputStream *stream)
 
static DtOutputStream & outputStream ()
 
static DtReaderWriter * createFromXmlFile (const DtFilename &, bool createAsProperty=false)
 
static DtReaderWriter * createFromXml (const DtString &, bool createAsProperty=false)
 
static DtReaderWriter * createFromEnvironment (DtEnvironmentSP, bool createAsProperty=false)
 
static DtString getAttribute (DtEnvironmentSP env, const DtString &name, DtEnvValueSP root)
 

Protected Types

typedef std::map< DtString,
DtInputPort * > 
DtInputPortMap
 
typedef std::map< DtString,
DtOutputPort * > 
DtOutputPortMap
 
typedef std::map< DtString,
DtInputPortGroup * > 
DtInputPortGroupMap
 
typedef std::map< DtString,
DtOutputPortGroup * > 
DtOutputPortGroupMap
 

Protected Member Functions

virtual void setupTimedTickLogic (double minTickPeriod, double minTickPeriodVariance)
 
virtual double computeCurrentTime ()
 
bool testInvariant () const
 
virtual bool createPortGroups ()
 
virtual bool createPorts ()
 
DtVrfProcessStateRepository * createComponentPsr (const DtString &defaultPsrType, const DtString &defaultPsrName, bool useDescriptorParams=true)
 
virtual void updateTaskVisualizations ()
 
virtual void destroyTaskVisualizations ()
 
virtual void destroyTaskVisualization (const DtString &name)
 
virtual
makVrf::DtPointTaskVisualizationPtr 
pointTaskVisualization (const DtString &name)
 
virtual
makVrf::DtLineTaskVisualizationPtr 
lineTaskVisualization (const DtString &name)
 
virtual
makVrf::DtAreaTaskVisualizationPtr 
areaTaskVisualization (const DtString &name)
 
virtual
makVrf::DtTextTaskVisualizationPtr 
textTaskVisualization (const DtString &name)
 
double calculateNextTaskVisTickTime () const
 
DtVrfObjectStateRepository * localStateRepository ()
 
const DtVrfObjectStateRepository * localStateRepository () const
 
DtPropertyInterface * cachedNextFrameStateProperty (DtPropertyInterface **prop, const DtString &propName)
 
template<typename ValType >
void setCachedNextFrameStatePropertyValue (DtPropertyInterface **prop, const DtString &propName, ValType value)
 
const DtPropertyInterface * cachedCurrentFrameStateProperty (const DtPropertyInterface **prop, const DtString &propName) const
 
template<typename ValType >
bool getCachedCurrentFrameStatePropertyValue (const DtPropertyInterface **prop, const DtString &propName, ValType &value) const
 
void addSimObjectPredicateCallback (DtSimObjectReference simObject, DtVrfObjectPredicateCallbackFunction function, const DtVrfObjectPredicate &predicate, DtTime evaluationPeriod=0, void *userData=0)
 
void removeSimObjectPredicateCallback (const DtSimObject *simObject, DtVrfObjectPredicateCallbackFunction function, const DtVrfObjectPredicate &predicate, DtTime evaluationPeriod=0, void *userData=0)
 
void invokeSimObjectPredicateCallbacks ()
 
virtual void clearPredicateCallbacks ()
 
- Protected Member Functions inherited from DtReaderWriter
virtual void bindToRwAsVariable (const DtReaderWriter *rw)
 

Protected Attributes

DtLocalObject * myEntity
 
DtComponentSystem * mySystem
 
DtListItem * myListItem
 
DtInputPortMap myInputPortList
 
DtOutputPortMap myOutputPortList
 
DtInputPortGroupMap myInputPortGroupList
 
DtOutputPortGroupMap myOutputPortGroupList
 
int myPriority
 
double myLastTickSimTime
 
std::unique_ptr< DtTimedTickLogic > myTimedTickLogic
 
double myDT
 
bool myIsEnabled
 
bool myFirstTick
 
const DtComponentDescriptor * myComponentDescriptor
 
std::list
< DtVrfProcessStateRepository * > 
myComponentPsrs
 
makVrf::DtTaskVisualizationMap myTaskVisualizations
 
double myNextTaskVisTickTime
 
DtSymbolString myFullComponentName
 
DtSimulationServices * mySimServices
 
DtPredicateCallbackManager * myPredicateCallbackManager
 
boost::signals2::scoped_connection myIsClutterChangedConnection
 
bool myLocalDebug
 
- Protected Attributes inherited from DtReaderWriter
const DtSymbolString myName
 
DtReaderWriterRegistry myRegistry
 
DtReaderWriterRegistry * myParentRegistry
 
bool myValueSpecified
 
bool myReadOnlyFlag
 
bool myIsVariableReference
 
DtSymbolString myVariableName
 
bool myVariableIsBound
 
DtReaderWriter * myDefaultValue
 
aliasContainer myAliases
 
bool myInvalid
 
bool myChangedFlag
 

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 )()
 

Member Typedef Documentation

typedef std::map<DtString, DtInputPort*> DtSimComponent::DtInputPortMap
protected
typedef std::map<DtString, DtOutputPort*> DtSimComponent::DtOutputPortMap
protected

Constructor & Destructor Documentation

DtSimComponent::DtSimComponent ( const DtString &  name,
DtLocalObject *  owner,
DtSimulationServices *  simServices,
DtComponentDescriptor *  desc = 0,
DtReaderWriterRegistry *  parentRegistry = 0 
)
Parameters
nameReader writer name of this component.
ownerThe DtLocalObject that owns this component
simManagerThe simulation manager (provides access to terrain, message interface, simulation clock).
descThe component descriptor used to initialize this component.
parentRegistryPointer to the parent reader writer registry (the containing object that reads/writes this object).
virtual DtSimComponent::~DtSimComponent ( )
overridevirtual

destructor

DtSimComponent::DtSimComponent ( )
private

default constructor; should not be called. Here because the compiler will generate an unprotected one otherwise.

DtSimComponent::DtSimComponent ( const DtSimComponent &  orig)
private

copy constructor, not implemented

Member Function Documentation

virtual void DtSimComponent::setParentSystem ( DtComponentSystem *  system)
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
Returns
The parent component system that this component belongs to, or null if none.
virtual bool DtSimComponent::init ( )
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.

virtual bool DtSimComponent::postAddComponentsInit ( )
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.

virtual void DtSimComponent::registerAttributeFunctions ( )
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 void DtSimComponent::enable ( )
virtual
virtual void DtSimComponent::disable ( )
virtual
virtual bool DtSimComponent::isEnabled ( )
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 void DtSimComponent::setIsEnabled ( bool  yesNo)
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 void DtSimComponent::preFirstTickInit ( )
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 void DtSimComponent::tick ( )
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 void DtSimComponent::postTick ( )
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 void DtSimComponent::timedTick ( )
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 void DtSimComponent::setMinTickPeriod ( double  minTickPeriod,
double  minTickPeriodVariance 
)
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.

Parameters
minTickPeriodThe minimum tick period in seconds.
minTickPeriodVarianceThe maximum random variance applied to the tick period, in seconds.
virtual void DtSimComponent::setupFirstTickTime ( )
virtual

Sets up the component to tick for the first time after being added to a component system.

virtual const char* DtSimComponent::type ( ) const
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 void DtSimComponent::setEntity ( DtLocalObject *  entity)
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.

Parameters
entityThe new local object to associate with this component.

Reimplemented in DtLaserDetector, DtSimpleRadarWarningReceiver, and DtSimpleRadarWarningReceiver.

virtual DtSimComponent* DtSimComponent::nextComponent ( )
virtual
Returns
The next component in the component list, or null if at the end.
virtual DtSimComponent* DtSimComponent::prevComponent ( )
virtual
Returns
The previous component in the component list, or null if at the beginning.
virtual void DtSimComponent::setListItem ( DtListItem *  item)
virtual

Sets the list item node for this component used for intrusive list membership. Used by DtComponentList.

Parameters
itemThe list item to associate with this component.
virtual DtListItem* DtSimComponent::listItem ( )
virtual
Returns
The list item node associated with this component.
virtual void DtSimComponent::putData ( std::string &  fp,
int  indentLevel = 0 
)
overridevirtual

putData writes our type, which is provided by the virtual type accessor of the deriving class.

Reimplemented from DtReaderWriter.

virtual DtlObjPtr DtSimComponent::getData ( DtlObjPtr  args,
const DtReaderWriter::SearchPaths &  searchPaths,
const DtVariableBindingsList &  variableBindings 
)
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 void DtSimComponent::addInputPort ( DtInputPort *  port)
virtual

Adds this input port to the components input port list so that other components can look it up and attach to it.

virtual void DtSimComponent::removeInputPort ( DtInputPort *  port)
virtual

Removes the given input port from this component's input port list.

Parameters
portThe input port to remove.
virtual DtInputPort* DtSimComponent::lookupInputPort ( const DtString &  portName)
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 DtList DtSimComponent::inputPortList ( ) const
virtual

Returns the list of DtInputPorts registered on this component.

virtual void DtSimComponent::addOutputPort ( DtOutputPort *  port)
virtual

Adds this output port to the components output port list so that other components can look it up and attach to it.

virtual void DtSimComponent::removeOutputPort ( DtOutputPort *  port)
virtual

Removes the given output port from this component's output port list.

Parameters
portThe output port to remove.
virtual DtOutputPort* DtSimComponent::lookupOutputPort ( const DtString &  portName)
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 DtList DtSimComponent::outputPortList ( ) const
virtual

Returns the list of DtOutputPorts registered on this component.

virtual void DtSimComponent::addInputPortGroup ( DtInputPortGroup *  group)
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 void DtSimComponent::removeInputPortGroup ( DtInputPortGroup *  group)
virtual

Removes the given input port group from this component's input port group list.

Parameters
groupThe input port group to remove.
virtual DtInputPortGroup* DtSimComponent::lookupInputPortGroup ( const DtString &  groupName)
virtual

Returns a pointer the input port group registered on this component with the specified name.

virtual DtList DtSimComponent::inputPortGroupList ( ) const
virtual

Returns the list of DtInputPortGroups registered on this component.

virtual void DtSimComponent::addOutputPortGroup ( DtOutputPortGroup *  group)
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 void DtSimComponent::removeOutputPortGroup ( DtOutputPortGroup *  group)
virtual

Removes the given output port group from this component's output port group list.

Parameters
groupThe output port group to remove.
virtual DtOutputPortGroup* DtSimComponent::lookupOutputPortGroup ( const DtString &  groupName)
virtual

Returns a pointer the output port group registered on this component with the specified name.

virtual DtList DtSimComponent::outputPortGroupList ( ) const
virtual

Returns the list of DtOutputPortGroups registered on this component.

virtual int DtSimComponent::priority ( ) const
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 void DtSimComponent::setPriority ( int  priority)
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.

double DtSimComponent::dT ( ) const
inline

This is the delta-t for this component, which may or may not be the same as the exerciseClock dT. Note that dT() is not virtual, as it is inlined.

Returns
time in seconds

References myDT.

virtual void DtSimComponent::setDT ( double  deltaT)
virtual

Note that while dT is calculated internally, this makes it possible to 'lie' to the component about dT if necessary.

Parameters
deltaTtime in seconds
virtual void DtSimComponent::setComponentDescriptor ( DtComponentDescriptor *  componentDescriptor)
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 const DtComponentDescriptor* DtSimComponent::componentDescriptor ( ) const
virtual
virtual bool DtSimComponent::tickWhileDestroyed ( ) const
virtual
virtual DtOutputStream& DtSimComponent::objectConsoleDebug ( const DtString &  channel = "") const
virtual

virtual DtOutputStream& DtSimComponent::objectConsoleVerbose ( const DtString &  channel = "") const
virtual

virtual DtOutputStream& DtSimComponent::objectConsoleInfo ( const DtString &  channel = "") const
virtual

virtual DtOutputStream& DtSimComponent::objectConsoleWarn ( const DtString &  channel = "") const
virtual
virtual DtOutputStream& DtSimComponent::objectConsoleError ( const DtString &  channel = "") const
virtual

virtual int DtSimComponent::notifyLevel ( ) const
virtual
Returns
The notification level of the entity that owns this component.
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 ( )
Returns
The PSR manager that should be used by this component. This will be the PSR manager that is owned by the component's parent system. Non-virtual so that it can be used by the destructor.
virtual DtSimResourceManager& DtSimComponent::resourceManager ( )
virtual
Returns
A pointer to the resource manager of the system that this component is part of.
virtual const DtSimResourceManager& DtSimComponent::resourceManager ( ) const
virtual
Returns
A pointer to the resource manager of the system that this component is part of.
virtual const DtSymbolString& DtSimComponent::componentFullName ( ) const
virtual
Returns
A string that uniquely names this component on the entity. The name will be composed of the systems containing this component, and the reader-writer name of this component.
static DtSimComponentFactory* DtSimComponent::factory ( )
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 void DtSimComponent::setFactory ( DtSimComponentFactory *  factory)
static
static DtSimComponent* DtSimComponent::createComponent ( const DtString &  name,
const DtString &  type,
DtLocalObject *  owner,
DtSimulationServices *  simManager,
DtComponentSystem *  parentSystem,
DtComponentDescriptor *  desc = 0,
DtReaderWriterRegistry *  parentRegistry = 0 
)
static

Creates a DtSimComponent using the factory, then initializes it via the MTL stream.

static void DtSimComponent::addSimComponentCreatorFcn ( const DtString &  type,
DtSimComponentCreatorFcn  fcn 
)
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.

Parameters
typeType identifying particular derived type of DtSimComponent
fcnCreation 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.

DtLocalObject* DtSimComponent::entity ( )
inline
const DtLocalObject* DtSimComponent::entity ( ) const
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!

Note
If this function is called while the physical world is in an invalid state, the results are undefined.
virtual void DtSimComponent::isClutterChanged ( )
virtual
virtual bool DtSimComponent::taskVisualizationsActive ( ) const
virtual
virtual bool DtSimComponent::taskVisualizationsEnabled ( ) const
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 void DtSimComponent::onRestore ( )
virtual

Called whenever a component is restored. Default is no-op.

Reimplemented in DtControllerComponent, and DtGroundManeuverInFormationControllerComponent.

makVrf::DtTaskVisualizationMap& DtSimComponent::taskVisualizations ( )
inline
Returns
The map of task visualizations owned by this component.
virtual void DtSimComponent::updateImgui ( )
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 bool DtSimComponent::debugActive ( ) const
virtual
Returns
True if debugging has been enabled for this component. Debugging is active if either the local debug flag (myLocalDebug) is set, or the descriptor's debugActive is true and the entity's notify level is set to debug.
virtual void DtSimComponent::setupTimedTickLogic ( double  minTickPeriod,
double  minTickPeriodVariance 
)
protectedvirtual

Configures the timed tick logic based on the given tick period and variance. Called during init() and when setMinTickPeriod() updates the tick rate.

Parameters
minTickPeriodThe minimum time in seconds between ticks.
minTickPeriodVarianceThe maximum random variance applied to the tick period, in seconds.
virtual double DtSimComponent::computeCurrentTime ( )
protectedvirtual

Computes the current simulation time and updates myDT based on the elapsed time since the last tick.

Returns
The current simulation time in seconds.
bool DtSimComponent::testInvariant ( ) const
protected

Tests whether the class invariant holds.

Returns
True if the invariant is valid (non-null entity and simulation services); should be true at the beginning of every public member function and at the end of all non-const public member functions.
virtual bool DtSimComponent::createPortGroups ( )
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.

virtual bool DtSimComponent::createPorts ( )
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.

DtVrfProcessStateRepository* DtSimComponent::createComponentPsr ( const DtString &  defaultPsrType,
const DtString &  defaultPsrName,
bool  useDescriptorParams = true 
)
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.

Note
PSRs created with this method will be automatically unregistered and deleted when the component is destroyed.
Parameters
useDescriptorParamsIf 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.
virtual void DtSimComponent::updateTaskVisualizations ( )
inlineprotectedvirtual
virtual void DtSimComponent::destroyTaskVisualizations ( )
protectedvirtual

Destroys all task visualizations for this component.

virtual void DtSimComponent::destroyTaskVisualization ( const DtString &  name)
protectedvirtual

Destroys an existing task visualization.

virtual makVrf::DtPointTaskVisualizationPtr DtSimComponent::pointTaskVisualization ( const DtString &  name)
protectedvirtual

Finds an existing or creates a new point task visualization with the given name.

virtual makVrf::DtLineTaskVisualizationPtr DtSimComponent::lineTaskVisualization ( const DtString &  name)
protectedvirtual

Finds an existing or creates a new line task visualization with the given name.

virtual makVrf::DtAreaTaskVisualizationPtr DtSimComponent::areaTaskVisualization ( const DtString &  name)
protectedvirtual

Finds an existing or creates a new area task visualization with the given name.

virtual makVrf::DtTextTaskVisualizationPtr DtSimComponent::textTaskVisualization ( const DtString &  name)
protectedvirtual

Finds an existing or creates a new text task visualization with the given name.

double DtSimComponent::calculateNextTaskVisTickTime ( ) const
protected

Determines the next time the task visualizations should be ticked.

DtVrfObjectStateRepository* DtSimComponent::localStateRepository ( )
protected

Gets the local state repository.

const DtVrfObjectStateRepository* DtSimComponent::localStateRepository ( ) const
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.

DtPropertyInterface * DtSimComponent::cachedNextFrameStateProperty ( DtPropertyInterface **  prop,
const DtString &  propName 
)
inlineprotected

Returns the cached property interface for a next-frame state property, looking it up and caching the result on first access.

Parameters
propPointer to the cache slot; populated on first call and reused on subsequent calls.
propNameName of the state property to look up.
Returns
The property interface, or null if the property does not exist.

References entity(), DtRwProperties::findPropertyInterface(), and DtLocalObject::nextFrameStateProperties().

Referenced by setCachedNextFrameStatePropertyValue().

template<typename ValType >
void DtSimComponent::setCachedNextFrameStatePropertyValue ( DtPropertyInterface **  prop,
const DtString &  propName,
ValType  value 
)
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.

Parameters
propPointer to the cache slot for the property interface.
propNameName of the state property to set.
valueThe new value to assign to the property.

References cachedNextFrameStateProperty(), and DtPropertyInterface::setPropertyValue().

const DtPropertyInterface * DtSimComponent::cachedCurrentFrameStateProperty ( const DtPropertyInterface **  prop,
const DtString &  propName 
) const
inlineprotected

Returns the cached read-only property interface for a current-frame state property, looking it up and caching the result on first access.

Parameters
propPointer to the cache slot; populated on first call and reused on subsequent calls.
propNameName of the state property to look up.
Returns
The const property interface, or null if the property does not exist.

References entity(), DtRwProperties::findPropertyInterface(), and DtLocalObject::stateProperties().

Referenced by getCachedCurrentFrameStatePropertyValue().

template<typename ValType >
bool DtSimComponent::getCachedCurrentFrameStatePropertyValue ( const DtPropertyInterface **  prop,
const DtString &  propName,
ValType &  value 
) const
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.

Parameters
propPointer to the cache slot for the property interface.
propNameName of the state property to read.
valueOutput parameter that receives the property value if found.
Returns
True if the property was found and its value was successfully retrieved, false otherwise.

References cachedCurrentFrameStateProperty(), objectConsoleWarn(), and DtPropertyInterface::propertyValue().

void DtSimComponent::addSimObjectPredicateCallback ( DtSimObjectReference  simObject,
DtVrfObjectPredicateCallbackFunction  function,
const DtVrfObjectPredicate &  predicate,
DtTime  evaluationPeriod = 0,
void *  userData = 0 
)
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.

Parameters
simObjectThe sim object to which the predicate is applied.
functionThe callback function to invoke when the predicate evaluates to true.
predicateThe predicate to evaluate each tick.
evaluationPeriodMinimum time in seconds between predicate evaluations (0 means every tick).
userDataOptional user data passed to the callback function.
void DtSimComponent::removeSimObjectPredicateCallback ( const DtSimObject *  simObject,
DtVrfObjectPredicateCallbackFunction  function,
const DtVrfObjectPredicate &  predicate,
DtTime  evaluationPeriod = 0,
void *  userData = 0 
)
protected

Removes a previously registered predicate callback for the specified sim object.

Parameters
simObjectThe sim object associated with the callback to remove.
functionThe callback function that was registered.
predicateThe predicate that was registered.
evaluationPeriodThe evaluation period that was specified when the callback was added.
userDataThe user data that was specified when the callback was added.
void DtSimComponent::invokeSimObjectPredicateCallbacks ( )
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.

virtual void DtSimComponent::clearPredicateCallbacks ( )
protectedvirtual

Clear out object predicate callback list. Should only be called upon queuing object for removal and deletion.

DtSimComponent& DtSimComponent::operator= ( const DtSimComponent &  orig)
private

assignment operator, not implemented

VRF4API_METHOD const DtSimulationServices* DtSimComponent::simManager ( ) const
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().

static VRF4API_METHOD DtSimComponent* DtSimComponent::MarkThreadSafe ( DtSimComponent *  comp)
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().

Member Data Documentation

DtLocalObject* DtSimComponent::myEntity
protected

The local object (entity) that owns this component.

DtComponentSystem* DtSimComponent::mySystem
protected

Pointer to the DtComponentSystem that this component belongs.

DtListItem* DtSimComponent::myListItem
protected

The list item node used for intrusive list membership in DtComponentList.

DtInputPortMap DtSimComponent::myInputPortList
protected

Map of input ports registered on this component, keyed by port name.

DtOutputPortMap DtSimComponent::myOutputPortList
protected

Map of output ports registered on this component, keyed by port name.

DtInputPortGroupMap DtSimComponent::myInputPortGroupList
protected

Map of input port groups registered on this component, keyed by group name.

DtOutputPortGroupMap DtSimComponent::myOutputPortGroupList
protected

Map of output port groups registered on this component, keyed by group name.

DtSimComponentFactory* DtSimComponent::myFactory
staticprotected

The factory used to create DtSimComponent instances.

int DtSimComponent::myPriority
protected

The connection priority of this component; lower values take precedence.

double DtSimComponent::myLastTickSimTime
protected

The simulation time at which this component was last ticked.

std::unique_ptr<DtTimedTickLogic> DtSimComponent::myTimedTickLogic
protected

The logic object that determines when this component should be ticked.

double DtSimComponent::myDT
protected

The time delta since the last tick, in seconds.

Referenced by dT().

bool DtSimComponent::myIsEnabled
protected

Indicates whether this component should be enabled for ticking or not.

bool DtSimComponent::myFirstTick
protected

Initialized to true in the constructor, set to false by the first call to postTick.

const DtComponentDescriptor* DtSimComponent::myComponentDescriptor
protected

The descriptor used to configure this component, typically read from an OPD file.

std::list<DtVrfProcessStateRepository*> DtSimComponent::myComponentPsrs
protected

List of PSRs created via createComponentPsr() that will be automatically unregistered and deleted when this component is destroyed.

makVrf::DtTaskVisualizationMap DtSimComponent::myTaskVisualizations
protected

The visualization objects to be drawn for this component.

double DtSimComponent::myNextTaskVisTickTime
protected

The next tick time for updating the task visualizations.

DtSymbolString DtSimComponent::myFullComponentName
mutableprotected

The fully-qualified name of this component, composed of the containing system hierarchy and component name.

DtSimulationServices* DtSimComponent::mySimServices
protected

Pointer to the simulation services, providing access to the clock, terrain, and messaging.

DtPredicateCallbackManager* DtSimComponent::myPredicateCallbackManager
protected

Manages the registered predicate callbacks that are invoked each tick.

boost::signals2::scoped_connection DtSimComponent::myIsClutterChangedConnection
protected

Connection to the entity's isClutterChanged signal, used to re-enable when clutter state changes.

bool DtSimComponent::myLocalDebug
protected

Local debug flag for this component instance. If true, debugActive() will return true.


The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)