![]() |
MAK RTIspy API Documentation for HLA Evolved
|
Collaboration diagram for DtObjectClassInfo:Public Member Functions | |
| DtObjectClassInfo (const char *name, DtObjectClassInfo *base, DtObjectClassHandle handle, DtSharingType sharing, const MAKRti::DtString &semantics) | |
| Constructors. | |
| DtObjectClassInfo (const DtObjectClassInfo &orig) | |
| virtual | ~DtObjectClassInfo () |
| Destructor. | |
| DtObjectClassInfo & | operator= (const DtObjectClassInfo &orig) |
| Assignment operator (not implemented) | |
| virtual void | setFomType (MAKRti::DtFomType type) |
| Set/Get the FOM type. | |
| virtual MAKRti::DtFomType | fomType () const |
| virtual DtAttrInfo * | addAttr (const char *attrName, MAKRti::DtTransportType transport, MAKRti::DtOrderType order, DtSharingType sharingType, DtFomUpdateType updateType, const MAKRti::DtString &updateCondition, DtOwnershipType ownership, const MAKRti::DtString &semantics, bool addSorted) |
| Adds an attribute to the class. Used when reading Fed file. | |
| virtual DtAttrInfo * | addAttr (const char *attrName, MAKRti::DtTransportType transport, MAKRti::DtOrderType order, DtSpaceHandle space, DtSharingType sharingType, DtFomUpdateType updateType, const MAKRti::DtString &updateCondition, DtOwnershipType ownership, const MAKRti::DtString &semantics, bool addSorted) |
| Adds an attribute to the class. Used when reading Fed file. | |
| virtual const char * | name () const |
| Return class name, as in FOM. | |
| virtual DtSharingType | sharing () const |
| sharing type access/mutate | |
| virtual void | setSharing (DtSharingType share) |
| virtual const char * | semantics () const |
| semantics access/mutate | |
| virtual void | setSemantics (const MAKRti::DtString &sem) |
| virtual bool | isName (const char *name) |
| Return boolean: name matches? Compare depends on FOM type: insensitive for 1.3 and sensitive for 1516 Root name is prepended to name if necessary. | |
| virtual bool | isFullName (const char *name) |
| Root name is required. | |
| virtual DtObjectClassHandle | handle () const |
| Set/get class handle. | |
| virtual void | setHandle (DtObjectClassHandle handleValue) |
| virtual DtObjectClassHandle | discoveredHandle () const |
| Set/get discovered class handle This value is always 0 if isUnknown() is false. | |
| virtual void | setDiscoveredHandle (DtObjectClassHandle handleValue) |
| virtual DtObjectClassInfo * | baseClass () const |
| Return pointer to base class descriptor. | |
| virtual void | setBaseClass (DtObjectClassInfo *base) |
| Set base class (User should never need to set this) | |
| virtual int | isOfClass (DtObjectClassHandle handle) const |
| Returns 1 if this class is handle or is a subclass of handle. | |
| virtual MAKRti::DtList * | subclasses () |
| Return list of subclasses. | |
| virtual void | addSubclass (DtObjectClassInfo *sub) |
| Add a subclass (called during FED processing) | |
| virtual DtAttrInfo * | attrByName (const char *theName) |
| Get Attribute descriptor by name or handle. | |
| virtual DtAttrInfo * | attrByHandle (const DtAttributeHandle theHandle) |
| virtual const DtAttrInfo * | attrByName (const char *theName) const |
| const versions | |
| virtual const DtAttrInfo * | attrByHandle (const DtAttributeHandle theHandle) const |
| virtual DtAttributeHandle | attrHandle (const char *theName) const |
| Get attribute handle from name. | |
| virtual char * | attrName (DtAttributeHandle theHandle) const |
| Get attribute name from handle. | |
| virtual MAKRti::DtTransportType | attrTransport (DtAttributeHandle theHandle) const |
| Get attribute transport type from handle. | |
| virtual MAKRti::DtOrderType | attrOrder (DtAttributeHandle theHandle) const |
| Get attribute order from handle. | |
| virtual DtSpaceHandle | attrSpace (DtAttributeHandle theHandle) const |
| Get attribute space from handle. | |
| virtual DtAttrVector const & | attrs () const |
| Returns the set of attributes. | |
| virtual int | numAttributes () const |
| Returns the number of attributes. | |
| virtual const DtAttributeHandleSet & | allAttrs () const |
| Returns the full set of attributes. | |
| virtual void | publish (DtAttributeHandleSet const &attributeList, DtObjectMgr *objMgr, bool isReplacement, bool isRepublish) |
| Publish and unpublish Publishing an empty list with replacement enabled results in unpublish from all class attributes. | |
| virtual void | unpublishAttributes (DtAttributeHandleSet const &attributeList, bool implicitUnpublishPrivilegeToDelete, DtObjectMgr *objMgr) |
| virtual bool | published () const |
| Return boolean: is class published? | |
| virtual void | subscribe (const DtAttributeHandleSet &attributeList, bool isPassiveValue, bool isReplacement=true) |
| Subscribe and unsubscribe. | |
| virtual void | unsubscribeClass () |
| virtual void | unsubscribeAttributes (DtAttributeHandleSet const &attributeList) |
| virtual bool | subscribed () const |
| Return boolean: is class subscribed? | |
| virtual bool | isPassive () const |
| Return boolean: is subscription passive? | |
| virtual const bool | isSubscribed (DtAttributeHandle attrHandle, DtRegionHandle regSetHandle) const |
| Using default region handle indicates check for DM subscription only. | |
| virtual const bool | isActiveSubscribed (DtAttributeHandle attrHandle, DtRegionHandle regSetHandle) const |
| virtual DtAttributeHandleSet const & | subscribedAttrs () const |
| Returns the set of DM subscribed attributes. | |
| virtual DtAttributeHandleSet const & | subscribedActiveAttrs () const |
| virtual DtAttributeHandleSet const & | subscribedPassiveAttrs () const |
| virtual const DtAttributeHandleSet & | subscribedAttrs (DtHandle regSetHandle) const |
| Returns all subscribed attributes if handle is the default region set Otherwise, just those subscribed attributes that match with the remote publication region. | |
| virtual DtAttributeHandleSet const & | subscribedActiveAttrs (DtHandle regSetHandle) const |
| virtual const DtAttributeHandleSet & | publishedAttrs () const |
| Returns the set of published attributes. | |
| virtual const DtAttributeHandleSet & | relevantAttrs () const |
| Returns the set of relevant attributes: Attributes that could cause object discovery at a remote federate if they are published or become published. | |
| virtual void | remoteSubscribe (const DtAttributeHandleSet &attrs, DtFederateHandle fedHandle, bool isReplacement, DtObjectMgr *objMgr) |
| Do bookkeeping associated with a remote federate subscription. | |
| virtual void | remotePassiveSubscribe (const DtAttributeHandleSet &attrs, DtFederateHandle fedHandle, bool replacement, DtObjectMgr *objMgr) |
| Process remote passive subscription to add pending send register for any objects that could be discovered by it Replacement forces updates to any relevance changes from active to passive. | |
| virtual void | remoteUnsubscribeAttributes (DtFederateHandle fedHandle, const DtAttributeHandleSet &attrs, DtObjectMgr *objMgr) |
| Do bookkeeping associated with a remote federate unsubscription. | |
| virtual void | removeSubscriptions (DtFederateHandle fedHandle, DtObjectMgr *objMgr, bool isResigning=false) |
| Remove all subscriptions from the given federate. | |
| virtual int | numRemoteFederatesSubscribed () |
| Returns number of remote federates subscribed to this class. | |
| virtual bool | remoteFederateIsSubscribed (DtFederateHandle fedHandle) const |
| Returns true if the remote federate is subscribed to this class. | |
| virtual DtAttributeHandleSet const * | remoteSubscription (DtFederateHandle fedHandle) const |
| Returns remote federate's subscribed attributes. | |
| virtual const MAKRti::DtHashList & | subscribedFederates () const |
| Returns a list of remote federate subscribed attributes. | |
| virtual bool | relevant () const |
| Returns true if the class is relevant: registered object could cause discovery at remote federate, false otherwise. | |
| virtual bool | relevant (DtAttributeHandle) const |
| Returns true if the attribute is relevant: attribute instance could cause discovery at remote federate, false otherwise. | |
| virtual const MAKRti::DtInetAddr & | destinationAddress () const |
| Set/Get the destination to send to when using DM Filtering Inclusive sets recurse for all derived classes. | |
| virtual const MAKRti::DtInetAddr & | destinationDevice () const |
| virtual void | setDestination (MAKRti::DtInetAddr addr, MAKRti::DtInetAddr devAddr, bool inclusive, MAKRti::DtInetAddr oldAddr, MAKRti::DtInetAddr oldDevAddr) |
| virtual void | setForcedDestinations (DtBitMask const &mask, MAKRti::DtTime delay) |
| Set a forced destination mask Temporarily set a forced destinations mask for given delay A negative time delay will force the destinations indefinitely. | |
| virtual bool | getForcedDestinations (DtBitMask &mask) const |
| Get the forced destination mask if active Returns true if the forced destination mask is active. | |
| virtual void | setSubscribedRate (float rate, const MAKRti::DtString &name, bool inclusive) |
| Apply objects subscribed rate to attrInfo's. | |
| virtual float | maxSubscribedRate () |
| virtual const MAKRti::DtString & | maxSubscribedRateName () |
| virtual bool | save (DtRtiSaveFile &file) |
| save and restore | |
| virtual bool | restore (DtObjectClassPacket *packet, DtRtiSaveFile &file) |
| virtual void | print () const |
| Print the contents. | |
| virtual bool | sameAncestry (const DtObjectClassInfo *) const |
| Test equality. | |
| bool | operator== (const DtObjectClassInfo &other) const |
| bool | operator!= (const DtObjectClassInfo &other) const |
| bool | isScaffolding () const |
| Determines whether the class is a scaffolding class. | |
| bool | isUnknown () const |
| Determines whether this class is an unknown class, merely present to indicate that it is in other FOM modules not in use by this federate. | |
| void | setIsUnknown (bool unknown) |
Protected Member Functions | |
| virtual void | throwIfNotDefined (const DtAttributeHandleSet &attributeList) |
| Throws AttributeNotDefined exception if any member of attrs is not a valid attribute handle. | |
| virtual void | addRemoteSubscription (DtFederateHandle fedHandle, const DtAttributeHandleSet &attrs, bool isReplacement) |
| Add/delete remote subscription to this class by indicated federate Replaces attribute set if already subscribed. | |
| virtual void | deleteRemoteSubscription (DtFederateHandle fedHandle, DtAttributeHandleSet const &attrs) |
| virtual void | addRemoteSubscription (DtFederateHandle fedHandle, DtAttributeHandle attrHandle) |
| Attribute subscription is added to existing subscribed set (created does not exist) | |
| virtual void | updateRelevance (const DtAttributeHandleSet &attrs, DtFederateHandle fedHandle, DtObjectMgr *objMgr, bool isResigning=false) |
| Update the relevance field of this class and all subclasses, based on a particular remote and current subscriptions. | |
| DtObjectClassInfo * | self () const |
| virtual DtAttrInfo * | addAttrSorted (const char *attrName, MAKRti::DtTransportType transport, MAKRti::DtOrderType order, DtSharingType sharingType, DtFomUpdateType updateType, const MAKRti::DtString &updateCondition, DtOwnershipType ownership, const MAKRti::DtString &semantics) |
| Insert Attributes in sorted or unsorted (deprecated) order. | |
| virtual DtAttrInfo * | addAttrUnsorted (const char *attrName, MAKRti::DtTransportType transport, MAKRti::DtOrderType order, DtSharingType sharingType, DtFomUpdateType updateType, const MAKRti::DtString &updateCondition, DtOwnershipType ownership, const MAKRti::DtString &semantics) |
| virtual DtAttrInfo * | addAttrUnsorted (const char *attrName, MAKRti::DtTransportType transport, MAKRti::DtOrderType order, DtSpaceHandle space, DtSharingType sharingType, DtFomUpdateType updateType, const MAKRti::DtString &updateCondition, DtOwnershipType ownership, const MAKRti::DtString &semantics) |
| Insert Attributes in sorted or unsorted (deprecated) order. | |
| virtual DtAttrInfo * | addAttrSorted (const char *attrName, MAKRti::DtTransportType transport, MAKRti::DtOrderType order, DtSpaceHandle space, DtSharingType sharingType, DtFomUpdateType updateType, const MAKRti::DtString &updateCondition, DtOwnershipType ownership, const MAKRti::DtString &semantics) |
| virtual bool | intersectPublished (DtObjectClassInfo *objClass, const DtAttributeHandleSet &listToIntersect) |
| Run an intersection between the list of attributes and all published attributes including children. | |
Static Protected Member Functions | |
| static bool | sameObjectClass (const DtObjectClassInfo &, const DtObjectClassInfo &) |
| Test class for equality (including attributes) | |
| static bool | sameAttrs (const std::vector< DtAttrInfo > &, const std::vector< DtAttrInfo > &) |
| Test attributes for equality. | |
Protected Attributes | |
| MAKRti::DtString | myName |
| DtSharingType | mySharing |
| MAKRti::DtString | mySemantics |
| DtObjectClassHandle | myHandle |
| DtObjectClassHandle | myDiscoveredHandle |
| MAKRti::DtFomType | myFomType |
| bool | mySubscribed |
| bool | myPublished |
| bool | myIsPassive |
| bool | myExplicitPubPrivToDel |
| bool | myExplicitUnpubPrivToDel |
| DtObjectClassInfo * | myBase |
| MAKRti::DtList | mySubclasses |
| MAKRti::DtHashlist | myRemoteSubscriptions |
| bool | myRegsOn |
| Have we most recently told the federate to turn on or off registration. | |
| DtAttrVector | myAttrs |
| int | myFirstAttribute |
| DtAttributeHandleSet | myAttrSet |
| DtAttributeHandleSet | myPublishedSet |
| DtAttributeHandleSet | mySubscribedSet |
| DtAttributeHandleSet | mySubscribedActiveSet |
| DtAttributeHandleSet | mySubscribedPassiveSet |
| DtAttributeHandleSet | myRelevantSet |
| Attributes that could cause object discovery at a remote federate if they are published or become published. | |
| MAKRti::DtInetAddr | myAddr |
| MAKRti::DtInetAddr | myDevAddr |
| DtBitMask * | myForceDestinationsMask |
| Create this bit mask to temporarily force destinations after publish. | |
| MAKRti::DtTime | myForceDestinationsTime |
| MAKRti::DtClock | myClock |
| bool | myIsUnknown |
| Indicates whether this class is an unknown class, merely present to indicate that it is in other FOM modules not in use by this federate. | |
Static Protected Attributes | |
| static const DtAttributeHandleSet | theEmptySet |
| static const unsigned int | theMaxAttrs = DtMaxAttributesPerClass |
| DtObjectClassInfo::DtObjectClassInfo | ( | const char * | name, |
| DtObjectClassInfo * | base, | ||
| DtObjectClassHandle | handle, | ||
| DtSharingType | sharing, | ||
| const MAKRti::DtString & | semantics | ||
| ) |
Constructors.
References addAttr(), addSubclass(), attrByHandle(), DtAttrInfo::dimensions(), false, fomType(), myAttrs, myFirstAttribute, DtAttrInfo::name(), DtAttrInfo::order(), DtAttrInfo::ownershipType(), DtAttrInfo::semantics(), DtAttrInfo::setDimensions(), setFomType(), DtAttrInfo::sharingType(), DtAttrInfo::space(), DtAttrInfo::transport(), DtAttrInfo::updateCondition(), and DtAttrInfo::updateType().
| DtObjectClassInfo::DtObjectClassInfo | ( | const DtObjectClassInfo & | orig | ) |
|
virtual |
Destructor.
References myForceDestinationsMask, myRemoteSubscriptions, mySubclasses, and NULL.
|
virtual |
Adds an attribute to the class. Used when reading Fed file.
References addAttrSorted(), addAttrUnsorted(), attrByName(), myAttrs, and theMaxAttrs.
Referenced by DtFomClassMgr::addAttribute(), DtFomClassMgr::addObjClass(), DtObjectClassInfo(), and DtFomClassMgr::mergeAttributes().
|
virtual |
Adds an attribute to the class. Used when reading Fed file.
References addAttrSorted(), addAttrUnsorted(), attrByName(), attrName(), DtToWString(), fomType(), myAttrs, DtAttrInfo::nameIsPrivilegeToDelete(), and theMaxAttrs.
|
protectedvirtual |
Insert Attributes in sorted or unsorted (deprecated) order.
References DtAttributeHandleSet::add(), fomType(), myAttrs, myAttrSet, myFirstAttribute, and name().
Referenced by addAttr().
|
protectedvirtual |
References DtAttributeHandleSet::add(), fomType(), myAttrs, myAttrSet, myFirstAttribute, and name().
|
protectedvirtual |
References DtAttributeHandleSet::add(), fomType(), myAttrs, myAttrSet, and DtAttrInfo::setTransport().
Referenced by addAttr().
|
protectedvirtual |
Insert Attributes in sorted or unsorted (deprecated) order.
References DtAttributeHandleSet::add(), fomType(), myAttrs, myAttrSet, and DtAttrInfo::setTransport().
|
protectedvirtual |
Add/delete remote subscription to this class by indicated federate Replaces attribute set if already subscribed.
References attrs(), myRemoteSubscriptions, and DtAttributeHandleSet::setUnion().
Referenced by remoteSubscribe(), and restore().
|
protectedvirtual |
Attribute subscription is added to existing subscribed set (created does not exist)
References DtAttributeHandleSet::add(), and myRemoteSubscriptions.
|
virtual |
Add a subclass (called during FED processing)
References mySubclasses.
Referenced by DtObjectClassInfo(), and setBaseClass().
|
virtual |
Returns the full set of attributes.
References myAttrSet.
Referenced by DtObjectMgr::acquireAttrs(), DtObjectMgr::cancelAcquire(), DtObjectMgr::cancelDivest(), DtObjectMgr::divestOwnership(), DtRtiObject::DtRtiObject(), DtObjectMgr::releaseResponse(), DtObjectMgr::requestObjectUpdate(), DtObjectMgr::sendNotDiscoveredMsgForSmartForwarding(), DtObjectMgr::unpublishClass(), and DtObjectMgr::unsubscribeClass().
|
virtual |
Referenced by attrName(), attrOrder(), attrSpace(), attrTransport(), DtObjectClassInfo(), isActiveSubscribed(), isSubscribed(), DtRtiObject::okToReceive(), print(), DtObjectMgr::processUpdate(), DtObjectMgr::publish(), DtObjectMgr::queryOwnership(), relevant(), DtObjectMgr::requestClassUpdate(), DtObjectMgr::sendUpdate(), DtObjectMgr::subscribe(), and DtObjectMgr::unsubscribeAttributes().
|
virtual |
|
virtual |
Get Attribute descriptor by name or handle.
References isName(), myAttrs, and NULL.
Referenced by addAttr(), DtFomClassMgr::addAttributeDimension(), DtFomClassMgr::addAttrInfoToChildren(), attrHandle(), DtFomClassMgr::mergeAttributes(), DtFomClassMgr::resolveAttributeDimensions(), and DtFomClassMgr::resolveAttributeTransportations().
|
virtual |
const versions
|
virtual |
Get attribute handle from name.
References attrByName(), and DtAttrInfo::handle().
Referenced by DtFomClassMgr::attrHandle().
|
virtual |
Get attribute name from handle.
References attrByHandle(), and DtAttrInfo::name().
Referenced by addAttr(), DtFomClassMgr::attrName(), and DtAttributeHandleSet::print().
|
virtual |
Get attribute order from handle.
References attrByHandle(), and DtAttrInfo::order().
Referenced by DtRtiObject::DtRtiObject().
|
virtual |
Returns the set of attributes.
References myAttrs.
Referenced by addRemoteSubscription(), DtFomClassMgr::attrPresent(), DtObjectClassInfo(), DtRtiObject::getBaseClassDestinations(), isScaffolding(), maxSubscribedRate(), maxSubscribedRateName(), DtFomClassMgr::mergeAttributes(), DtNetStatsMonitor::recursivelyAddAttributes(), DtNetStatsMonitor::recursivelyAddAttributesNames(), DtNetStatsMonitor::recursivelyAddAttrInitState(), sameObjectClass(), DtNetStatsMonitor::sendAttributeNames(), DtNetStatsMonitor::sendAttributeState(), DtNetStatsMonitor::sendInitAttrState(), and setSubscribedRate().
|
virtual |
Get attribute space from handle.
References attrByHandle(), DtDefaultSpaceHandle, and DtAttrInfo::space().
|
virtual |
Get attribute transport type from handle.
References attrByHandle(), and DtAttrInfo::transport().
Referenced by DtRtiObject::DtRtiObject(), and DtObjectMgr::sendNotDiscoveredMsgForSmartForwarding().
|
virtual |
Return pointer to base class descriptor.
References myBase.
Referenced by DtFomClassMgr::addObjClass(), DtObjectMgr::collectRemoteSubscriptions(), DtObjectMgr::firstSubscribedClass(), DtRtiObject::getBaseClassDestinations(), DtRtiObject::getDestinations(), DtNetStatsMonitor::getNameFromObject(), isOfClass(), DtFomClassMgr::mergeObjectInfo(), DtFedExec::processJoin(), DtObjectMgr::processPub(), sameAncestry(), and updateRelevance().
|
protectedvirtual |
References DtAttributeHandleSet::isEmpty(), myRemoteSubscriptions, and DtAttributeHandleSet::removeSetIntersection().
Referenced by remoteSubscribe(), and removeSubscriptions().
|
virtual |
Set/Get the destination to send to when using DM Filtering Inclusive sets recurse for all derived classes.
References myAddr.
Referenced by DtObjectMgr::addClassMulticast(), DtFomClassMgr::initDMFilteringParameters(), DtObjectMgr::removeClassMulticast(), and DtObjectMgr::sendUpdateMessage().
|
virtual |
References myDevAddr.
Referenced by DtObjectMgr::addClassMulticast(), and DtFomClassMgr::initDMFilteringParameters().
|
virtual |
Set/get discovered class handle This value is always 0 if isUnknown() is false.
References myDiscoveredHandle.
|
virtual |
References myFomType.
Referenced by addAttr(), addAttrSorted(), addAttrUnsorted(), DtObjectClassInfo(), isFullName(), isName(), and sameAttrs().
|
virtual |
Get the forced destination mask if active Returns true if the forced destination mask is active.
References myClock, myForceDestinationsMask, myForceDestinationsTime, and NULL.
Referenced by DtRtiObject::getDestinations().
|
virtual |
Set/get class handle.
References myHandle.
Referenced by DtFomClassMgr::addAttribute(), DtObjectMgr::addPendingRegister(), DtFomClassMgr::classHandle(), DtObjectMgr::collectRemoteSubscriptions(), DtNetStatsMonitor::createSerializedTreesAndSend(), DtNetStatsMonitor::gatherClassDataAndSend(), isOfClass(), DtFedExec::processJoin(), DtObjectMgr::processPub(), publish(), DtNetStatsMonitor::recursivelyAddAttributes(), DtNetStatsMonitor::recursivelyAddAttributesNames(), DtNetStatsMonitor::recursivelyAddAttrInitState(), DtNetStatsMonitor::recursivelyAddObjects(), remotePassiveSubscribe(), DtObjectMgr::remotePassiveSubscribe(), remoteSubscribe(), DtObjectMgr::remoteSubscribe(), restore(), DtNetStatsMonitor::sendAttributeNames(), DtNetStatsMonitor::sendAttributeState(), DtNetStatsMonitor::sendInitAttrState(), DtObjectMgr::sendNotDiscoveredMsgForSmartForwarding(), DtObjectMgr::sendPendingSubscription(), DtObjectMgr::sendUpdate(), DtObjectMgr::sendUpdateMessage(), DtRtiObject::setDiscoveredClass(), DtRtiObject::setKnownClass(), DtObjectMgr::unpublishAttributes(), DtObjectMgr::unsubscribeAttributes(), and updateRelevance().
|
protectedvirtual |
Run an intersection between the list of attributes and all published attributes including children.
References publishedAttrs(), relevantAttrs(), DtAttributeHandleSet::setIntersection(), DtAttributeHandleSet::size(), and subclasses().
Referenced by publish(), and updateRelevance().
|
virtual |
|
virtual |
|
virtual |
Return boolean: name matches? Compare depends on FOM type: insensitive for 1.3 and sensitive for 1516 Root name is prepended to name if necessary.
References fomType(), isFullName(), and name().
Referenced by attrByName().
|
virtual |
Returns 1 if this class is handle or is a subclass of handle.
References baseClass(), handle(), and isOfClass().
Referenced by DtObjectMgr::addPendingRegister(), DtRtiObject::isOfActualClass(), isOfClass(), DtRtiObject::isOfKnownClass(), DtObjectMgr::notifyDivestedAttributes(), DtObjectMgr::resendMultiRegister(), and DtObjectMgr::sendPendingRegister().
|
virtual |
Return boolean: is subscription passive?
References myIsPassive.
| bool DtObjectClassInfo::isScaffolding | ( | ) | const |
Determines whether the class is a scaffolding class.
References attrs(), and myFirstAttribute.
Referenced by DtFomClassMgr::mergeObjectInfo().
|
virtual |
Using default region handle indicates check for DM subscription only.
Return bool: does attribute subscription overlap with this region?
References attrByHandle(), DtAttributeHandleSet::isMember(), DtAttrInfo::pasRegionSet(), DtAttrInfo::subRegionSet(), and subscribedAttrs().
Referenced by DtUpdateMsg::fillFromNetAttrs(), DtUpdateMsg::fillFromNetBigAttrs(), and DtObjectMgr::processNewObj().
| bool DtObjectClassInfo::isUnknown | ( | ) | const |
Determines whether this class is an unknown class, merely present to indicate that it is in other FOM modules not in use by this federate.
References myIsUnknown.
Referenced by DtNetStatsMonitor::gatherClassDataAndSend(), DtNetStatsMonitor::recursivelyAddAttributes(), DtNetStatsMonitor::recursivelyAddAttributesNames(), DtNetStatsMonitor::recursivelyAddAttrInitState(), DtNetStatsMonitor::recursivelyAddObjects(), and DtNetStatsMonitor::sendAttributeState().
|
virtual |
References attrs(), and myAttrs.
Referenced by DtObjectMgr::addClassMulticast(), and DtObjectMgr::removeClassMulticast().
|
virtual |
|
virtual |
Return class name, as in FOM.
References myName.
Referenced by addAttrSorted(), DtFomClassMgr::addClassHdlForUnknownClass(), DtFomClassMgr::className(), DtNetStatsMonitor::gatherClassDataAndSend(), DtNetStatsMonitor::getNameFromObject(), isFullName(), isName(), DtFomClassMgr::mergeAttributes(), DtFomClassMgr::mergeObjectInfo(), DtFomClassMgr::objectClassPosition(), DtFomClassMgr::objectClassPresent(), sameAncestry(), sameAttrs(), and sameObjectClass().
|
virtual |
Returns the number of attributes.
References myAttrs.
Referenced by DtFomClassMgr::addAttribute(), DtFomClassMgr::addObjClass(), DtRtiObject::decode(), DtRtiObject::DtRtiObject(), and DtRtiObject::encode().
|
virtual |
Returns number of remote federates subscribed to this class.
References myRemoteSubscriptions.
| bool DtObjectClassInfo::operator!= | ( | const DtObjectClassInfo & | other | ) | const |
References sameObjectClass().
| DtObjectClassInfo& DtObjectClassInfo::operator= | ( | const DtObjectClassInfo & | orig | ) |
Assignment operator (not implemented)
| bool DtObjectClassInfo::operator== | ( | const DtObjectClassInfo & | other | ) | const |
References sameObjectClass().
|
virtual |
Print the contents.
References attrByHandle(), myAttrs, myBase, myHandle, and myName.
|
virtual |
Publish and unpublish Publishing an empty list with replacement enabled results in unpublish from all class attributes.
References DtAttributeHandleSet::add(), DtObjectMgr::addPendingStartReg(), DtObjectMgr::addPendingStopReg(), DtPrivilegeToDelete, DtRtiMtdDestinationList::getMaxDestinations(), handle(), intersectPublished(), DtAttributeHandleSet::isMember(), myAttrs, myExplicitPubPrivToDel, myExplicitUnpubPrivToDel, myPublished, myPublishedSet, myRegsOn, DtObjectMgr::params(), relevantAttrs(), DtBitMask::reset(), DtRIDParameters::routeToAllByDefault, setForcedDestinations(), DtAttributeHandleSet::setUnion(), DtAttributeHandleSet::size(), DtRIDParameters::smartForwardingLevel, and throwIfNotDefined().
Referenced by DtObjectMgr::publish(), and unpublishAttributes().
|
virtual |
Return boolean: is class published?
References myPublished.
Referenced by DtObjectMgr::acquireAttrs(), DtObjectMgr::published(), DtObjectMgr::registerObj(), remotePassiveSubscribe(), remoteSubscribe(), restore(), DtObjectMgr::sendPendingStopReg(), and DtObjectMgr::unpublishAttributes().
|
virtual |
Returns the set of published attributes.
References myPublishedSet.
Referenced by DtObjectMgr::acquireAttrs(), DtRtiObject::DtRtiObject(), intersectPublished(), DtObjectMgr::processDivest(), DtObjectMgr::publish(), and DtObjectMgr::unpublishAttributes().
|
virtual |
Returns true if the class is relevant: registered object could cause discovery at remote federate, false otherwise.
References myRelevantSet, and DtAttributeHandleSet::size().
Referenced by restore(), and updateRelevance().
|
virtual |
Returns true if the attribute is relevant: attribute instance could cause discovery at remote federate, false otherwise.
References attrByHandle(), and DtAttrInfo::relevant().
|
virtual |
Returns the set of relevant attributes: Attributes that could cause object discovery at a remote federate if they are published or become published.
The attributes must be remotely subscribed at this class or at a base class that is a discovery candidate.
References myRelevantSet.
Referenced by DtObjectMgr::acquireAttrs(), intersectPublished(), DtObjectMgr::processNotifyAcquire(), publish(), and updateRelevance().
|
virtual |
Returns true if the remote federate is subscribed to this class.
References myRemoteSubscriptions, and NULL.
Referenced by remotePassiveSubscribe(), and updateRelevance().
|
virtual |
Process remote passive subscription to add pending send register for any objects that could be discovered by it Replacement forces updates to any relevance changes from active to passive.
References DtObjectMgr::addPendingRegister(), DtAttributeHandleSet::getHandle(), handle(), myAttrs, mySubclasses, NULL, published(), remoteFederateIsSubscribed(), remotePassiveSubscribe(), remoteSubscribe(), remoteUnsubscribeAttributes(), and DtAttributeHandleSet::size().
Referenced by DtObjectMgr::processSub(), and remotePassiveSubscribe().
|
virtual |
Do bookkeeping associated with a remote federate subscription.
Calls update relevance.
References DtObjectMgr::addPendingRegister(), addRemoteSubscription(), deleteRemoteSubscription(), DtAttributeHandleSet::getHandle(), handle(), DtAttributeHandleSet::isEmpty(), myAttrs, published(), remoteSubscription(), DtAttributeHandleSet::removeSetIntersection(), DtAttributeHandleSet::size(), and updateRelevance().
Referenced by DtObjectMgr::processSub(), remotePassiveSubscribe(), and remoteUnsubscribeAttributes().
|
virtual |
Returns remote federate's subscribed attributes.
References myRemoteSubscriptions.
Referenced by DtRtiObject::acquireRemoteSubscriptions(), DtObjectClassInfo(), remoteSubscribe(), DtObjectMgr::remoteSubscribe(), remoteUnsubscribeAttributes(), removeSubscriptions(), and DtRtiObject::setDiscoveredClass().
|
virtual |
Do bookkeeping associated with a remote federate unsubscription.
Calls update relevance.
References remoteSubscribe(), remoteSubscription(), and DtAttributeHandleSet::removeSetIntersection().
Referenced by DtObjectMgr::processUnsub(), and remotePassiveSubscribe().
|
virtual |
Remove all subscriptions from the given federate.
References DtAttributeHandleSet::add(), DtAttrInfo::deleteRemoteSubscription(), deleteRemoteSubscription(), DtAttrInfo::deleteRemoteSubscriptionWithRegion(), DtAttrInfo::handle(), DtAttributeHandleSet::isEmpty(), DtAttributeHandleSet::isMember(), myAttrs, DtAttrInfo::remoteFederateIsSubscribedWithRegion(), remoteSubscription(), and updateRelevance().
Referenced by DtObjectMgr::processResign().
|
virtual |
References addRemoteSubscription(), DtAttributeHandleSet::decode(), DtRtiSaveClassAttributeType, DtRtiSaveTerminateType, DtObjectClassPacket::explicitPubPrivToDel, DtObjectClassPacket::explicitUnpubPrivToDel, DtAttrInfoPacket::handle, DtObjectClassPacket::handle, handle(), DtAttrInfoPacket::header, DtObjectClassPacket::isPassive, myAttrs, myExplicitPubPrivToDel, myExplicitUnpubPrivToDel, myHandle, myIsPassive, myPublished, myPublishedSet, myRegsOn, myRelevantSet, myRemoteSubscriptions, mySubscribed, mySubscribedActiveSet, mySubscribedPassiveSet, mySubscribedSet, NULL, DtAttrInfoPacket::numRemoteSubs, DtSaveDataHeader::packetType, DtAttrInfoPacket::published, DtObjectClassPacket::published, published(), DtObjectClassPacket::publishedSet, DtRtiSaveFile::readNextPacket(), DtObjectClassPacket::reflectBestEffort, DtObjectClassPacket::reflectBestEffortAttributes, DtObjectClassPacket::reflectReliable, DtObjectClassPacket::reflectReliableAttributes, DtObjectClassPacket::regsOn, DtAttrInfoPacket::relevant, relevant(), DtObjectClassPacket::relevantSet, DtObjectClassPacket::sentBestEffortAttributes, DtObjectClassPacket::sentReliableAttributes, DtAttrInfoPacket::subscribed, DtObjectClassPacket::subscribed, subscribed(), DtObjectClassPacket::subscribedActiveSet, DtObjectClassPacket::subscribedPassiveSet, DtObjectClassPacket::subscribedSet, and DtObjectClassPacket::updates.
|
virtual |
|
staticprotected |
Test attributes for equality.
References fomType(), name(), and DtAttrInfo::nameIsPrivilegeToDelete().
Referenced by sameObjectClass().
|
staticprotected |
Test class for equality (including attributes)
References attrs(), name(), and sameAttrs().
Referenced by operator!=(), and operator==().
|
virtual |
save and restore
References DtRtiSaveClassAttributeType, DtRtiSaveObjectClassType, DtRtiSaveTerminateType, DtAttributeHandleSet::encode(), DtObjectClassPacket::explicitPubPrivToDel, DtObjectClassPacket::explicitUnpubPrivToDel, DtAttrInfoPacket::handle, DtObjectClassPacket::handle, DtAttrInfoPacket::header, DtObjectClassPacket::header, DtObjectClassPacket::isPassive, myAttrs, myExplicitPubPrivToDel, myExplicitUnpubPrivToDel, myHandle, myIsPassive, myPublished, myPublishedSet, myRegsOn, myRelevantSet, mySubscribed, mySubscribedActiveSet, mySubscribedPassiveSet, mySubscribedSet, DtAttrInfoPacket::numRemoteSubs, DtSaveDataHeader::packetSize, DtSaveDataHeader::packetType, DtAttrInfoPacket::published, DtObjectClassPacket::published, DtObjectClassPacket::publishedSet, DtObjectClassPacket::reflectBestEffort, DtObjectClassPacket::reflectBestEffortAttributes, DtObjectClassPacket::reflectReliable, DtObjectClassPacket::reflectReliableAttributes, DtObjectClassPacket::regsOn, DtAttrInfoPacket::relevant, DtObjectClassPacket::relevantSet, DtObjectClassPacket::sentBestEffortAttributes, DtObjectClassPacket::sentReliableAttributes, DtObjectClassPacket::subscribed, DtObjectClassPacket::subscribedActiveSet, DtObjectClassPacket::subscribedPassiveSet, DtObjectClassPacket::subscribedSet, DtObjectClassPacket::updates, and DtRtiSaveFile::writePacket().
|
protected |
|
virtual |
|
virtual |
Set base class (User should never need to set this)
References addSubclass(), and myBase.
|
virtual |
References myAddr, myDevAddr, and mySubclasses.
Referenced by DtFomClassMgr::initDMFilteringParameters().
|
virtual |
References myDiscoveredHandle.
Referenced by DtFomClassMgr::addClassHdlForUnknownClass().
|
virtual |
Set/Get the FOM type.
References myFomType.
Referenced by DtFomClassMgr::addObjClassSorted(), DtFomClassMgr::addObjClassUnsorted(), and DtObjectClassInfo().
|
virtual |
Set a forced destination mask Temporarily set a forced destinations mask for given delay A negative time delay will force the destinations indefinitely.
References myClock, myForceDestinationsMask, and myForceDestinationsTime.
Referenced by publish().
|
virtual |
References myHandle.
| void DtObjectClassInfo::setIsUnknown | ( | bool | unknown | ) |
References myIsUnknown.
Referenced by DtFomClassMgr::addClassHdlForUnknownClass().
|
virtual |
References mySemantics.
|
virtual |
References mySharing.
|
virtual |
Apply objects subscribed rate to attrInfo's.
References attrs(), myAttrs, and mySubclasses.
Referenced by DtFomClassMgr::initUpdateRates().
|
virtual |
sharing type access/mutate
References mySharing.
Referenced by DtFomClassMgr::addClassHdlForUnknownClass(), and DtFomClassMgr::mergeObjectInfo().
|
virtual |
Return list of subclasses.
References mySubclasses.
Referenced by DtFomClassMgr::addAttrInfoToChildren(), DtObjectMgr::addClassMulticast(), DtNetStatsMonitor::createSerializedTreesAndSend(), intersectPublished(), DtNetStatsMonitor::recursivelyAddAttributes(), DtNetStatsMonitor::recursivelyAddAttributesNames(), DtNetStatsMonitor::recursivelyAddAttrInitState(), DtNetStatsMonitor::recursivelyAddObjects(), DtObjectMgr::removeClassMulticast(), DtNetStatsMonitor::sendAttributeNames(), and DtNetStatsMonitor::sendInitAttrState().
|
virtual |
Subscribe and unsubscribe.
| isReplacement | 1.3 is replacement |
References DtAttributeHandleSet::add(), DtAttributeHandleSet::empty(), DtAttributeHandleSet::isMember(), myAttrs, myIsPassive, mySubscribed, mySubscribedActiveSet, mySubscribedPassiveSet, mySubscribedSet, DtAttributeHandleSet::remove(), DtAttributeHandleSet::size(), and throwIfNotDefined().
Referenced by DtObjectMgr::subscribe(), unsubscribeAttributes(), and unsubscribeClass().
|
virtual |
Return boolean: is class subscribed?
References mySubscribed.
Referenced by DtObjectMgr::firstSubscribedClass(), restore(), DtObjectMgr::subscribe(), DtObjectMgr::subscribed(), DtObjectMgr::unsubscribeAttributes(), and DtObjectMgr::unsubscribeClass().
|
virtual |
References mySubscribedActiveSet.
Referenced by isActiveSubscribed(), DtObjectMgr::processPub(), and DtObjectMgr::sendPendingSubscription().
|
virtual |
References DtDefaultRegionSetHandle, mySubscribedActiveSet, and theEmptySet.
|
virtual |
Returns the set of DM subscribed attributes.
References mySubscribedSet.
Referenced by DtRtiObject::expecting(), isSubscribed(), DtObjectMgr::processMultiRegister(), DtObjectMgr::processNewObj(), and DtObjectMgr::processRegister().
|
virtual |
Returns all subscribed attributes if handle is the default region set Otherwise, just those subscribed attributes that match with the remote publication region.
References DtDefaultRegionSetHandle, mySubscribedSet, and theEmptySet.
|
virtual |
Returns a list of remote federate subscribed attributes.
References myRemoteSubscriptions.
Referenced by DtObjectMgr::collectRemoteSubscriptions().
|
virtual |
References mySubscribedPassiveSet.
|
protectedvirtual |
Throws AttributeNotDefined exception if any member of attrs is not a valid attribute handle.
References DtAttributeHandleSet::getHandle(), myAttrs, and DtAttributeHandleSet::size().
Referenced by publish(), subscribe(), unpublishAttributes(), and unsubscribeAttributes().
|
virtual |
References DtPrivilegeToDelete, DtAttributeHandleSet::isMember(), myExplicitPubPrivToDel, myExplicitUnpubPrivToDel, myPublishedSet, publish(), DtAttributeHandleSet::remove(), DtAttributeHandleSet::removeSetIntersection(), DtAttributeHandleSet::size(), and throwIfNotDefined().
Referenced by DtObjectMgr::unpublishAttributes().
|
virtual |
|
virtual |
References subscribe().
|
protectedvirtual |
Update the relevance field of this class and all subclasses, based on a particular remote and current subscriptions.
Add pending start/stop updates/registration and send register when appropriate.
References DtAttributeHandleSet::add(), DtObjectMgr::addPendingRegister(), DtObjectMgr::addPendingStartReg(), DtObjectMgr::addPendingStopReg(), baseClass(), handle(), intersectPublished(), myAttrs, myRegsOn, myRelevantSet, mySubclasses, NULL, DtAttrInfo::numRemoteFederatesSubscribed(), DtAttrInfo::numRemoteFederatesSubscribedWithRegion(), DtAttrInfo::published(), DtAttrInfo::relevant(), relevant(), relevantAttrs(), DtAttrInfo::remoteFederateIsSubscribed(), remoteFederateIsSubscribed(), DtAttrInfo::remoteFederateIsSubscribedWithRegion(), DtAttributeHandleSet::remove(), DtAttrInfo::setRelevant(), and updateRelevance().
Referenced by remoteSubscribe(), removeSubscriptions(), and updateRelevance().
|
protected |
Referenced by destinationAddress(), and setDestination().
|
protected |
Referenced by addAttr(), addAttrSorted(), addAttrUnsorted(), attrByHandle(), attrByName(), attrs(), DtObjectClassInfo(), maxSubscribedRate(), maxSubscribedRateName(), numAttributes(), print(), publish(), remotePassiveSubscribe(), remoteSubscribe(), removeSubscriptions(), restore(), save(), setSubscribedRate(), subscribe(), throwIfNotDefined(), and updateRelevance().
|
protected |
Referenced by addAttrSorted(), addAttrUnsorted(), and allAttrs().
|
protected |
Referenced by baseClass(), print(), and setBaseClass().
|
protected |
Referenced by getForcedDestinations(), and setForcedDestinations().
|
protected |
Referenced by destinationDevice(), and setDestination().
|
protected |
Referenced by discoveredHandle(), and setDiscoveredHandle().
|
protected |
Referenced by publish(), restore(), save(), and unpublishAttributes().
|
protected |
Referenced by publish(), restore(), save(), and unpublishAttributes().
|
protected |
Referenced by addAttrSorted(), DtObjectClassInfo(), and isScaffolding().
|
protected |
Referenced by fomType(), and setFomType().
|
protected |
Create this bit mask to temporarily force destinations after publish.
Referenced by DtObjectClassInfo(), getForcedDestinations(), setForcedDestinations(), and ~DtObjectClassInfo().
|
protected |
Referenced by getForcedDestinations(), and setForcedDestinations().
|
protected |
Referenced by handle(), print(), restore(), save(), and setHandle().
|
protected |
Referenced by isPassive(), restore(), save(), and subscribe().
|
protected |
Indicates whether this class is an unknown class, merely present to indicate that it is in other FOM modules not in use by this federate.
Referenced by isUnknown(), and setIsUnknown().
|
protected |
Referenced by isFullName(), name(), and print().
|
protected |
Referenced by publish(), published(), restore(), and save().
|
protected |
Referenced by publish(), publishedAttrs(), restore(), save(), and unpublishAttributes().
|
protected |
Have we most recently told the federate to turn on or off registration.
Referenced by publish(), restore(), save(), and updateRelevance().
|
protected |
Attributes that could cause object discovery at a remote federate if they are published or become published.
The attributes must be remotely subscribed at this class or at a base class that is a discovery candidate.
Referenced by relevant(), relevantAttrs(), restore(), save(), and updateRelevance().
|
protected |
|
protected |
Referenced by semantics(), and setSemantics().
|
protected |
Referenced by setSharing(), and sharing().
|
protected |
Referenced by addSubclass(), remotePassiveSubscribe(), setDestination(), setSubscribedRate(), subclasses(), updateRelevance(), and ~DtObjectClassInfo().
|
protected |
Referenced by restore(), save(), subscribe(), and subscribed().
|
protected |
Referenced by restore(), save(), subscribe(), subscribedActiveAttrs(), and unsubscribeAttributes().
|
protected |
Referenced by restore(), save(), subscribe(), subscribedPassiveAttrs(), and unsubscribeAttributes().
|
protected |
Referenced by restore(), save(), subscribe(), and subscribedAttrs().
|
staticprotected |
Referenced by subscribedActiveAttrs(), and subscribedAttrs().
|
staticprotected |
Referenced by addAttr().