![]() |
VR-Forces 5.0.3 Developer's Guide
|
This singleton class keeps track of components that should be added to remote, non VR-Forces entities.
Public Types | |
| enum | EvaluationReadinessState { Remove = -1, NotReady = 0, Ready } |
| typedef DtRemoteComponentConfigurationBuilder *(* | CreatorFcn )(DtRemoteComponentAttachmentManager *, DtLocalObjectManager *) |
| typedef std::map< DtUUID, boost::signals2::connection > | RecentArrivalsMap |
| typedef RecentArrivalsMap::iterator | ArrivalIterator |
| typedef RecentArrivalsMap::const_iterator | const_ArrivalIterator |
Protected Member Functions | |
| DtRemoteComponentAttachmentManager () | |
| virtual void | doWork () |
Private Member Functions | |
| DtRemoteComponentAttachmentManager (DtRemoteComponentAttachmentManager &) | |
| const DtRemoteComponentAttachmentManager & | operator= (const DtRemoteComponentAttachmentManager &) |
| typedef DtRemoteComponentConfigurationBuilder*(* DtRemoteComponentAttachmentManager::CreatorFcn)(DtRemoteComponentAttachmentManager *, DtLocalObjectManager *) |
| typedef std::map<DtUUID, boost::signals2::connection> DtRemoteComponentAttachmentManager::RecentArrivalsMap |
| typedef RecentArrivalsMap::iterator DtRemoteComponentAttachmentManager::ArrivalIterator |
| typedef RecentArrivalsMap::const_iterator DtRemoteComponentAttachmentManager::const_ArrivalIterator |
|
protected |
Default Constructor. Do not use.
| DtRemoteComponentAttachmentManager::DtRemoteComponentAttachmentManager | ( | DtLocalObjectManager * | pObjMgr | ) |
Constructor.
|
virtual |
Destructor.
|
private |
unused, this is a singleton class
|
virtual |
adds the global object designator to the list of recent arrivals
|
virtual |
Arrange for component attachment through myRemoteConfigBuilder.
|
virtual |
Returns true if the object is a remote component that is attached.
|
virtual |
Return myAttachmentList, a list of attachment rules.
|
virtual |
Return myAttachmentList, a list of attachment rules.
|
inline |
Get/Set the DtRemoteComponentConfigurationBuilder factory function.
References myRemoteConfigBuilderCreatorFcn.
|
inline |
Get/Set the DtRemoteComponentConfigurationBuilder factory function.
References myRemoteConfigBuilderCreatorFcn.
|
virtual |
Purge all lists, return memory to the heap. This also calls clearRecentArrivals();.
|
virtual |
Create myAttachmentRules, override to instantiate derived type. Example name: "remote-configurations" This does not set myAttachmentRules. Rather this is called from initialize(), and initialize() assigns the results to myAttachmentRules. createAttachmentRules() will only be called if myAttachmentRules is NULL.
|
virtual |
Empty the recent arrivals list.
|
virtual |
Inspect the the given object, determine if it's ready to be evaluated for attachment. Returns: Remove - this object shouldn't be evaluated, and should be removed. NotReady - there isn't enough information for evaluation. true - the object is ready to be evaluated for remote component attachment.
|
virtual |
Inspect the given object, and perform exclusion checks to eliminate the object from consideration. This is called at the beginning of checkReadinessCriteria(). The base class rejects objects that are local to the simulation, and objects that are simulated by VR-Forces. Returns true to signal reject. Returns false to accept object for further evaluation.
|
virtual |
Calls clear(), deletes myAttachmentRules, sets to NULL.
|
virtual |
Examine if remote component attachment should take place, and call attach(). The evaluation order is: entity identifier, marking text, object type.
|
virtual |
Purge the remote component attachment system, then reinitialize from the file.
|
virtual |
Removes this object from the recent arrivals queue.
|
virtual |
For all confirmed attachments, reset VRF-simulated flag.
|
virtual |
reset VRF-simulated flag.
|
virtual |
Checks next scheduled tick, call doWork()
|
inline |
Get/Set the tick interval for the attachment manager.
References myTickRate.
|
inline |
Get/Set the tick interval for the attachment manager.
References myTickRate.
|
virtual |
Reset the reflected object back to non-vrf simulated, if it is listed in myConfirmedAttachments.
|
protectedvirtual |
|
private |
|
protected |
keep track of what entities contain attachments
|
protected |
Next scheduled tick time.
|
protected |
This list captures the IDs of newly discovered simulated things.
|
protected |
This helps parse configuration files and add components to remote entities. The remote builder is used when objects are discovered, and an attachment entry exists for the object in myAttachmentRules. Call "setBuilderCreatorFcn()" to cause the Remote Attachment Manager to use a different kind of builder. DtMtlRemoteComponentConfigurationBuilder is use by default.
|
protected |
This creator function is used by initialize() to create myRemoteConfigBuilder. By default, it is set to use DtMtlRemoteComponentConfigurationBuilder.
Referenced by builderCreatorFcn(), and setBuilderCreatorFcn().
|
protected |
This is a worker key, to facilitate searching without requiring allocations.
|
protected |
Tick Rate, default 5.0 secs.
Referenced by setTickRate(), and tickRate().
|
protected |
This is a pointer to the singleton's parent object.
|
protected |
The attachment list is a container of attachment rules.
|
protected |
|
protected |