![]() |
MAK RTIspy API Documentation for HLA 1.3
|
The RTI object maintains the internal RTI object state. More...
Collaboration diagram for DtRtiObject:Public Member Functions | |
| virtual | ~DtRtiObject () |
| Destructor. | |
| DtRtiObject (const DtRtiObject &orig) | |
| Copy constructor Copies object state only! | |
| const DtRtiObject & | operator= (const DtRtiObject &orig) |
| assignment operator Assigned object state only! | |
| void | initUpdateRates (const MAKRti::DtUpdateRateSetT rates) |
| push update rates into each object attribute | |
| virtual const char * | objName () const |
| Set/Get my name. | |
| virtual void | setObjName (const char *name) |
| virtual DtObjectClassHandle | actualClassHandle () const |
| Returns class handle of the object. | |
| virtual DtObjectClassHandle | knownClassHandle () const |
| Returns class handle indicating class by which the federate knows the object. | |
| virtual void | setKnownClass (DtObjectClassInfo *classInfo) |
| Set the known class. | |
| virtual DtObjectClassInfo * | knownClass () |
| Returns the known class of the object. | |
| virtual DtObjectClassInfo * | actualClass () |
| Returns the actual (registered) class of the object. | |
| virtual int | owned (DtAttributeHandle handle) const |
| Returns 1 if handle is owned by the object, 0 otherwise. | |
| virtual bool | ownPriviledgeToDelete () |
| Returns true if the priviledgeToDelete attribute is locally owned, false otherwise. | |
| virtual DtFederateHandle | ownerHandle () const |
| Set/Get the federate who owns the priviledgeToDelete attribute. | |
| virtual void | setOwnerHandle (DtFederateHandle handle) |
| virtual void | setIsKnown (bool isKnownValue) |
| Set/Get known status of object This status can not be determined by status of attributes. | |
| virtual bool | isKnown () const |
| DtUpdateType | updateType () const |
| Return the object's update type. | |
| virtual void | setDiscoveredClass (DtFederateHandle remoteFedHandle, DtObjectClassInfo const &classInfo) |
| Set the discovery class for the remote federate As a result, the remote federates subscription information is reset with this class and attribute advisory status may change. | |
| virtual void | removeDiscoveredClass (DtFederateHandle remoteFedHandle) |
| Remove the discovery class for the remote federate As a result, the remote federates subscription information is removed and attribute advisory status may change. | |
| virtual DtObjectClassHandle | discoveredClass (DtFederateHandle remoteFedHandle) |
| Get the discovery class for the remote federate. | |
| virtual bool | isDiscovered (DtFederateHandle remoteFedHandle) |
| Return bool: is object discovered by federate? | |
| virtual bool | hasBeenUpdated () const |
| Returns bool: has object been updated by this federate. | |
| virtual void | markAsUpdated () |
| Mark object as having been updated by this federate. | |
| virtual bool | hasBeenReflected () const |
| Returns bool: has object been reflected by this federate. | |
| virtual void | markAsReflected () |
| Mark object as having been reflected by this federate. | |
| virtual int | rtiOwned (DtAttributeHandle handle) const |
| Returns 1 if handle is owned by the RTI, 0 otherwise. | |
| virtual int | lrcManaged (DtAttributeHandle handle) const |
| Returns 1 if handle is unowned, and managed by the LRC, 0 otherwise. | |
| virtual void | takeFromLrc (const DtAttributeHandleSet &set) |
| Transfer ownership from local LRC to local federate. | |
| virtual void | giveToLrc (const DtAttributeHandleSet &set) |
| Transfer attributes from local federate to local LRC as unowned. | |
| virtual void | divestToLrc (const DtAttributeHandleSet &set) |
| Transfer attributes from local federate to local LRC as divested. | |
| virtual void | giveToRti (const DtAttributeHandleSet &set) |
| Transfer ownership to local RTI. | |
| virtual void | lrcUnmanage (const DtAttributeHandleSet &set) |
| Remove the elements of set from the set of attributes managed by the local LRC. | |
| virtual void | addRemoteRequest (const DtAttributeHandleSet &requestSet, DtFederateHandle fed) |
| Call to indicate that a remote federate has requested ownership of requestSet. | |
| virtual void | cancelDivest (const DtAttributeHandleSet &set) |
| Cancel a divest. | |
| virtual void | cancelRemoteRequest (const DtAttributeHandleSet &requestSet, DtFederateHandle fed) |
| Cancel the remote request. | |
| virtual void | cancelAllRemoteRequests (const DtAttributeHandleSet &requestSet) |
| Cancel all remote requests for supplied attributes. | |
| virtual void | removeCanceledRequests (DtAttributeHandleSet const &requestSet) |
| Get the cancelled request set. | |
| virtual DtAttributeHandleSet | canceledRequestSet () const |
| Get the cancelled request set. | |
| virtual bool | isRequestCanceled (DtAttributeHandle hand) |
| Returns boolean: is there a canceled request for the attribute for which the federate has not responded? | |
| virtual int | requestCount () const |
| Returns the number of request by all federates. | |
| virtual DtAttributeHandleSet const & | requestedAttributes () const |
| Return the set of requested attributes. | |
| virtual int | confirmCount () const |
| Returns the number of attributes pending divestiture confirmation. | |
| virtual DtAttributeHandleSet const & | pendingConfirmAttributes () const |
| Return the set of pedning confirmed attributes. | |
| virtual DtFederateHandle | pendingRemoteRequest (DtAttributeHandle hand) |
| Returns the handle of the federate that has most recently requested ownership of this attribute. | |
| virtual DtFederateHandle | pendingConfirm (DtAttributeHandle hand) const |
| Returns the handle of the federate that will get ownership of attribute when confirmed. | |
| virtual DtFederateHandle | releaseRequested (const DtAttributeHandleSet &inSet, DtAttributeHandleSet *releasedSet, bool keepForConfirm) |
| Calls to this method with the attributes provided in inSet will release and return in releaseSet any matching requested attributes from a single requesting federate, whose handle is the return argument. | |
| virtual DtFederateHandle | releaseConfirm (const DtAttributeHandleSet &inSet, DtAttributeHandleSet *releasedSet) |
| Calls to this method with the attributes provided in inSet will release and return in releaseSet any matching pending confirm attributes assigned to a single requesting federate, whose handle is the return argument. | |
| virtual DtAttributeHandleSet | requestedByFed (DtFederateHandle fed, bool includePendingConfirm=false) |
| Returns the set of attributes most recently requested by fed. | |
| virtual DtAttributeHandleSet | pendingConfirmByFed (DtFederateHandle fed) const |
| Returns only the current set of attributes that are pending confirm for fed. | |
| virtual DtFederateHandle | unavailablePendingRequests (DtAttributeHandleSet *invalidatedSet) |
| Get the next federate with requests that have become unavailable and the invalidated attrs. | |
| virtual void | releaseAttrs (const DtAttributeHandleSet &releaseSet) |
| Release ownership of these attributes. | |
| virtual void | takeAttrs (const DtAttributeHandleSet &takeSet) |
| Take ownership of these attributes. | |
| virtual bool | okToReceive (DtHandle attrHandle, float tolerance) |
| Update Rate Reduction receive-side test. | |
| virtual unsigned int | computeAttrOffset (DtHandle attrHandle) |
| Compute Update Rate Reduction send-side mcast destination address. | |
| virtual const DtAttributeHandleSet & | filterOwned (const DtAttributeHandleSet &inSet) const |
| Returns a set that contains those members of inSet that are owned by the federate. | |
| virtual int | expectedCount (const DtAhvps &inSet, DtHandle regSetHandle) const |
| Returns the number of attributes in inSet that are expected (subscribed) by the federate. | |
| virtual void | selectExpected (DtAhvps &outSet, const DtAhvps &inSet, DtHandle regSetHandle) const |
| Fills the outSet with the attributes in inSet that are expected (subscribed) by the federate. | |
| virtual void | removeUnexpected (DtAhvps &attrSet, DtHandle regSetHandle) const |
| Remove those members of attrSet that are not expected (subscribed) by the federate. | |
| virtual int | isOfActualClass (DtAttributeHandle handle) const |
| Return 1 if the object is of actualclass handle, or is of a class that's a subclass of handle. | |
| virtual int | isOfKnownClass (DtAttributeHandle handle) const |
| Return 1 if the object is of known class handle, or is of a class that's a subclass of handle. | |
| virtual int | expecting (DtAttributeHandle handle, DtHandle regSetHandle) const |
| Returns 1 if we are expected (subscribed to) this attribute, else 0. | |
| virtual const DtAttributeHandleSet & | lrcManagedAttrs () |
| Returns the set of unowned attributes managed by our LRC. | |
| virtual const DtAttributeHandleSet & | ownedAttrs () |
| Returns the set of owned attributes managed by our LRC. | |
| virtual const DtAttributeHandleSet & | rtiOwnedAttrs () |
| Returns the set of rti owned attributes managed by our LRC. | |
| virtual const DtAttributeHandleSet & | divestingAttrs () |
| Returns the set of attributes currently being divested. | |
| virtual const DtAttributeHandleSet & | divestedAttrs () |
| Returns the set of attributes unconditionaly divested and managed by LRC. | |
| virtual const DtAttributeHandleSet & | uncondRequestedAttrs () |
| Returns the set of attributes currently being unconditionally requested. | |
| virtual const DtAttributeHandleSet & | ifAvailRequestedAttrs () |
| Returns the set of attributes currently being if available requested. | |
| virtual int | inScope (DtAttributeHandle handle) const |
| Returns boolean: is attribute in scope? | |
| virtual const DtAttributeHandleSet & | inScopeAttrs () |
| Returns the set of attributes that are in scope. | |
| virtual bool | inScope () const |
| Returns boolean: is any attribute in scope? | |
| virtual void | addToScope (DtAttributeHandle handle) |
| Add the attributes to scope. | |
| virtual void | addToScope (const DtAttributeHandleSet &attrs) |
| Add the attributes to scope. | |
| virtual void | removeFromScope (DtAttributeHandle handle) |
| Remove the attributes from scope. | |
| virtual void | removeFromScope (const DtAttributeHandleSet &attrs) |
| Remove the attributes from scope. | |
| virtual void | acquireRemoteSubscriptions (const DtAttributeHandleSet &attrs, DtFomClassMgr *fom) |
| Collect the remote subscriptions that match these acquired attributes. | |
| virtual void | overrideDestinations (DtBitMask const &mask) |
| Override the destinations with this mask. | |
| virtual void | setAllDestinations () |
| Adds all destinations to all attributes. | |
| virtual void | divestRemoteSubscriptions (const DtAttributeHandleSet &attrs) |
| Remove the remote subscription status for each of these divested attrs. | |
| virtual bool | isUpdateOn (DtAttributeHandle handle) const |
| Returns boolean: is attribute update on? | |
| virtual DtAttributeHandleSet | updateOnAttrs () const |
| Returns the set of owned attributes that are turned on. | |
| virtual DtAttributeHandleSet | updateOffAttrs () const |
| Returns the set of owned attributes that are turned off. | |
| virtual bool | isUpdateOn () const |
| Returns boolean: is any attribute turned on? | |
| virtual MAKRti::DtTransportType | attrTransport (DtAttributeHandle theHandle) |
| Get attribute transport type from handle. | |
| virtual MAKRti::DtOrderType | attrOrder (DtAttributeHandle theHandle) |
| Get attribute order from handle. | |
| virtual void | setAttrTransport (DtAttributeHandle theHandle, MAKRti::DtTransportType transport) |
| Set attribute transport type from handle. | |
| virtual void | setAttrOrder (DtAttributeHandle theHandle, MAKRti::DtOrderType order) |
| Set attribute order from handle. | |
| virtual bool | attrHasDimensions (DtAttributeHandle attrHandle) const |
| Return bool: attribute has associated DDM dimensions (where DM default region has all dimensions)? | |
| virtual bool | decode (const char *buff, DtFomClassMgr *fom) |
| Decode object data for restore Return: data successfully decoded? | |
| void | setTimeToUseDestinations (MAKRti::DtTime timeVal) |
| Set time to use attribute destinations. | |
| MAKRti::DtTime | timeToUseDestinations () const |
| Get time to use attribute destinations. | |
| virtual void | setObjHandle (DtObjectInstanceHandle handle) |
| Set/Get my object handle. | |
| virtual DtObjectInstanceHandle | objHandle () const |
| Set/Get my object handle. | |
| virtual DtObjectInstanceHandle | id () const |
| Set/Get my object handle. | |
| virtual void | addRequest (const DtAttributeHandleSet &requestSet, bool ifAvail) |
| Add/Remove these to the set of attributes that we have requested, where the request is pending. | |
| virtual void | removeRequest (const DtAttributeHandleSet &set) |
| Add/Remove these to the set of attributes that we have requested, where the request is pending. | |
| virtual void | addDivesting (const DtAttributeHandleSet &divestSet) |
| Add/Remove these to the set of attributes for which a divest is pending. | |
| virtual void | removeDivesting (const DtAttributeHandleSet &set) |
| Add/Remove these to the set of attributes for which a divest is pending. | |
| virtual void | addPendingConfirm (const DtAttributeHandleSet &attrs, DtFederateHandle fed) |
| Add/Remove these to the set of attributes for which a confirm divest is pending. | |
| virtual void | removePendingConfirm (const DtAttributeHandleSet &requestSet, DtFederateHandle fed) |
| Add/Remove these to the set of attributes for which a confirm divest is pending. | |
| virtual void | removePendingConfirm (const DtAttributeHandleSet &set) |
| Add/Remove these to the set of attributes for which a confirm divest is pending. | |
| virtual bool | pendingUncondRequest (DtAttributeHandle hand) |
| Returns true if there's already a request pending that we've made for this attribute. | |
| virtual bool | pendingRequestIfAvail (DtAttributeHandle hand) |
| Returns true if there's already a request pending that we've made for this attribute. | |
| virtual void | remoteSubscribe (DtFederateHandle fedHandle, const DtAttributeHandleSet &attrs) |
| Add remote DM subscriptions. | |
| virtual void | remoteSubscribe (DtFederateHandle fedHandle, DtAttributeHandle attributeHandle) |
| Add remote DM subscriptions. | |
| virtual void | remotePassiveSubscribe (DtFederateHandle fedHandle, DtAttributeHandle attrHandle) |
| Add remote DM passive subscriptions. | |
| virtual void | remotePassiveSubscribe (DtFederateHandle fedHandle, const DtAttributeHandleSet &attrs) |
| Add remote DM passive subscriptions. | |
| virtual void | remoteUnsubscribe (DtFederateHandle fedHandle, DtAttributeHandle attrHandle) |
| Remove remote DM subscriptions. | |
| virtual void | remoteUnsubscribe (DtFederateHandle fedHandle, const DtAttributeHandleSet &attrs) |
| Remove remote DM subscriptions. | |
| virtual void | remoteUnsubscribe (DtFederateHandle fedHandle) |
| Remove remote DM subscriptions. | |
| virtual DtBitMask | getDestinations () const |
| Get the list of remote subscribers to the class = update destinations. | |
| virtual DtBitMask | getDestinations (const DtAttributeHandleSet &attrs) const |
| Get the list of remote subscribers to the class = update destinations. | |
| virtual DtBitMask | getDestinations (const DtAhvps &attrs) const |
| Get the list of remote subscribers to the class = update destinations. | |
| virtual void | turnUpdateOn (DtAttributeHandle handle) |
| Turn update on for given attribute(s) | |
| virtual void | turnUpdateOn (const DtAttributeHandleSet &attrs) |
| Turn update on for given attribute(s) | |
| virtual void | turnUpdateOff (DtAttributeHandle handle) |
| Turn update off for given attribute(s) | |
| virtual void | turnUpdateOff (const DtAttributeHandleSet &attrs) |
| Turn update off for given attribute(s) | |
| virtual DtHandle | regionSetHandle (DtAttributeHandle attrHandle) |
| virtual unsigned int | encodedLength () const |
| Encode object for save. | |
| virtual void | encode (const char *buff) |
| Encode object for save. | |
Static Public Member Functions | |
| static DtRtiObject * | createEmptyObject () |
| Creator for Empty Object. | |
| static DtRtiObject * | createRegisteredObject (DtObjectInstanceHandle id, const char *name, DtObjectClassInfo *classDesc, DtUpdateType updateType=DtUpdateFederateObject) |
| Creator for Registered Object. | |
| static DtRtiObject * | createDiscoveredObject (DtObjectInstanceHandle id, const char *name, DtObjectClassInfo *classDesc, DtObjectClassInfo *discoveredClass, DtUpdateType updateType=DtUpdateFederateObject) |
| Creator for Discovered Object. | |
| static void | setEmptyCreatorFunction (DtEmptyRtiObjectCreator fn) |
| Used to override the default Empty Creator Function. | |
| static void | setRegisteredCreatorFunction (DtRegisteredRtiObjectCreator fn) |
| Used to override the default Registered Creator Function. | |
| static void | setDiscoveredCreatorFunction (DtDiscoveredRtiObjectCreator fn) |
| Used to override the deafult Discovered Creator Function. | |
| static void | setUseDiscoveredClass (bool yesNo) |
| Set to false when not exchanging discovered class information The object will return the known class instead. | |
Protected Member Functions | |
| DtRtiObject () | |
| Constructors are now protected. | |
| DtRtiObject (DtObjectInstanceHandle id, const char *name, DtObjectClassInfo *classDesc, DtUpdateType updateType=DtUpdateFederateObject) | |
| Constructor for registered objects. | |
| DtRtiObject (DtObjectInstanceHandle id, const char *objName, DtObjectClassInfo *actualClass, DtObjectClassInfo *discoveredClass, DtUpdateType updateType=DtUpdateFederateObject) | |
| Constructor for discovered objects. | |
| DtRtiObject * | self () const |
| Casts away const-ness. | |
| virtual void | addRemoteSubscribe (DtFederateHandle fedHandle, DtAttributeHandle attrHandle) |
| Add the remote subscription of the given attribute by the given federate. | |
| virtual void | removeRemoteSubscribe (DtFederateHandle fedHandle, DtAttributeHandle attrHandle) |
| Remove the remote subscription of the given attribute by the given federate. | |
Protected Attributes | |
| DtObjectInstanceHandle | myId |
| The object instance handle. | |
| DtObjectClassHandle | myActualHandle |
| The actual object class handle. | |
| DtObjectClassHandle | myKnownHandle |
| The federate knows the object as this class. | |
| char * | myObjName |
| The object instance name. | |
| DtAttributeHandleSet | myOwnedSet |
| The set of attributes owned by this federate. | |
| DtAttributeHandleSet | myOutHandleSet |
| Temporary set holds owned attributes of a given set. | |
| bool | myIsKnown |
| Indicates if the federate knows about this object. | |
| DtFederateHandle | myOwnerHandle |
| The federate who owns the privilege to delete. | |
| bool | myHasBeenUpdated |
| Indicates if this object has been updated. | |
| bool | myHasBeenReflected |
| Indicates if this object has been reflected. | |
| DtUpdateType | myUpdateType |
| Indicates the update type. | |
| DtAttributeHandleSet | myLrcManagedSet |
| Union of attributes that are not owned by anyone and managed by LRC. | |
| DtAttributeHandleSet | myUnownedSet |
| Attributes never owned or divested through unpublish and managed by LRC. | |
| DtAttributeHandleSet | myDivestedSet |
| Attributes unconditionally divested and managed by LRC These attributes must be actively divested by the RTI. | |
| DtAttributeHandleSet | myRtiOwnedSet |
| Attributes owned by the RTI (MOM attributes) | |
| DtAttributeHandleSet | myPendingRequestSet |
| Attributes that we've requested, whose requests are pending. | |
| DtAttributeHandleSet | myPendingReqIfAvailSet |
| DtAttributeHandleSet | myDivestingSet |
| Attributes for which we have initiated a negotiated divestiture. | |
| DtRequestDatabase | myRemoteReqDb |
| Database of remote request information. These attributes are owned. | |
| DtObjectClassInfo * | myActualClass |
| Actual class info. | |
| DtObjectClassInfo * | myKnownClass |
| Known class info. | |
| DtAttributeHandleSet | myInScopeAttrs |
| Attribute in scope advisory status. | |
| DtAttributeHandleSet | myUpdateOnAttrs |
| Attribute update on advisory status. | |
| MAKRti::DtHashlist | myDiscoveredClass |
| For each remote federate that discovered this object, contains the discovery class handle. | |
| DtBitMask * | myOverideDestinationsMask |
| Create this bit mask to override remote subscrbie destinations. | |
| DtObjectAttrInfo * | myAttrs |
| List of attributes and information about them. | |
| unsigned | myNumAttrs |
| Number of attributes. | |
| MAKRti::DtTime | myTimeToUseDestinations |
| Time that smart forwarding destinations should take effect Before this time, RTI is waiting for discovery updates to determine destinations. | |
Static Protected Attributes | |
| static bool | theUseDiscoveredClass |
| Indicates if discovered class should be used. | |
| static DtEmptyRtiObjectCreator | theEmptyCreator = NULL |
| Static Creator Method for Empty RTI Objects. | |
| static DtRegisteredRtiObjectCreator | theRegisteredCreator = NULL |
| Static Creator Method for Registered RTI Objects. | |
| static DtDiscoveredRtiObjectCreator | theDiscoveredCreator = NULL |
| Static Creator Method for Discovered RTI Objects. | |
The RTI object maintains the internal RTI object state.
The RTI object maintains information about instance handle, instance name, registered/discovered class, attribute ownership/transport/order, advisories, etc.
|
protected |
Constructors are now protected.
New RTI objects will be created through creator functions. Constructor
Referenced by createDiscoveredObject(), createEmptyObject(), and createRegisteredObject().
|
protected |
Constructor for registered objects.
Set of owned attributes is initialized to the set of published attributes.
References DtObjectClassInfo::allAttrs(), DtObjectClassInfo::attrOrder(), DtObjectClassInfo::attrTransport(), DtDefaultRegionSetHandle, myActualClass, myAttrs, myLrcManagedSet, myNumAttrs, myOwnedSet, myUnownedSet, NULL, DtObjectClassInfo::numAttributes(), DtObjectAttrInfo::order, DtObjectClassInfo::publishedAttrs(), DtObjectAttrInfo::regionSet, DtObjectAttrInfo::regionSetHandle, DtObjectAttrInfo::remoteSubscriberMask, DtAttributeHandleSet::removeSetIntersection(), DtBitMask::reset(), and DtObjectAttrInfo::transport.
|
protected |
Constructor for discovered objects.
References DtObjectClassInfo::attrOrder(), DtObjectClassInfo::attrTransport(), DtDefaultRegionSetHandle, myActualClass, myAttrs, myNumAttrs, NULL, DtObjectClassInfo::numAttributes(), DtObjectAttrInfo::order, DtObjectAttrInfo::regionSet, DtObjectAttrInfo::regionSetHandle, DtObjectAttrInfo::remoteSubscriberMask, DtBitMask::reset(), and DtObjectAttrInfo::transport.
|
virtual |
Destructor.
References myAttrs, myObjName, myOverideDestinationsMask, and NULL.
| DtRtiObject::DtRtiObject | ( | const DtRtiObject & | orig | ) |
Copy constructor Copies object state only!
References getDestinations(), myAttrs, myNumAttrs, myOverideDestinationsMask, DtObjectAttrInfo::order, DtObjectAttrInfo::regionSet, DtObjectAttrInfo::regionSetHandle, DtObjectAttrInfo::remoteSubscriberMask, and DtObjectAttrInfo::transport.
|
virtual |
Collect the remote subscriptions that match these acquired attributes.
References DtFomClassMgr::classByHandle(), discoveredClass(), myDiscoveredClass, NULL, remoteSubscribe(), and DtObjectClassInfo::remoteSubscription().
Referenced by DtObjectMgr::acquireAttrs(), and DtObjectMgr::processNotifyAcquire().
|
virtual |
Returns the actual (registered) class of the object.
References myActualClass.
Referenced by createDiscoveredObject(), createRegisteredObject(), decode(), encode(), getDestinations(), DtObjectMgr::notifyDivestedAttributes(), DtObjectMgr::sendBestEffortUpdateMsg(), DtObjectMgr::sendPendingRegister(), DtObjectMgr::sendReliableUpdateMsg(), and DtObjectMgr::sendUpdate().
|
virtual |
Returns class handle of the object.
References myActualHandle.
Referenced by DtObjectMgr::acquireAttrs(), encode(), DtObjectMgr::processNotifyAcquire(), DtObjectMgr::releaseAllAttributes(), DtObjectMgr::sendBestEffortUpdateMsg(), and DtObjectMgr::sendReliableUpdateMsg().
|
virtual |
Add/Remove these to the set of attributes for which a divest is pending.
References myDivestingSet, and DtAttributeHandleSet::setUnion().
Referenced by DtObjectMgr::divestOwnership().
|
virtual |
Add/Remove these to the set of attributes for which a confirm divest is pending.
References DtRequestDatabase::addPendingConfirm(), and myRemoteReqDb.
Referenced by decode(), and DtObjectMgr::processAcquire().
|
virtual |
Call to indicate that a remote federate has requested ownership of requestSet.
If an attribute is passed to this function more than once, the more recent request takes precedence. That is, when it's time to divest, we will divest the attribute to the most recent requesting federate.
References DtRequestDatabase::addRemoteRequest(), and myRemoteReqDb.
Referenced by decode(), and DtObjectMgr::processAcquire().
|
protectedvirtual |
Add the remote subscription of the given attribute by the given federate.
References DtRtiMtdDestinationList::destinationIndex(), myAttrs, DtObjectAttrInfo::remoteSubscriberMask, DtObjectAttrInfo::remoteSubscriptions, DtBitMask::setBit(), DtRtiMsg::smartForwardingEnabled(), and turnUpdateOn().
Referenced by remoteSubscribe().
|
virtual |
Add/Remove these to the set of attributes that we have requested, where the request is pending.
References myPendingReqIfAvailSet, myPendingRequestSet, DtAttributeHandleSet::removeSetIntersection(), and DtAttributeHandleSet::setUnion().
Referenced by DtObjectMgr::acquireAttrs().
|
virtual |
Add the attributes to scope.
References DtAttributeHandleSet::add(), and myInScopeAttrs.
|
virtual |
Add the attributes to scope.
References myInScopeAttrs, and DtAttributeHandleSet::setUnion().
|
virtual |
Return bool: attribute has associated DDM dimensions (where DM default region has all dimensions)?
Referenced by DtObjectMgr::sendUpdate().
|
virtual |
Get attribute order from handle.
References myAttrs, and DtObjectAttrInfo::order.
Referenced by DtObjectMgr::deleteObj(), encode(), and takeAttrs().
|
virtual |
Get attribute transport type from handle.
References myAttrs, and DtObjectAttrInfo::transport.
Referenced by encode(), DtObjectMgr::processOwnership(), and takeAttrs().
|
virtual |
Cancel all remote requests for supplied attributes.
References DtRequestDatabase::cancelAllRemoteRequest(), and myRemoteReqDb.
Referenced by decode(), and DtObjectMgr::processResign().
|
virtual |
Cancel a divest.
References removeDivesting(), and removePendingConfirm().
Referenced by DtObjectMgr::cancelDivest().
|
virtual |
Get the cancelled request set.
References DtRequestDatabase::canceledRequestSet(), and myRemoteReqDb.
Referenced by decode(), and DtObjectMgr::processAcquire().
|
virtual |
Cancel the remote request.
References DtRequestDatabase::cancelRemoteRequest(), and myRemoteReqDb.
Referenced by DtObjectMgr::processCancelAcquire().
|
virtual |
Compute Update Rate Reduction send-side mcast destination address.
References myAttrs, and DtObjectAttrInfo::offsets.
|
virtual |
Returns the number of attributes pending divestiture confirmation.
References DtRequestDatabase::confirmCount(), and myRemoteReqDb.
|
static |
Creator for Discovered Object.
References actualClass(), discoveredClass(), DtRtiObject(), id(), objName(), theDiscoveredCreator, and updateType().
Referenced by DtObjectMgr::discoverObject(), and DtObjectMgr::processGiveToLrc().
|
static |
Creator for Empty Object.
Is used to create empty object for restore, then decode is called on the object.
References DtRtiObject(), and theEmptyCreator.
Referenced by DtObjectMgr::restoreObjectList().
|
static |
Creator for Registered Object.
References actualClass(), DtRtiObject(), id(), objName(), theRegisteredCreator, and updateType().
Referenced by DtObjectMgr::registerObj().
|
virtual |
Decode object data for restore Return: data successfully decoded?
References actualClass(), DtAttributeHandleSet::add(), addPendingConfirm(), addRemoteRequest(), cancelAllRemoteRequests(), DtObjectPacket::canceledRequests, canceledRequestSet(), DtFomClassMgr::classByHandle(), DtObjectPacket::classHandle, DtRequestDatabase::clearAll(), DtObjectPacket::divested, DtObjectPacket::divesting, DtDefaultRegionSetHandle, DtRtiSaveObjectType, DtObjectPacket::header, DtObjectPacket::inScope, DtObjectPacket::isKnown, DtObjectPacket::knownHandle, DtObjectPacket::lrcManaged, myActualClass, myActualHandle, myAttrs, myDiscoveredClass, myDivestedSet, myDivestingSet, DtObjectPacket::myId, myId, myInScopeAttrs, myIsKnown, myKnownClass, myKnownHandle, myLrcManagedSet, myNumAttrs, myObjName, myOwnedSet, myPendingReqIfAvailSet, myPendingRequestSet, myRemoteReqDb, myRtiOwnedSet, myUnownedSet, myUpdateOnAttrs, NULL, DtObjectClassInfo::numAttributes(), DtObjectPacket::numPendingConfirm, DtObjectPacket::numRemoteDiscover, DtObjectPacket::numRemoteRequest, DtObjectPacket::order, DtObjectAttrInfo::order, DtObjectPacket::owned, DtObjectPacket::ownerHandle, DtSaveDataHeader::packetType, DtObjectPacket::pendingRequest, DtObjectPacket::pendingRequestAvail, DtObjectAttrInfo::regionSet, DtObjectAttrInfo::regionSetHandle, DtObjectPacket::rtiOwned, setDiscoveredClass(), setOwnerHandle(), DtObjectPacket::trans, DtObjectAttrInfo::transport, DtObjectPacket::unowned, and DtObjectPacket::updateOn.
Referenced by DtObjectMgr::restoreObjectList().
|
virtual |
Get the discovery class for the remote federate.
References knownClassHandle(), myDiscoveredClass, and theUseDiscoveredClass.
Referenced by acquireRemoteSubscriptions(), createDiscoveredObject(), DtObjectMgr::remotePassiveSubscribe(), and DtObjectMgr::remoteSubscribe().
|
virtual |
Returns the set of attributes unconditionaly divested and managed by LRC.
References myDivestedSet.
Referenced by DtObjectMgr::notifyDivestedAttributes().
|
virtual |
Returns the set of attributes currently being divested.
References myDivestingSet.
Referenced by DtObjectMgr::cancelDivest(), DtObjectMgr::divestOwnership(), DtObjectMgr::processAcquire(), and DtObjectMgr::processCancelAcquire().
|
virtual |
Remove the remote subscription status for each of these divested attrs.
References DtAttributeHandleSet::getHandle(), myAttrs, DtObjectAttrInfo::remoteSubscriberMask, DtObjectAttrInfo::remoteSubscriptionRegions, DtObjectAttrInfo::remoteSubscriptionRegionsByFederate, DtObjectAttrInfo::remoteSubscriptions, DtBitMask::reset(), DtAttributeHandleSet::size(), and turnUpdateOff().
Referenced by DtObjectMgr::divestOwnership(), DtObjectMgr::processAcquire(), and DtObjectMgr::releaseOwnership().
|
virtual |
Transfer attributes from local federate to local LRC as divested.
References myDivestedSet, myLrcManagedSet, releaseAttrs(), and DtAttributeHandleSet::setUnion().
Referenced by DtObjectMgr::divestOwnership().
|
virtual |
Encode object for save.
References actualClass(), actualClassHandle(), attrOrder(), attrTransport(), DtObjectPacket::canceledRequests, DtRequestDatabase::canceledRequestSet(), DtObjectPacket::classHandle, DtRequestDatabase::confirmCount(), DtObjectPacket::divested, DtObjectPacket::divesting, DtRtiSaveObjectType, DtAttributeHandleSet::encode(), encodedLength(), DtObjectPacket::header, DtObjectPacket::inScope, DtObjectPacket::isKnown, isKnown(), knownClassHandle(), DtObjectPacket::knownHandle, DtObjectPacket::lrcManaged, myDiscoveredClass, myDivestedSet, myDivestingSet, DtObjectPacket::myId, myInScopeAttrs, myLrcManagedSet, myOwnedSet, myPendingReqIfAvailSet, myPendingRequestSet, myRemoteReqDb, myRtiOwnedSet, myUnownedSet, myUpdateOnAttrs, DtObjectPacket::nameLength, DtObjectClassInfo::numAttributes(), DtObjectPacket::numPendingConfirm, DtObjectPacket::numRemoteDiscover, DtObjectPacket::numRemoteRequest, objName(), DtObjectPacket::order, DtObjectPacket::owned, DtObjectPacket::ownerHandle, ownerHandle(), DtSaveDataHeader::packetSize, DtSaveDataHeader::packetType, pendingConfirm(), pendingRemoteRequest(), DtObjectPacket::pendingRequest, DtObjectPacket::pendingRequestAvail, requestCount(), DtObjectPacket::rtiOwned, DtObjectPacket::trans, DtObjectPacket::unowned, and DtObjectPacket::updateOn.
Referenced by DtObjectMgr::saveObjectList().
|
virtual |
Encode object for save.
References DtRequestDatabase::confirmCount(), myDiscoveredClass, myRemoteReqDb, objName(), and requestCount().
Referenced by encode(), and DtObjectMgr::saveObjectList().
|
virtual |
Returns the number of attributes in inSet that are expected (subscribed) by the federate.
References expecting().
|
virtual |
Returns 1 if we are expected (subscribed to) this attribute, else 0.
References DtAttributeHandleSet::isMember(), myKnownClass, and DtObjectClassInfo::subscribedAttrs().
Referenced by expectedCount(), removeUnexpected(), and selectExpected().
|
virtual |
Returns a set that contains those members of inSet that are owned by the federate.
References myOutHandleSet, myOwnedSet, and DtAttributeHandleSet::setIntersection().
Referenced by DtObjectMgr::processRequest(), DtObjectMgr::provideAttrValueUpdate(), and DtObjectMgr::sendPendingRequestAttributes().
|
virtual |
Get the list of remote subscribers to the class = update destinations.
References actualClass(), DtObjectClassInfo::getForcedDestinations(), DtRtiMtdDestinationList::getMaxDestinations(), myAttrs, myNumAttrs, myOverideDestinationsMask, DtObjectAttrInfo::remoteSubscriberMask, DtBitMask::reset(), and timeToUseDestinations().
Referenced by DtRtiObject(), operator=(), DtObjectMgr::sendBestEffortUpdateMsg(), and DtObjectMgr::sendReliableUpdateMsg().
|
virtual |
Get the list of remote subscribers to the class = update destinations.
References actualClass(), DtObjectClassInfo::getForcedDestinations(), DtAttributeHandleSet::getHandle(), DtRtiMtdDestinationList::getMaxDestinations(), myAttrs, myOverideDestinationsMask, DtObjectAttrInfo::remoteSubscriberMask, DtBitMask::reset(), DtAttributeHandleSet::size(), and timeToUseDestinations().
|
virtual |
Get the list of remote subscribers to the class = update destinations.
References actualClass(), DtObjectClassInfo::getForcedDestinations(), DtRtiMtdDestinationList::getMaxDestinations(), myAttrs, myOverideDestinationsMask, DtObjectAttrInfo::remoteSubscriberMask, DtBitMask::reset(), and timeToUseDestinations().
|
virtual |
Transfer attributes from local federate to local LRC as unowned.
References myLrcManagedSet, myUnownedSet, releaseAttrs(), and DtAttributeHandleSet::setUnion().
Referenced by DtObjectMgr::divestOwnership(), DtObjectMgr::processGiveToLrc(), and DtObjectMgr::releaseOwnership().
|
virtual |
Transfer ownership to local RTI.
References myDivestedSet, myLrcManagedSet, myOwnedSet, myRtiOwnedSet, myUnownedSet, DtAttributeHandleSet::removeSetIntersection(), and DtAttributeHandleSet::setUnion().
|
virtual |
Returns bool: has object been reflected by this federate.
References myHasBeenReflected.
|
virtual |
Returns bool: has object been updated by this federate.
References myHasBeenUpdated.
|
virtual |
Set/Get my object handle.
References myId.
Referenced by DtObjectMgr::acquireAttrs(), createDiscoveredObject(), createRegisteredObject(), DtObjectMgr::objectWasCreatedByFederate(), DtObjectMgr::prepareToResign(), and DtObjectMgr::processResign().
|
virtual |
Returns the set of attributes currently being if available requested.
References myPendingReqIfAvailSet.
Referenced by DtObjectMgr::isAcquistionPending(), DtObjectMgr::localDeleteObj(), DtObjectMgr::prepareToResign(), DtObjectMgr::processNotifyAcquire(), DtObjectMgr::processOwnership(), and DtObjectMgr::throwIfAcquisitionPending().
| void DtRtiObject::initUpdateRates | ( | const MAKRti::DtUpdateRateSetT | rates | ) |
push update rates into each object attribute
References myAttrs, myNumAttrs, and DtObjectAttrInfo::offsets.
Referenced by DtObjectMgr::registerObj().
|
virtual |
Returns boolean: is attribute in scope?
References DtAttributeHandleSet::isMember(), and myInScopeAttrs.
|
virtual |
Returns boolean: is any attribute in scope?
References myInScopeAttrs, and DtAttributeHandleSet::size().
|
virtual |
Returns the set of attributes that are in scope.
References myInScopeAttrs.
|
virtual |
Return bool: is object discovered by federate?
References myDiscoveredClass, NULL, and theUseDiscoveredClass.
Referenced by DtObjectMgr::remoteUnsubscribe().
|
virtual |
References myIsKnown.
Referenced by encode(), and DtObjectMgr::restoreObjectList().
|
virtual |
Return 1 if the object is of actualclass handle, or is of a class that's a subclass of handle.
References DtObjectClassInfo::isOfClass(), and myActualClass.
Referenced by DtObjectMgr::processRequest().
|
virtual |
Return 1 if the object is of known class handle, or is of a class that's a subclass of handle.
References DtObjectClassInfo::isOfClass(), and myKnownClass.
|
virtual |
Returns boolean: is there a canceled request for the attribute for which the federate has not responded?
References DtRequestDatabase::isRequestCanceled(), and myRemoteReqDb.
Referenced by DtObjectMgr::releaseResponse().
|
virtual |
Returns boolean: is attribute update on?
References DtAttributeHandleSet::isMember(), and myUpdateOnAttrs.
|
virtual |
Returns boolean: is any attribute turned on?
References myUpdateOnAttrs, and DtAttributeHandleSet::size().
|
virtual |
Returns the known class of the object.
References myKnownClass.
Referenced by DtObjectMgr::acquireAttrs(), DtObjectMgr::cancelAcquire(), DtObjectMgr::cancelDivest(), DtObjectMgr::divestOwnership(), okToReceive(), DtObjectMgr::processDivest(), DtObjectMgr::processNotifyAcquire(), DtObjectMgr::processUpdate(), DtObjectMgr::queryOwnership(), DtObjectMgr::releaseResponse(), DtObjectMgr::requestObjectUpdate(), and takeAttrs().
|
virtual |
Returns class handle indicating class by which the federate knows the object.
References myKnownHandle.
Referenced by discoveredClass(), DtObjectMgr::discoverObject(), DtObjectMgr::divestAllInstances(), encode(), DtObjectMgr::objectClass(), DtObjectMgr::sendPendingStopUpdates(), and DtObjectMgr::throwIfAcquisitionPending().
|
virtual |
Returns 1 if handle is unowned, and managed by the LRC, 0 otherwise.
References DtAttributeHandleSet::isMember(), and myUnownedSet.
Referenced by DtObjectMgr::processQueryOwner(), and DtObjectMgr::queryOwnership().
|
virtual |
Returns the set of unowned attributes managed by our LRC.
References myLrcManagedSet.
Referenced by DtObjectMgr::acquireAttrs(), DtObjectMgr::processAcquire(), DtObjectMgr::processOwnership(), DtObjectMgr::registerObj(), DtObjectMgr::releaseAllAttributes(), and DtObjectMgr::restoreObjectList().
|
virtual |
Remove the elements of set from the set of attributes managed by the local LRC.
References myDivestedSet, myLrcManagedSet, myUnownedSet, and DtAttributeHandleSet::removeSetIntersection().
Referenced by DtObjectMgr::processAcquire(), and takeFromLrc().
|
virtual |
Mark object as having been reflected by this federate.
References myHasBeenReflected.
Referenced by DtObjectMgr::processUpdate().
|
virtual |
Mark object as having been updated by this federate.
References myHasBeenUpdated.
|
virtual |
Set/Get my object handle.
References myId.
Referenced by DtObjectMgr::acquireAttrs(), DtObjectMgr::addAllObj(), DtObjectMgr::addKnownObj(), DtObjectMgr::addLrcManagedObj(), DtObjectMgr::addOwnedObj(), DtObjectMgr::deleteAllOwnedObjects(), DtObjectMgr::deleteObj(), DtObjectMgr::destroyObjectLists(), DtObjectMgr::divestOwnership(), DtObjectMgr::notifyDivestedAttributes(), DtObjectMgr::objectHandle(), DtObjectMgr::prepareToResign(), DtObjectMgr::processAcquire(), DtObjectMgr::processDelete(), DtObjectMgr::processDiscover(), DtObjectMgr::processGiveToLrc(), DtObjectMgr::processNotifyAcquire(), DtObjectMgr::processOwnership(), DtObjectMgr::processRequest(), DtObjectMgr::processRequestDiscover(), DtObjectMgr::provideAttrValueUpdate(), DtObjectMgr::registerObj(), DtObjectMgr::releaseAllAttributes(), DtObjectMgr::releaseOwnership(), DtObjectMgr::removeAllObj(), DtObjectMgr::removeFromAllLists(), DtObjectMgr::removeKnownObj(), DtObjectMgr::removeLrcManagedObj(), DtObjectMgr::removeOwnedObj(), DtObjectMgr::retainTsoDeletedObj(), DtObjectMgr::retainTsoRemovedObj(), DtObjectMgr::sendBestEffortUpdateMsg(), DtObjectMgr::sendPendingRequestAttributes(), DtObjectMgr::sendPendingStartUpdates(), DtObjectMgr::sendPendingStopUpdates(), DtObjectMgr::sendRegisterMsg(), DtObjectMgr::sendReliableUpdateMsg(), and DtObjectMgr::setAttributeTransportType().
|
virtual |
Set/Get my name.
References myObjName.
Referenced by DtObjectMgr::addAllObj(), DtObjectMgr::addKnownObj(), DtObjectMgr::addLrcManagedObj(), DtObjectMgr::addOwnedObj(), createDiscoveredObject(), createRegisteredObject(), DtObjectMgr::deleteObj(), encode(), encodedLength(), DtObjectMgr::objectName(), DtObjectMgr::prepareToResign(), DtObjectMgr::releaseAllAttributes(), DtObjectMgr::removeAllObj(), DtObjectMgr::removeKnownObj(), DtObjectMgr::removeLrcManagedObj(), DtObjectMgr::removeOwnedObj(), DtObjectMgr::sendBestEffortUpdateMsg(), and DtObjectMgr::sendReliableUpdateMsg().
|
virtual |
Update Rate Reduction receive-side test.
References DtObjectClassInfo::attrByHandle(), knownClass(), myAttrs, DtObjectAttrInfo::myNextReceiveTime, and DtAttrInfo::subscribedRate().
Referenced by DtUpdateMsg::fillFromNetAttrs(), and DtUpdateMsg::fillFromNetBigAttrs().
| const DtRtiObject & DtRtiObject::operator= | ( | const DtRtiObject & | orig | ) |
assignment operator Assigned object state only!
References getDestinations(), myActualClass, myActualHandle, myAttrs, myDivestedSet, myDivestingSet, myHasBeenReflected, myHasBeenUpdated, myId, myIsKnown, myKnownClass, myKnownHandle, myLrcManagedSet, myNumAttrs, myObjName, myOverideDestinationsMask, myOwnedSet, myPendingReqIfAvailSet, myPendingRequestSet, myRtiOwnedSet, myUnownedSet, DtObjectAttrInfo::order, DtObjectAttrInfo::regionSet, DtObjectAttrInfo::regionSetHandle, DtObjectAttrInfo::remoteSubscriberMask, and DtObjectAttrInfo::transport.
|
virtual |
Override the destinations with this mask.
References myOverideDestinationsMask.
|
virtual |
Returns 1 if handle is owned by the object, 0 otherwise.
References DtAttributeHandleSet::isMember(), and myOwnedSet.
Referenced by DtObjectMgr::acquireAttrs(), DtObjectMgr::cancelAcquire(), DtObjectMgr::cancelDivest(), DtObjectMgr::divestOwnership(), ownPriviledgeToDelete(), DtObjectMgr::processOwnership(), DtObjectMgr::processQueryOwner(), DtObjectMgr::queryOwnership(), DtObjectMgr::releaseResponse(), remotePassiveSubscribe(), remoteSubscribe(), DtObjectMgr::sendUpdate(), DtObjectMgr::setAttributeOrderType(), and DtObjectMgr::setAttributeTransportType().
|
virtual |
Returns the set of owned attributes managed by our LRC.
References myOwnedSet.
Referenced by DtObjectMgr::acquireAttrs(), DtObjectMgr::divestAllInstances(), DtObjectMgr::divestOwnership(), DtObjectMgr::localDeleteObj(), DtObjectMgr::prepareToResign(), DtObjectMgr::processAcquire(), DtObjectMgr::processCancelAcquire(), DtObjectMgr::processLocDelete(), DtObjectMgr::processNotifyAcquire(), DtObjectMgr::processOwnership(), DtObjectMgr::processResign(), DtObjectMgr::releaseAllAttributes(), DtObjectMgr::releaseOwnership(), removeDiscoveredClass(), DtObjectMgr::restoreObjectList(), DtObjectMgr::sendPendingStartUpdates(), DtObjectMgr::sendPendingStopUpdates(), DtObjectMgr::sendRegisterMsg(), and setDiscoveredClass().
|
virtual |
Set/Get the federate who owns the priviledgeToDelete attribute.
References myOwnerHandle.
Referenced by encode(), DtObjectMgr::processDiscover(), and DtObjectMgr::processResign().
|
virtual |
Returns true if the priviledgeToDelete attribute is locally owned, false otherwise.
References DtPrivilegeToDelete, and owned().
Referenced by DtObjectMgr::deleteAllOwnedObjects(), DtObjectMgr::deleteObj(), DtObjectMgr::numObjectsOwned(), DtObjectMgr::prepareToResign(), DtObjectMgr::processNotifyAcquire(), and DtObjectMgr::registerObj().
|
virtual |
Returns the handle of the federate that will get ownership of attribute when confirmed.
References myRemoteReqDb, and DtRequestDatabase::pendingConfirm().
Referenced by encode().
|
virtual |
Return the set of pedning confirmed attributes.
References myRemoteReqDb, and DtRequestDatabase::pendingConfirmAttributes().
Referenced by DtObjectMgr::processAcquire().
|
virtual |
Returns only the current set of attributes that are pending confirm for fed.
References myRemoteReqDb, and DtRequestDatabase::pendingConfirmByFed().
Referenced by DtObjectMgr::processAcquire().
|
virtual |
Returns the handle of the federate that has most recently requested ownership of this attribute.
References myRemoteReqDb, and DtRequestDatabase::pendingRemoteRequest().
Referenced by encode(), and DtObjectMgr::releaseResponse().
|
virtual |
Returns true if there's already a request pending that we've made for this attribute.
References DtAttributeHandleSet::isMember(), and myPendingReqIfAvailSet.
|
virtual |
Returns true if there's already a request pending that we've made for this attribute.
References DtAttributeHandleSet::isMember(), and myPendingRequestSet.
Referenced by DtObjectMgr::acquireAttrs(), and DtObjectMgr::cancelAcquire().
|
virtual |
References DtDefaultRegionSetHandle, myAttrs, and DtObjectAttrInfo::regionSet.
Referenced by DtObjectMgr::sendUpdate(), and setDiscoveredClass().
|
virtual |
Release ownership of these attributes.
References myOwnedSet, myRemoteReqDb, DtRequestDatabase::removeCanceledRequests(), removeDivesting(), DtRequestDatabase::removeRemoteRequest(), and DtAttributeHandleSet::removeSetIntersection().
Referenced by divestToLrc(), giveToLrc(), DtObjectMgr::processAcquire(), releaseConfirm(), and releaseRequested().
|
virtual |
Calls to this method with the attributes provided in inSet will release and return in releaseSet any matching pending confirm attributes assigned to a single requesting federate, whose handle is the return argument.
The method should be called repeatedly until it returns 0 to release all the matching attributes. Not all the attributes may match a pending confirm.
References myRemoteReqDb, releaseAttrs(), and DtRequestDatabase::releaseConfirm().
|
virtual |
Calls to this method with the attributes provided in inSet will release and return in releaseSet any matching requested attributes from a single requesting federate, whose handle is the return argument.
The method should be called repeatedly until it returns 0 to release all the matching attributes. In 1516 negotiated divest, these attributes are not fully released. Set the bool value to move them to a pending confirm status (see releaseConfirm below). Not all the attributes may match a request.
References myRemoteReqDb, releaseAttrs(), and DtRequestDatabase::releaseRequested().
Referenced by DtObjectMgr::divestOwnership(), DtObjectMgr::releaseOwnership(), and DtObjectMgr::releaseResponse().
|
virtual |
Add remote DM passive subscriptions.
References DtRtiMtdDestinationList::destinationIndex(), DtIsFound(), myAttrs, owned(), DtObjectAttrInfo::remoteSubscriberMask, DtObjectAttrInfo::remoteSubscriptions, DtBitMask::setBit(), and DtRtiMsg::smartForwardingEnabled().
Referenced by remotePassiveSubscribe().
|
virtual |
Add remote DM passive subscriptions.
References DtAttributeHandleSet::getHandle(), remotePassiveSubscribe(), and DtAttributeHandleSet::size().
|
virtual |
Add remote DM subscriptions.
References addRemoteSubscribe(), DtIsFound(), DtAttributeHandleSet::getHandle(), myAttrs, myNumAttrs, owned(), DtObjectAttrInfo::remoteSubscriptions, and DtAttributeHandleSet::size().
Referenced by acquireRemoteSubscriptions(), and setDiscoveredClass().
|
virtual |
Add remote DM subscriptions.
References addRemoteSubscribe(), DtIsFound(), myAttrs, and owned().
|
virtual |
Remove remote DM subscriptions.
References removeRemoteSubscribe().
Referenced by DtObjectMgr::remoteSubscribe(), and remoteUnsubscribe().
|
virtual |
Remove remote DM subscriptions.
References DtAttributeHandleSet::getHandle(), remoteUnsubscribe(), and DtAttributeHandleSet::size().
|
virtual |
Remove remote DM subscriptions.
References myNumAttrs, and remoteUnsubscribe().
|
virtual |
Get the cancelled request set.
References myRemoteReqDb, and DtRequestDatabase::removeCanceledRequests().
|
virtual |
Remove the discovery class for the remote federate As a result, the remote federates subscription information is removed and attribute advisory status may change.
References DtRtiMtdDestinationList::destinationIndex(), DtAttributeHandleSet::getHandle(), myAttrs, myDiscoveredClass, ownedAttrs(), DtObjectAttrInfo::remoteSubscriberMask, DtObjectAttrInfo::remoteSubscriptionRegions, DtObjectAttrInfo::remoteSubscriptionRegionsByFederate, DtObjectAttrInfo::remoteSubscriptions, DtBitMask::setBit(), DtAttributeHandleSet::size(), DtRtiMsg::smartForwardingEnabled(), and turnUpdateOff().
Referenced by DtObjectMgr::processResign().
|
virtual |
Add/Remove these to the set of attributes for which a divest is pending.
References myDivestingSet, and DtAttributeHandleSet::removeSetIntersection().
Referenced by cancelDivest(), and releaseAttrs().
|
virtual |
Remove the attributes from scope.
References myInScopeAttrs, and DtAttributeHandleSet::remove().
|
virtual |
Remove the attributes from scope.
References myInScopeAttrs, and DtAttributeHandleSet::removeSetIntersection().
|
virtual |
Add/Remove these to the set of attributes for which a confirm divest is pending.
References myRemoteReqDb, and DtRequestDatabase::removePendingConfirm().
Referenced by cancelDivest(), and DtObjectMgr::processAcquire().
|
virtual |
Add/Remove these to the set of attributes for which a confirm divest is pending.
References myRemoteReqDb, and DtRequestDatabase::removePendingConfirm().
|
protectedvirtual |
Remove the remote subscription of the given attribute by the given federate.
References DtRtiMtdDestinationList::destinationIndex(), DtIsFound(), myAttrs, DtObjectAttrInfo::remoteSubscriberMask, DtObjectAttrInfo::remoteSubscriptionRegions, DtObjectAttrInfo::remoteSubscriptions, DtBitMask::setBit(), DtRtiMsg::smartForwardingEnabled(), and turnUpdateOff().
Referenced by remoteUnsubscribe().
|
virtual |
Add/Remove these to the set of attributes that we have requested, where the request is pending.
References myPendingReqIfAvailSet, myPendingRequestSet, and DtAttributeHandleSet::removeSetIntersection().
Referenced by DtObjectMgr::divestOwnership(), DtObjectMgr::processConfirmCancelAcquire(), and takeAttrs().
|
virtual |
Remove those members of attrSet that are not expected (subscribed) by the federate.
References DtAttributeHandleSet::add(), expecting(), DtAttributeHandleSet::getHandle(), and DtAttributeHandleSet::size().
|
virtual |
Returns the number of request by all federates.
References myRemoteReqDb, and DtRequestDatabase::requestCount().
Referenced by encode(), and encodedLength().
|
virtual |
Return the set of requested attributes.
References myRemoteReqDb, and DtRequestDatabase::requestedAttributes().
Referenced by DtObjectMgr::processAcquire().
|
virtual |
Returns the set of attributes most recently requested by fed.
References myRemoteReqDb, and DtRequestDatabase::requestedByFed().
Referenced by DtObjectMgr::processAcquire(), DtObjectMgr::processCancelAcquire(), and DtObjectMgr::processResign().
|
virtual |
Returns 1 if handle is owned by the RTI, 0 otherwise.
References DtAttributeHandleSet::isMember(), and myRtiOwnedSet.
Referenced by DtObjectMgr::destroyObjectLists(), DtObjectMgr::processQueryOwner(), DtObjectMgr::queryOwnership(), and DtObjectMgr::saveObjectList().
|
virtual |
Returns the set of rti owned attributes managed by our LRC.
References myRtiOwnedSet.
Referenced by DtObjectMgr::acquireAttrs(), DtObjectMgr::localDeleteObj(), DtObjectMgr::prepareToResign(), and DtObjectMgr::releaseAllAttributes().
|
virtual |
Fills the outSet with the attributes in inSet that are expected (subscribed) by the federate.
References expecting().
|
inlineprotected |
Casts away const-ness.
|
virtual |
Adds all destinations to all attributes.
References myAttrs, DtObjectAttrInfo::remoteSubscriberMask, and DtBitMask::reset().
Referenced by DtObjectMgr::acquireAttrs(), DtObjectMgr::processNotifyAcquire(), and DtObjectMgr::registerObj().
|
virtual |
Set attribute order from handle.
References myAttrs, and DtObjectAttrInfo::order.
Referenced by DtObjectMgr::setAttributeOrderType(), and takeAttrs().
|
virtual |
Set attribute transport type from handle.
References myAttrs, and DtObjectAttrInfo::transport.
Referenced by DtObjectMgr::setAttributeTransportType(), and takeAttrs().
|
virtual |
Set the discovery class for the remote federate As a result, the remote federates subscription information is reset with this class and attribute advisory status may change.
References DtRtiMtdDestinationList::destinationIndex(), DtDefaultRegionSetHandle, DtAttributeHandleSet::getHandle(), DtObjectClassInfo::handle(), DtAttributeHandleSet::isMember(), myAttrs, myDiscoveredClass, ownedAttrs(), regionSetHandle(), remoteSubscribe(), DtObjectAttrInfo::remoteSubscriberMask, DtObjectClassInfo::remoteSubscription(), DtObjectAttrInfo::remoteSubscriptionRegions, DtObjectAttrInfo::remoteSubscriptionRegionsByFederate, DtObjectAttrInfo::remoteSubscriptions, DtBitMask::setBit(), DtAttributeHandleSet::size(), DtRtiMsg::smartForwardingEnabled(), and turnUpdateOff().
Referenced by decode().
|
static |
Used to override the deafult Discovered Creator Function.
References DtBindCreator(), and theDiscoveredCreator.
|
static |
Used to override the default Empty Creator Function.
References DtBindCreator(), and theEmptyCreator.
|
virtual |
Set/Get known status of object This status can not be determined by status of attributes.
References myIsKnown.
Referenced by DtObjectMgr::addKnownObj(), and DtObjectMgr::removeKnownObj().
|
virtual |
Set the known class.
References DtObjectClassInfo::handle(), myKnownClass, and myKnownHandle.
|
virtual |
Set/Get my object handle.
References myId.
|
virtual |
References myObjName.
|
virtual |
References myOwnerHandle.
Referenced by decode(), DtObjectMgr::processGiveToLrc(), DtObjectMgr::processRegister(), DtObjectMgr::registerObj(), and DtObjectMgr::resetOwner().
|
static |
Used to override the default Registered Creator Function.
References DtBindCreator(), and theRegisteredCreator.
| void DtRtiObject::setTimeToUseDestinations | ( | MAKRti::DtTime | timeVal | ) |
Set time to use attribute destinations.
References myTimeToUseDestinations.
Referenced by DtObjectMgr::acquireAttrs(), DtObjectMgr::processNotifyAcquire(), and DtObjectMgr::registerObj().
|
static |
Set to false when not exchanging discovered class information The object will return the known class instead.
References theUseDiscoveredClass.
Referenced by DtObjectMgr::DtObjectMgr().
|
virtual |
Take ownership of these attributes.
References attrOrder(), attrTransport(), knownClass(), myOwnedSet, removeRequest(), setAttrOrder(), setAttrTransport(), and DtAttributeHandleSet::setUnion().
Referenced by DtObjectMgr::processNotifyAcquire(), and takeFromLrc().
|
virtual |
Transfer ownership from local LRC to local federate.
References lrcUnmanage(), and takeAttrs().
Referenced by DtObjectMgr::acquireAttrs().
| MAKRti::DtTime DtRtiObject::timeToUseDestinations | ( | ) | const |
Get time to use attribute destinations.
References myTimeToUseDestinations.
Referenced by getDestinations().
|
virtual |
Turn update off for given attribute(s)
References myUpdateOnAttrs, and DtAttributeHandleSet::remove().
Referenced by divestRemoteSubscriptions(), removeDiscoveredClass(), removeRemoteSubscribe(), and setDiscoveredClass().
|
virtual |
Turn update off for given attribute(s)
References myUpdateOnAttrs, and DtAttributeHandleSet::removeSetIntersection().
|
virtual |
Turn update on for given attribute(s)
References DtAttributeHandleSet::add(), and myUpdateOnAttrs.
Referenced by addRemoteSubscribe().
|
virtual |
Turn update on for given attribute(s)
References myUpdateOnAttrs, and DtAttributeHandleSet::setUnion().
|
virtual |
Get the next federate with requests that have become unavailable and the invalidated attrs.
References myRemoteReqDb, and DtRequestDatabase::unavailablePendingRequests().
|
virtual |
Returns the set of attributes currently being unconditionally requested.
References myPendingRequestSet.
Referenced by DtObjectMgr::isAcquistionPending(), DtObjectMgr::localDeleteObj(), DtObjectMgr::prepareToResign(), DtObjectMgr::processNotifyAcquire(), and DtObjectMgr::throwIfAcquisitionPending().
|
virtual |
Returns the set of owned attributes that are turned off.
References myOwnedSet, myUpdateOnAttrs, and DtAttributeHandleSet::removeSetIntersection().
|
virtual |
Returns the set of owned attributes that are turned on.
References myOwnedSet, myUpdateOnAttrs, and DtAttributeHandleSet::setIntersection().
Referenced by DtObjectMgr::acquireAttrs(), DtObjectMgr::autoProvideAttrValueUpdate(), DtObjectMgr::processNotifyAcquire(), and DtObjectMgr::processResign().
| DtUpdateType DtRtiObject::updateType | ( | ) | const |
Return the object's update type.
References myUpdateType.
Referenced by createDiscoveredObject(), createRegisteredObject(), DtObjectMgr::sendBestEffortUpdateMsg(), DtObjectMgr::sendRegisterMsg(), DtObjectMgr::sendReliableUpdateMsg(), and DtObjectMgr::sendUpdate().
|
protected |
Actual class info.
Referenced by actualClass(), decode(), DtRtiObject(), isOfActualClass(), and operator=().
|
protected |
The actual object class handle.
Referenced by actualClassHandle(), decode(), and operator=().
|
protected |
List of attributes and information about them.
Referenced by addRemoteSubscribe(), attrOrder(), attrTransport(), computeAttrOffset(), decode(), divestRemoteSubscriptions(), DtRtiObject(), getDestinations(), initUpdateRates(), okToReceive(), operator=(), regionSetHandle(), remotePassiveSubscribe(), remoteSubscribe(), removeDiscoveredClass(), removeRemoteSubscribe(), setAllDestinations(), setAttrOrder(), setAttrTransport(), setDiscoveredClass(), and ~DtRtiObject().
|
protected |
For each remote federate that discovered this object, contains the discovery class handle.
Referenced by acquireRemoteSubscriptions(), decode(), discoveredClass(), encode(), encodedLength(), isDiscovered(), removeDiscoveredClass(), and setDiscoveredClass().
|
protected |
Attributes unconditionally divested and managed by LRC These attributes must be actively divested by the RTI.
Referenced by decode(), divestedAttrs(), divestToLrc(), encode(), giveToRti(), lrcUnmanage(), and operator=().
|
protected |
Attributes for which we have initiated a negotiated divestiture.
These attributes are still owned, though.
Referenced by addDivesting(), decode(), divestingAttrs(), encode(), operator=(), and removeDivesting().
|
protected |
Indicates if this object has been reflected.
Referenced by hasBeenReflected(), markAsReflected(), and operator=().
|
protected |
Indicates if this object has been updated.
Referenced by hasBeenUpdated(), markAsUpdated(), and operator=().
|
protected |
The object instance handle.
Referenced by decode(), id(), objHandle(), operator=(), and setObjHandle().
|
protected |
Attribute in scope advisory status.
Referenced by addToScope(), decode(), encode(), inScope(), inScopeAttrs(), and removeFromScope().
|
protected |
Indicates if the federate knows about this object.
Referenced by decode(), isKnown(), operator=(), and setIsKnown().
|
protected |
Known class info.
Referenced by decode(), expecting(), isOfKnownClass(), knownClass(), operator=(), and setKnownClass().
|
protected |
The federate knows the object as this class.
Referenced by decode(), knownClassHandle(), operator=(), and setKnownClass().
|
protected |
Union of attributes that are not owned by anyone and managed by LRC.
Referenced by decode(), divestToLrc(), DtRtiObject(), encode(), giveToLrc(), giveToRti(), lrcManagedAttrs(), lrcUnmanage(), and operator=().
|
protected |
Number of attributes.
Referenced by decode(), DtRtiObject(), getDestinations(), initUpdateRates(), operator=(), remoteSubscribe(), and remoteUnsubscribe().
|
protected |
The object instance name.
Referenced by decode(), objName(), operator=(), setObjName(), and ~DtRtiObject().
|
protected |
Temporary set holds owned attributes of a given set.
Referenced by filterOwned().
|
protected |
Create this bit mask to override remote subscrbie destinations.
Referenced by DtRtiObject(), getDestinations(), operator=(), overrideDestinations(), and ~DtRtiObject().
|
protected |
The set of attributes owned by this federate.
Referenced by decode(), DtRtiObject(), encode(), filterOwned(), giveToRti(), operator=(), owned(), ownedAttrs(), releaseAttrs(), takeAttrs(), updateOffAttrs(), and updateOnAttrs().
|
protected |
The federate who owns the privilege to delete.
Referenced by ownerHandle(), and setOwnerHandle().
|
protected |
Referenced by addRequest(), decode(), encode(), ifAvailRequestedAttrs(), operator=(), pendingRequestIfAvail(), and removeRequest().
|
protected |
Attributes that we've requested, whose requests are pending.
All members are unowned.
Referenced by addRequest(), decode(), encode(), operator=(), pendingUncondRequest(), removeRequest(), and uncondRequestedAttrs().
|
protected |
Database of remote request information. These attributes are owned.
Referenced by addPendingConfirm(), addRemoteRequest(), cancelAllRemoteRequests(), canceledRequestSet(), cancelRemoteRequest(), confirmCount(), decode(), encode(), encodedLength(), isRequestCanceled(), pendingConfirm(), pendingConfirmAttributes(), pendingConfirmByFed(), pendingRemoteRequest(), releaseAttrs(), releaseConfirm(), releaseRequested(), removeCanceledRequests(), removePendingConfirm(), requestCount(), requestedAttributes(), requestedByFed(), and unavailablePendingRequests().
|
protected |
Attributes owned by the RTI (MOM attributes)
Referenced by decode(), encode(), giveToRti(), operator=(), rtiOwned(), and rtiOwnedAttrs().
|
protected |
Time that smart forwarding destinations should take effect Before this time, RTI is waiting for discovery updates to determine destinations.
Referenced by setTimeToUseDestinations(), and timeToUseDestinations().
|
protected |
Attributes never owned or divested through unpublish and managed by LRC.
Referenced by decode(), DtRtiObject(), encode(), giveToLrc(), giveToRti(), lrcManaged(), lrcUnmanage(), and operator=().
|
protected |
Attribute update on advisory status.
Referenced by decode(), encode(), isUpdateOn(), turnUpdateOff(), turnUpdateOn(), updateOffAttrs(), and updateOnAttrs().
|
protected |
Indicates the update type.
Referenced by updateType().
|
staticprotected |
Static Creator Method for Discovered RTI Objects.
Referenced by createDiscoveredObject(), and setDiscoveredCreatorFunction().
|
staticprotected |
Static Creator Method for Empty RTI Objects.
Referenced by createEmptyObject(), and setEmptyCreatorFunction().
|
staticprotected |
Static Creator Method for Registered RTI Objects.
Referenced by createRegisteredObject(), and setRegisteredCreatorFunction().
|
staticprotected |
Indicates if discovered class should be used.
Referenced by discoveredClass(), isDiscovered(), and setUseDiscoveredClass().