![]() |
MAK RTIspy API Documentation for HLA 1.3
|
Inheritance diagram for DtFomClassMgr:
Collaboration diagram for DtFomClassMgr:Public Member Functions | |
| DtFomClassMgr (const DtFomClassMgr &orig) | |
| Copy Constructor - must use clone instead. | |
| virtual | ~DtFomClassMgr () |
| Destructor. | |
| virtual void | addSpace (const char *name) |
| FED file loading functions. | |
| virtual void | addDimension (const char *spaceName, const char *dimName) |
| Define a dimension within a routing space. | |
| virtual void | addDimension (const char *dimName, unsigned long upperBound, unsigned long defaultLowerBound, unsigned long defaultUpperBound, bool excluded) |
| Define a dimension. Used when initializing from FED file. | |
| virtual bool | addInteractionDimension (const char *interactionName, const char *dimension) |
| Add regions to the class Return true if add was successful (i.e., dimension is valid) | |
| virtual void | addInterClass (const char *name, const char *baseName, MAKRti::DtTransportType transport, MAKRti::DtOrderType order, DtSharingType sharing, const MAKRti::DtString &semantics, const char *space=NULL) |
| Define a class. Used when initializing from FED file. | |
| void | addInterClass (const char *name, const char *baseName, MAKRti::DtTransportType transport, MAKRti::DtOrderType order, const char *spaceName=NULL) |
| void | addObjClass (const char *name, const char *baseName, DtSharingType sharing, const MAKRti::DtString &semantics) |
| virtual void | addObjClass (const char *name, const char *baseName) |
| Define a class. Used when initializing from FED file. | |
| virtual void | addParameter (const char *className, const char *paramName) |
| virtual void | addParameter (const char *className, const char *paramName, const char *semantics) |
| Define an parameter of a class. | |
| virtual bool | addAttributeDimension (const char *className, const char *attrName, const char *dimName) |
| Define the dimensions of an attribute Return true if add was successful (i.e., dimension is valid) | |
| virtual void | addAttribute (const char *className, const char *attrName, MAKRti::DtTransportType transport, MAKRti::DtOrderType order, DtSharingType sharing, DtFomUpdateType updateType, const MAKRti::DtString &updateCondition, DtOwnershipType ownershipType, const MAKRti::DtString &semantics, const char *spaceName=NULL) |
| Define an attribute of a class. | |
| virtual void | addAttribute (const char *className, const char *attrName, MAKRti::DtTransportType transport, MAKRti::DtOrderType order, const char *spaceName=NULL) |
| virtual void | initUpdateRates (DtRIDParameters *params) |
| const MAKRti::DtUpdateRateSetT & | getUpdateRates () const |
| Get a set of the update Rates. | |
| float | updateRateByName (const char *name) |
| Get the rate (Float) from an Update rate by its name. | |
| int | positionOfRate (float rate) const |
| Get the position of this rate (sorted ascending). | |
| bool | knownUpdateRate (const MAKRti::DtString &rateName) const |
| Check to see if an update rate with this name exists. | |
| virtual DtMergeFomStatus | mergeObjectClasses (DtFedTarget const &module) |
| Merge the contents of the specified FomMgr with this. | |
| virtual DtMergeFomStatus | mergeObjectInfo (DtObjectClassInfo const &classInfo) |
| Merge the contents of the specified objectClass with this. | |
| virtual void | mergeAttributes (DtObjectClassInfo const &classInfo, DtFomClassMgr const &module) |
| Merge the attributes of the given class into the same class in this FOM. | |
| virtual DtMergeFomStatus | mergeInteractionClasses (DtFedTarget const &module) |
| Merge the contents of the specified interactionClasses with this. | |
| virtual DtMergeFomStatus | mergeInteractionInfo (DtInteractionClassInfo const &interInfo, const char *spaceName=0) |
| Merge the contents of the specified InteractionInfo with this. | |
| virtual void | mergeParameters (DtInteractionClassInfo const &interInfo) |
| Merge the given interaction parameters into the same class in this FOM. | |
| virtual DtMergeFomStatus | mergeSpaces (DtFedTarget const &module) |
| Merge the given routing spaces with this. | |
| virtual DtMergeFomStatus | mergeDimensions (DtSpaceInfo const &spaceInfo) |
| Merge the given dimensions into the same space in this FOM. | |
| virtual DtMergeFomStatus | mergeSwitches (DtFedTarget const &module) |
| Merge the given switches with this. | |
| virtual DtObjectClassHandle | classHandle (const char *theName, bool throwException=true) |
| Querying functions. | |
| virtual const char * | className (DtObjectClassHandle theHandle, bool throwException=true) |
| Get class name from handle. | |
| virtual DtAttributeHandle | attrHandle (const char *theName, DtObjectClassHandle whichClass, bool throwException=true) |
| Get attribute handle from name. | |
| virtual const char * | attrName (DtAttributeHandle theHandle, DtObjectClassHandle whichClass, bool throwException=true) |
| Get attribute name from handle Returns pointer to internal memory. | |
| virtual DtObjectClassInfo * | classByName (const char *name) const |
| Returns the class descriptor for the name. | |
| virtual DtObjectClassInfo * | classByHandle (DtObjectClassHandle handle) const |
| Returns the class descriptor for the handle. | |
| virtual DtObjectClassInfo * | objectRootClass () const |
| Returns the root object class descriptor. | |
| virtual DtObjectClassHandle | objectRootHandle () const |
| Returns the handle of the root object. | |
| virtual int | numClasses () const |
| Get the number of classes. | |
| virtual void | addClassHdlForUnknownClass (DtObjectClassHandle handle, DtObjectClassHandle baseClassHandle) |
| Adds a known class handle for which we have no other information other than its base class. | |
| virtual DtInteractionClassInfo * | interactionByName (const char *name) const |
| Returns the class descriptor for the name. | |
| virtual DtInteractionClassInfo * | interactionByHandle (DtInteractionClassHandle handle) const |
| Returns the class descriptor for the handle. | |
| virtual DtInteractionClassInfo * | interactionRootClass () const |
| Returns the root interaction class descriptor. | |
| virtual DtInteractionClassHandle | interactionRootHandle () const |
| Returns the handle of the root interaction. | |
| virtual DtInteractionClassHandle | interactionHandle (const char *theName, bool throwException=true) |
| Get class handle from name. | |
| virtual const char * | interactionName (DtInteractionClassHandle theHandle, bool throwException=true) |
| Get class name from handle. | |
| virtual DtParameterHandle | paramHandle (const char *theName, DtInteractionClassHandle whichClass, bool throwException=true) |
| Get parameter handle from name. | |
| virtual const char * | paramName (DtParameterHandle theHandle, DtInteractionClassHandle whichClass, bool throwException=true) |
| Get parameter name from handle Returns pointer to internal memory. | |
| virtual int | numInteractions () const |
| Get num interactions. | |
| virtual void | addInteractionHdlForUnknownClass (DtInteractionClassHandle handle, DtInteractionClassHandle baseClassHandle) |
| Adds a known class handle for which we have no other information other than its base class. | |
| virtual void | initDMFilteringParameters (const DtRIDParameters *params) |
| DM Filtering. | |
| virtual void | printDMSubscriptions () |
| virtual bool | save (DtRtiSaveFile &file) |
| save and restore | |
| virtual void | prepareToRestore () |
| Prepare the state information to be restored (i.e., clear out existing data). | |
| virtual bool | restore (DtRtiSaveFile &file) |
| Restore the state information from the given file. | |
| virtual void | setExtend13and1516interop (bool enable) |
| set/get 1.3 and 1516 interoperability status | |
| virtual bool | extend13and1516interop () const |
| virtual void | print () const |
| Print the contents. | |
| virtual DtFomClassMgr * | clone () |
| Return a copy of this instance. | |
| virtual void | setConveyRegionDesignatorSets (bool value) |
| switches | |
Static Public Member Functions | |
| static DtFomClassMgr * | create (DtRIDParameters *p) |
| Creates an instance of a DtFomClassMgr. | |
| static void | setCreatorFunction (DtFomClassMgrCreator fn) |
| Call this function to set an alternate creator function With this function, users can replace this DtFomClassMgr with their own derived class. | |
Public Attributes | |
| unsigned long | myCrc |
| This is 0 by default. | |
Protected Member Functions | |
| DtFomClassMgr (DtRIDParameters *params) | |
| Constructor - used by create. | |
| DtFomClassMgr () | |
| Constructor - must use create instead. | |
| DtFomClassMgr & | operator= (const DtFomClassMgr &orig) |
| assignment operator (not implemented) | |
| void | init () |
| virtual DtInteractionClassInfo * | addInterClassSorted (const char *name, const char *baseName, MAKRti::DtTransportType transport, MAKRti::DtOrderType order, DtSpaceHandle spaceH, DtInteractionClassInfo *baseClass, DtSharingType sharing, const MAKRti::DtString &semantics) |
| Add a new interaction class with sorted or unsorted (deprecated) handles. | |
| virtual DtInteractionClassInfo * | addInterClassUnsorted (const char *name, const char *baseName, MAKRti::DtTransportType transport, MAKRti::DtOrderType order, DtSpaceHandle spaceH, DtInteractionClassInfo *baseClass, DtSharingType sharing, const MAKRti::DtString &semantics) |
| DtObjectClassInfo * | addObjClassSorted (const char *name, const char *baseName, DtSharingType sharing, const MAKRti::DtString &semantics, DtObjectClassInfo *baseClass) |
| Add a new object class with sorted or unsorted (deprecated) handles. | |
| DtObjectClassInfo * | addObjClassUnsorted (const char *name, const char *baseName, DtSharingType sharing, const MAKRti::DtString &semantics, DtObjectClassInfo *baseClass) |
| bool | objectClassPresent (const char *name, unsigned int startIndex=0, unsigned int endIndex=0) const |
| Helper function for insertion and merging. | |
| bool | attrPresent (const char *name, DtObjectClassInfo *classInfo, unsigned int startIndex=0, unsigned int endIndex=0) const |
| bool | interactionClassPresent (const char *name, unsigned int startIndex=0, unsigned int endIndex=0) const |
| unsigned int | objectClassPosition (const char *name, unsigned int startIndex=0, unsigned int endIndex=0) const |
| Helper function for insertion and merging. Where should class be inserted. | |
| unsigned int | interactionClassPosition (const char *name, unsigned int startIndex=0, unsigned int endIndex=0) const |
| bool | resolveAttributeDimensions (MAKRti::DtString &errorString) |
| bool | resolveInteractionDimensions (MAKRti::DtString &errorString) |
| bool | resolveObjectClasses (MAKRti::DtString &errorString) |
| bool | resolveInteractionClasses (MAKRti::DtString &errorString) |
| bool | resolveAttributes (MAKRti::DtString &errorString) |
| bool | resolveParameters (MAKRti::DtString &errorString) |
| bool | resolveDimensions (MAKRti::DtString &errorString) |
Protected Attributes | |
| DtObjectClassVector | myClasses |
| Object classes. | |
| int | myFirstMomObjectHandle |
| First object class handle of MOM objects. | |
| DtInteractionClassVector | myInteractions |
| Interaction classes. | |
| int | myFirstMomInteractionHandle |
| First interaction class handle of MOM interactions. | |
| bool | my13and1516interop |
| Indicates that 13 and 1516 interoperability is enabled. | |
| bool | myEnableFomBackwardsCompatibility |
| Indicates that backwards compatibility is enabled. | |
| bool | myOverrideConveyRegions |
| RID file specifies to override the FOM convey regions switch. | |
| DtObjectClassHandle | myMutableLastObjClassLookup |
| Cached value for the last object class lookup. | |
| DtInteractionClassHandle | myMutableLastInterClassLookup |
| Cached value for the last interaction class lookup. | |
Static Protected Attributes | |
| static DtFomClassMgrCreator | theCreator = 0 |
| Creator function creates instance of this class or subclass. | |
|
protected |
Constructor - used by create.
References DtRIDParameters::attributeRelevanceAdvisorySwitch, DtRIDParameters::autoProvideSwitch, DtRIDParameters::conveyProducingFederateSwitch, DtRIDParameters::exceptionReportingSwitch, init(), DtRIDParameters::interactionRelevanceAdvisorySwitch, myOverrideConveyRegions, and setConveyRegionDesignatorSets().
|
protected |
| DtFomClassMgr::DtFomClassMgr | ( | const DtFomClassMgr & | orig | ) |
Copy Constructor - must use clone instead.
References myClasses, and myInteractions.
|
virtual |
Destructor.
References DtDeleteVectorOfPointers(), myClasses, and myInteractions.
|
virtual |
Define an attribute of a class.
Used when initializing from FED file.
References DtObjectClassInfo::addAttr(), addAttributeDimension(), classByName(), DtDefaultSpaceHandle, DtFomUpdateTypeNA, DtOwnershipTypeNoTransfer, extend13and1516interop(), DtObjectClassInfo::handle(), myEnableFomBackwardsCompatibility, DtAttrInfo::nameIsPrivilegeToDelete(), DtObjectClassInfo::numAttributes(), and theObjectRootHandle.
Referenced by addAttribute().
|
virtual |
References addAttribute(), DtFomUpdateTypeNA, DtOwnershipTypeNoTransfer, and DtSharingTypePublishSubscribe.
|
virtual |
Define the dimensions of an attribute Return true if add was successful (i.e., dimension is valid)
References DtAttrInfo::addDimension(), DtObjectClassInfo::attrByName(), classByName(), DtGlobalSpaceHandle, and DtInvalidHandle.
Referenced by addAttribute().
|
virtual |
Adds a known class handle for which we have no other information other than its base class.
This is necessary with FOM module merging. We may not have full information about modules added to the federation after we joined, but we need to know if those classes are subclasses of the classes we are subscribed to. Will not add info for classes which are already known.
References addObjClassUnsorted(), classByHandle(), DtObjectClassInfo::name(), DtObjectClassInfo::setDiscoveredHandle(), DtObjectClassInfo::setIsUnknown(), and DtObjectClassInfo::sharing().
Referenced by DtRtiExecFederateMgr::processNewFomClasses().
|
virtual |
Define a dimension within a routing space.
Used when initializing from FED file.
References extend13and1516interop().
|
virtual |
Define a dimension. Used when initializing from FED file.
References DtDefaultSpaceHandle, and DtGlobalSpaceHandle.
|
virtual |
Add regions to the class Return true if add was successful (i.e., dimension is valid)
References DtInteractionClassInfo::addDimension(), DtGlobalSpaceHandle, DtInvalidHandle, and interactionByName().
Referenced by addInterClass().
|
virtual |
Adds a known class handle for which we have no other information other than its base class.
This is necessary with FOM module merging. We may not have full information about modules added to the federation after we joined, but we need to know if those classes are subclasses of the classes we are subscribed to. Will not add info for classes which are already known.
References addInterClassUnsorted(), DtDefaultSpaceHandle, interactionByHandle(), DtInteractionClassInfo::name(), DtInteractionClassInfo::order(), DtInteractionClassInfo::setDiscoveredHandle(), DtInteractionClassInfo::setIsUnknown(), DtInteractionClassInfo::sharing(), and DtInteractionClassInfo::transport().
Referenced by DtRtiExecFederateMgr::processNewFomClasses().
|
virtual |
Define a class. Used when initializing from FED file.
References addInteractionDimension(), addInterClassSorted(), addInterClassUnsorted(), DtDefaultSpaceHandle, extend13and1516interop(), interactionByName(), and myEnableFomBackwardsCompatibility.
Referenced by addInterClass(), addTestToFom(), and mergeInteractionInfo().
| void DtFomClassMgr::addInterClass | ( | const char * | name, |
| const char * | baseName, | ||
| MAKRti::DtTransportType | transport, | ||
| MAKRti::DtOrderType | order, | ||
| const char * | spaceName = NULL |
||
| ) |
References addInterClass(), and DtSharingTypePublishSubscribe.
|
protectedvirtual |
Add a new interaction class with sorted or unsorted (deprecated) handles.
References interactionClassPosition(), interactionClassPresent(), myFirstMomInteractionHandle, myInteractions, myMutableLastInterClassLookup, DtInteractionClassInfo::setFomType(), DtInteractionClassInfo::setHandle(), DtInteractionClassInfo::setOrder(), DtInteractionClassInfo::setSpaceHandle(), and DtInteractionClassInfo::setTransport().
Referenced by addInterClass().
|
protectedvirtual |
References myInteractions, myMutableLastInterClassLookup, DtInteractionClassInfo::setFomType(), and DtInteractionClassInfo::setSpaceHandle().
Referenced by addInteractionHdlForUnknownClass(), and addInterClass().
| void DtFomClassMgr::addObjClass | ( | const char * | name, |
| const char * | baseName, | ||
| DtSharingType | sharing, | ||
| const MAKRti::DtString & | semantics | ||
| ) |
References DtObjectClassInfo::addAttr(), addObjClassSorted(), addObjClassUnsorted(), DtObjectClassInfo::baseClass(), classByName(), DtFomUpdateTypeNA, DtOwnershipTypeDivestAcquire, myEnableFomBackwardsCompatibility, DtObjectClassInfo::numAttributes(), and DtAttrInfo::privilegeToDeleteName().
Referenced by addObjClass(), and mergeObjectInfo().
|
virtual |
Define a class. Used when initializing from FED file.
References addObjClass(), and DtSharingTypePublishSubscribe.
|
protected |
Add a new object class with sorted or unsorted (deprecated) handles.
References myClasses, myFirstMomObjectHandle, objectClassPosition(), objectClassPresent(), and DtObjectClassInfo::setFomType().
Referenced by addObjClass().
|
protected |
References myClasses, and DtObjectClassInfo::setFomType().
Referenced by addClassHdlForUnknownClass(), and addObjClass().
|
virtual |
Referenced by addTestToFom().
|
virtual |
Define an parameter of a class.
Used when initializing from FED file.
References DtInteractionClassInfo::addParam(), interactionByName(), and myEnableFomBackwardsCompatibility.
|
virtual |
FED file loading functions.
Define a routing space. Used when initializing from FED file.
References myEnableFomBackwardsCompatibility.
Referenced by mergeDimensions().
|
virtual |
Get attribute handle from name.
References DtObjectClassInfo::attrHandle(), classByHandle(), and DtInvalidHandle.
|
virtual |
Get attribute name from handle Returns pointer to internal memory.
References DtObjectClassInfo::attrName(), and classByHandle().
|
protected |
References DtObjectClassInfo::attrs(), and DtAttrInfo::name().
|
virtual |
Returns the class descriptor for the handle.
References myClasses.
Referenced by DtRtiObject::acquireRemoteSubscriptions(), addClassHdlForUnknownClass(), DtObjectMgr::addPendingRegister(), attrHandle(), attrName(), className(), DtRtiObject::decode(), DtNetStatsMonitor::gatherClassDataAndSend(), DtObjectMgr::processGiveToLrc(), DtObjectMgr::processNewObj(), DtObjectMgr::processPub(), DtObjectMgr::processRegister(), DtObjectMgr::processResign(), DtObjectMgr::processSub(), DtObjectMgr::processUnsub(), DtObjectMgr::processUpdate(), DtObjectMgr::publish(), DtObjectMgr::published(), DtObjectMgr::registerObj(), DtObjectMgr::requestClassUpdate(), DtNetStatsMonitor::sendAttributeState(), DtObjectMgr::sendPendingStopReg(), DtObjectMgr::sendPendingSubscription(), DtObjectMgr::setDiscoveredClass(), DtObjectMgr::subscribe(), DtObjectMgr::subscribed(), DtObjectMgr::unpublishAttributes(), DtObjectMgr::unpublishClass(), DtObjectMgr::unsubscribeAttributes(), and DtObjectMgr::unsubscribeClass().
|
virtual |
Returns the class descriptor for the name.
References myClasses, and myMutableLastObjClassLookup.
Referenced by addAttribute(), addAttributeDimension(), addObjClass(), classHandle(), initDMFilteringParameters(), initUpdateRates(), mergeAttributes(), mergeObjectInfo(), and resolveAttributeDimensions().
|
virtual |
Querying functions.
Get class handle from name
References classByName(), DtInvalidHandle, and DtObjectClassInfo::handle().
|
virtual |
Get class name from handle.
Returns pointer to internal memory.
References classByHandle(), and DtObjectClassInfo::name().
Referenced by DtNetStatsMonitor::addDiscoveredObject(), DtNetStatsMonitor::addRegisteredObject(), DtNetStatsMonitor::recordObjectStats(), and resolveAttributeDimensions().
|
virtual |
Return a copy of this instance.
References DtFomClassMgr().
Referenced by DtRtiExecFederateMgr::mergeFomModules(), DtFedExec::processJoin(), and DtFederateMgr::readFedFile().
|
static |
Creates an instance of a DtFomClassMgr.
References DtFomClassMgr(), and theCreator.
Referenced by DtFedExec::processCreateReady(), DtFedExec::processJoin(), setCreatorFunction(), DtFederateMgr::testReadFedFile(), and DtRtiExecFederateMgr::testReadFomModules().
|
virtual |
References my13and1516interop.
Referenced by addAttribute(), addDimension(), and addInterClass().
| const MAKRti::DtUpdateRateSetT & DtFomClassMgr::getUpdateRates | ( | ) | const |
Get a set of the update Rates.
|
protected |
References DtDefaultSpaceHandle, DtGlobalSpaceHandle, and myEnableFomBackwardsCompatibility.
Referenced by DtFomClassMgr().
|
virtual |
DM Filtering.
References DtDMFilterStruct::address, classByName(), DtDMFilterStruct::className, DtRIDParameters::destAddr(), DtInteractionClassInfo::destinationAddress(), DtObjectClassInfo::destinationAddress(), DtInteractionClassInfo::destinationDevice(), DtObjectClassInfo::destinationDevice(), DtDMFilterStruct::devAddress, DtDMFilterStruct::inclusive, interactionByName(), DtRIDParameters::interactionMulticastDefinitions(), interactionRootClass(), DtRIDParameters::networkInterfaceAddr(), DtRIDParameters::objectMulticastDefinitions(), objectRootClass(), printDMSubscriptions(), DtInteractionClassInfo::setDestination(), DtObjectClassInfo::setDestination(), and DtRIDParameters::useDMFiltering().
|
virtual |
|
virtual |
Returns the class descriptor for the handle.
References myInteractions.
Referenced by addInteractionHdlForUnknownClass(), DtNetStatsMonitor::gatherClassDataAndSend(), DtInteractionMgr::getTransport(), interactionName(), DtInteractionMgr::localAddrMap(), paramHandle(), paramName(), DtInteractionMgr::processInteraction(), DtInteractionMgr::processPub(), DtInteractionMgr::processResign(), DtInteractionMgr::processSub(), DtInteractionMgr::processUnsub(), DtInteractionMgr::publish(), DtInteractionMgr::published(), DtNetStatsMonitor::recordInteractionStats(), DtInteractionMgr::send(), DtInteractionMgr::sendInteractionMsg(), DtNetStatsMonitor::sendParameterState(), DtInteractionMgr::setOrder(), DtInteractionMgr::setTransport(), DtInteractionMgr::subscribe(), DtInteractionMgr::subscribed(), DtInteractionMgr::unpublish(), and DtInteractionMgr::unsubscribe().
|
virtual |
Returns the class descriptor for the name.
References myInteractions, and myMutableLastInterClassLookup.
Referenced by addInteractionDimension(), addInterClass(), addParameter(), addTestToFom(), DtTestInteraction::DtTestInteraction(), initDMFilteringParameters(), interactionHandle(), mergeInteractionInfo(), mergeParameters(), and resolveInteractionDimensions().
|
protected |
References myInteractions, and DtInteractionClassInfo::name().
Referenced by addInterClassSorted().
|
protected |
References myInteractions, and DtInteractionClassInfo::name().
Referenced by addInterClassSorted().
|
virtual |
Get class handle from name.
References DtInvalidHandle, DtInteractionClassInfo::handle(), and interactionByName().
|
virtual |
Get class name from handle.
Returns pointer to internal memory.
References interactionByHandle(), and DtInteractionClassInfo::name().
Referenced by DtNetStatsMonitor::addRecvdInteraction(), DtNetStatsMonitor::addSentInteraction(), DtNetStatsMonitor::recordInteractionStats(), and resolveInteractionDimensions().
|
virtual |
Returns the root interaction class descriptor.
References myInteractions, and theInteractionRootHandle.
Referenced by addTestToFom(), DtNetStatsMonitor::createSerializedTreesAndSend(), initDMFilteringParameters(), DtNetStatsMonitor::sendInitParamState(), and DtNetStatsMonitor::sendParameterNames().
|
virtual |
Returns the handle of the root interaction.
References theInteractionRootHandle.
| bool DtFomClassMgr::knownUpdateRate | ( | const MAKRti::DtString & | rateName | ) | const |
Check to see if an update rate with this name exists.
Referenced by initUpdateRates().
|
virtual |
Merge the attributes of the given class into the same class in this FOM.
References DtObjectClassInfo::addAttr(), DtAttrInfo::addDimension(), DtObjectClassInfo::attrByName(), DtObjectClassInfo::attrs(), classByName(), DtAttrInfo::dimensions(), myEnableFomBackwardsCompatibility, DtAttrInfo::name(), DtObjectClassInfo::name(), DtAttrInfo::order(), DtAttrInfo::ownershipType(), DtAttrInfo::semantics(), DtAttrInfo::sharingType(), DtAttrInfo::space(), DtAttrInfo::transport(), DtAttrInfo::updateCondition(), and DtAttrInfo::updateType().
Referenced by mergeObjectClasses().
|
virtual |
Merge the given dimensions into the same space in this FOM.
References addSpace(), DtMergeFomStatusFailedDimensions, and DtMergeFomStatusSuccess.
Referenced by mergeSpaces().
|
virtual |
Merge the contents of the specified interactionClasses with this.
References DtMergeFomStatusAlreadyPresentSuccess, DtMergeFomStatusSuccess, mergeInteractionInfo(), mergeParameters(), myInteractions, and DtInteractionClassInfo::spaceHandle().
|
virtual |
Merge the contents of the specified InteractionInfo with this.
References addInterClass(), DtInteractionClassInfo::baseClass(), DtInteractionClassInfo::dimensions(), DtMergeFomStatusAlreadyPresentSuccess, DtMergeFomStatusFailedInteractionClass, DtMergeFomStatusFailedScaffolding, DtMergeFomStatusSuccess, interactionByName(), DtInteractionClassInfo::isScaffolding(), DtInteractionClassInfo::name(), DtInteractionClassInfo::order(), DtInteractionClassInfo::sameAncestry(), DtInteractionClassInfo::semantics(), DtInteractionClassInfo::setDimensions(), DtInteractionClassInfo::setTransport(), DtInteractionClassInfo::sharing(), and DtInteractionClassInfo::transport().
Referenced by mergeInteractionClasses().
|
virtual |
Merge the contents of the specified FomMgr with this.
References DtMergeFomStatusAlreadyPresentSuccess, DtMergeFomStatusSuccess, mergeAttributes(), mergeObjectInfo(), and myClasses.
|
virtual |
Merge the contents of the specified objectClass with this.
References addObjClass(), DtObjectClassInfo::baseClass(), classByName(), DtMergeFomStatusAlreadyPresentSuccess, DtMergeFomStatusFailedObjectClass, DtMergeFomStatusFailedScaffolding, DtMergeFomStatusSuccess, DtObjectClassInfo::isScaffolding(), DtObjectClassInfo::name(), DtObjectClassInfo::sameAncestry(), DtObjectClassInfo::semantics(), and DtObjectClassInfo::sharing().
Referenced by mergeObjectClasses().
|
virtual |
Merge the given interaction parameters into the same class in this FOM.
References DtInteractionClassInfo::addParam(), interactionByName(), myEnableFomBackwardsCompatibility, DtParamInfo::name(), DtInteractionClassInfo::name(), DtInteractionClassInfo::paramByName(), DtInteractionClassInfo::params(), and DtParamInfo::semantics().
Referenced by mergeInteractionClasses().
|
virtual |
Merge the given routing spaces with this.
References DtMergeFomStatusSuccess, and mergeDimensions().
|
virtual |
Merge the given switches with this.
References DtMergeFomStatusFailedSwitches, DtMergeFomStatusSuccess, and setConveyRegionDesignatorSets().
|
virtual |
Get the number of classes.
References myClasses.
Referenced by DtNetStatsMonitor::createSerializedTreesAndSend(), DtNetStatsMonitor::gatherClassDataAndSend(), DtFedExec::processJoin(), and DtObjectMgr::processResign().
|
virtual |
Get num interactions.
References myInteractions.
Referenced by DtNetStatsMonitor::createSerializedTreesAndSend(), DtNetStatsMonitor::gatherClassDataAndSend(), DtFedExec::processJoin(), and DtInteractionMgr::processResign().
|
protected |
Helper function for insertion and merging. Where should class be inserted.
References myClasses, and DtObjectClassInfo::name().
Referenced by addObjClassSorted().
|
protected |
Helper function for insertion and merging.
.Check for presence of name between start and end Index.
References myClasses, and DtObjectClassInfo::name().
Referenced by addObjClassSorted().
|
virtual |
Returns the root object class descriptor.
References myClasses, and theObjectRootHandle.
Referenced by DtNetStatsMonitor::createSerializedTreesAndSend(), initDMFilteringParameters(), DtNetStatsMonitor::sendAttributeNames(), and DtNetStatsMonitor::sendInitAttrState().
|
virtual |
Returns the handle of the root object.
References theObjectRootHandle.
|
protected |
assignment operator (not implemented)
|
virtual |
Get parameter handle from name.
References DtInvalidHandle, interactionByHandle(), and DtInteractionClassInfo::paramHandle().
|
virtual |
Get parameter name from handle Returns pointer to internal memory.
References interactionByHandle(), and DtInteractionClassInfo::paramName().
| int DtFomClassMgr::positionOfRate | ( | float | rate | ) | const |
Get the position of this rate (sorted ascending).
First position is 1 and 0 indicates rate not found.
Referenced by DtObjectMgr::addClassMulticast(), and DtObjectMgr::removeClassMulticast().
|
virtual |
Prepare the state information to be restored (i.e., clear out existing data).
Referenced by DtRtiExecFederateMgr::prepareToRestoreLRC().
|
virtual |
Print the contents.
References myClasses, and myInteractions.
|
virtual |
References myClasses, and myInteractions.
Referenced by initDMFilteringParameters().
|
protected |
References DtAttrInfo::addDimension(), DtObjectClassInfo::attrByName(), classByName(), className(), DtGlobalSpaceHandle, and DtInvalidHandle.
Referenced by resolveAttributes().
|
protected |
References DtInvalidHandle, myClasses, and resolveAttributeDimensions().
|
protected |
|
protected |
References myInteractions, and resolveInteractionDimensions().
|
protected |
References DtInteractionClassInfo::addDimension(), DtGlobalSpaceHandle, DtInvalidHandle, interactionByName(), and interactionName().
Referenced by resolveInteractionClasses().
|
protected |
|
protected |
|
virtual |
Restore the state information from the given file.
References DtRtiSaveInteractionClassType, DtRtiSaveObjectClassType, DtObjectClassPacket::header, DtInteractionClassPacket::header, myClasses, myInteractions, DtSaveDataHeader::packetType, and DtRtiSaveFile::readNextPacket().
Referenced by DtRtiExecFederateMgr::restoreLRC().
|
virtual |
save and restore
Save the state information to the given file
References myClasses, and myInteractions.
Referenced by DtRtiExecFederateMgr::saveLRC().
|
virtual |
switches
Overrides setConveyRegionDesignatorSets to ensure we are properly respecting the RID file configuration
References myOverrideConveyRegions.
Referenced by DtFomClassMgr(), and mergeSwitches().
|
static |
Call this function to set an alternate creator function With this function, users can replace this DtFomClassMgr with their own derived class.
References create(), DtBindCreator(), and theCreator.
|
virtual |
set/get 1.3 and 1516 interoperability status
References my13and1516interop.
Referenced by DtFedExec::processCreateReady(), DtFedExec::processJoin(), DtFederateMgr::testReadFedFile(), and DtRtiExecFederateMgr::testReadFomModules().
| float DtFomClassMgr::updateRateByName | ( | const char * | name | ) |
Get the rate (Float) from an Update rate by its name.
Referenced by initUpdateRates().
|
protected |
Indicates that 13 and 1516 interoperability is enabled.
Referenced by extend13and1516interop(), and setExtend13and1516interop().
|
protected |
Object classes.
Referenced by addObjClassSorted(), addObjClassUnsorted(), classByHandle(), classByName(), DtFomClassMgr(), mergeObjectClasses(), numClasses(), objectClassPosition(), objectClassPresent(), objectRootClass(), print(), printDMSubscriptions(), resolveAttributes(), restore(), save(), and ~DtFomClassMgr().
| unsigned long DtFomClassMgr::myCrc |
This is 0 by default.
If its explicitly set, then it will be the CRC of the file read into this DtFomClassMgr. if it is 0, then it could either be a merged file (made up of multiple files, so we don't know the CRC of that) or is just some uninitialized DtFomClassMgr
Referenced by DtFederateMgr::addToParsedFomMap().
|
protected |
Indicates that backwards compatibility is enabled.
Referenced by addAttribute(), addInterClass(), addObjClass(), addParameter(), addSpace(), init(), mergeAttributes(), and mergeParameters().
|
protected |
First interaction class handle of MOM interactions.
Referenced by addInterClassSorted().
|
protected |
First object class handle of MOM objects.
Referenced by addObjClassSorted().
|
protected |
Interaction classes.
Referenced by addInterClassSorted(), addInterClassUnsorted(), DtFomClassMgr(), interactionByHandle(), interactionByName(), interactionClassPosition(), interactionClassPresent(), interactionRootClass(), mergeInteractionClasses(), numInteractions(), print(), printDMSubscriptions(), resolveInteractionClasses(), restore(), save(), and ~DtFomClassMgr().
|
mutableprotected |
Cached value for the last interaction class lookup.
When merging interactions we sometimes lookup the same class name multiple times.
Referenced by addInterClassSorted(), addInterClassUnsorted(), and interactionByName().
|
mutableprotected |
Cached value for the last object class lookup.
When merging objects we sometimes lookup the same class name multiple times.
Referenced by classByName().
|
protected |
RID file specifies to override the FOM convey regions switch.
Referenced by DtFomClassMgr(), and setConveyRegionDesignatorSets().
|
staticprotected |
Creator function creates instance of this class or subclass.
Referenced by create(), and setCreatorFunction().