![]() |
MAK RTIspy API Documentation for HLA Evolved
|
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 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 | 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 void | 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 void | addInterClassUnsorted (const char *name, const char *baseName, MAKRti::DtTransportType transport, MAKRti::DtOrderType order, DtSpaceHandle spaceH, DtInteractionClassInfo *baseClass, DtSharingType sharing, const MAKRti::DtString &semantics) |
| void | 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. | |
| void | 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 | 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. | |
| DtFomClassMgr::DtFomClassMgr | ( | DtRIDParameters * | params | ) | [protected] |
Constructor - used by create.
References DtRIDParameters::attributeRelevanceAdvisorySwitch, DtRIDParameters::autoProvideSwitch, DtRIDParameters::conveyProducingFederateSwitch, DtRIDParameters::exceptionReportingSwitch, init(), DtRIDParameters::interactionRelevanceAdvisorySwitch, myOverrideConveyRegions, and setConveyRegionDesignatorSets().
| DtFomClassMgr::DtFomClassMgr | ( | ) | [protected] |
| DtFomClassMgr::DtFomClassMgr | ( | const DtFomClassMgr & | orig | ) |
Copy Constructor - must use clone instead.
References myClasses, and myInteractions.
| DtFomClassMgr::~DtFomClassMgr | ( | ) | [virtual] |
Destructor.
References DtDeleteVectorOfPointers(), myClasses, and myInteractions.
| void DtFomClassMgr::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 |
||
| ) | [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(), and DtObjectClassInfo::numAttributes().
Referenced by addAttribute().
| void DtFomClassMgr::addAttribute | ( | const char * | className, |
| const char * | attrName, | ||
| MAKRti::DtTransportType | transport, | ||
| MAKRti::DtOrderType | order, | ||
| const char * | spaceName = NULL |
||
| ) | [virtual] |
References addAttribute(), DtFomUpdateTypeNA, DtOwnershipTypeNoTransfer, and DtSharingTypePublishSubscribe.
| bool DtFomClassMgr::addAttributeDimension | ( | const char * | className, |
| const char * | attrName, | ||
| const char * | dimName | ||
| ) | [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().
| void DtFomClassMgr::addDimension | ( | const char * | spaceName, |
| const char * | dimName | ||
| ) | [virtual] |
Define a dimension within a routing space.
Used when initializing from FED file.
References extend13and1516interop().
| void DtFomClassMgr::addDimension | ( | const char * | dimName, |
| unsigned long | upperBound, | ||
| unsigned long | defaultLowerBound, | ||
| unsigned long | defaultUpperBound, | ||
| bool | excluded | ||
| ) | [virtual] |
Define a dimension. Used when initializing from FED file.
References DtDefaultSpaceHandle, and DtGlobalSpaceHandle.
| bool DtFomClassMgr::addInteractionDimension | ( | const char * | interactionName, |
| const char * | dimension | ||
| ) | [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().
| void DtFomClassMgr::addInterClass | ( | const char * | name, |
| const char * | baseName, | ||
| MAKRti::DtTransportType | transport, | ||
| MAKRti::DtOrderType | order, | ||
| DtSharingType | sharing, | ||
| const MAKRti::DtString & | semantics, | ||
| const char * | space = NULL |
||
| ) | [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.
| void DtFomClassMgr::addInterClassSorted | ( | const char * | name, |
| const char * | baseName, | ||
| MAKRti::DtTransportType | transport, | ||
| MAKRti::DtOrderType | order, | ||
| DtSpaceHandle | spaceH, | ||
| DtInteractionClassInfo * | baseClass, | ||
| DtSharingType | sharing, | ||
| const MAKRti::DtString & | semantics | ||
| ) | [protected, virtual] |
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().
| void DtFomClassMgr::addInterClassUnsorted | ( | const char * | name, |
| const char * | baseName, | ||
| MAKRti::DtTransportType | transport, | ||
| MAKRti::DtOrderType | order, | ||
| DtSpaceHandle | spaceH, | ||
| DtInteractionClassInfo * | baseClass, | ||
| DtSharingType | sharing, | ||
| const MAKRti::DtString & | semantics | ||
| ) | [protected, virtual] |
References myInteractions, myMutableLastInterClassLookup, DtInteractionClassInfo::setFomType(), and DtInteractionClassInfo::setSpaceHandle().
Referenced by 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().
| void DtFomClassMgr::addObjClass | ( | const char * | name, |
| const char * | baseName | ||
| ) | [virtual] |
Define a class. Used when initializing from FED file.
References addObjClass(), and DtSharingTypePublishSubscribe.
| void DtFomClassMgr::addObjClassSorted | ( | const char * | name, |
| const char * | baseName, | ||
| DtSharingType | sharing, | ||
| const MAKRti::DtString & | semantics, | ||
| DtObjectClassInfo * | baseClass | ||
| ) | [protected] |
Add a new object class with sorted or unsorted (deprecated) handles.
References myClasses, myFirstMomObjectHandle, objectClassPosition(), objectClassPresent(), and DtObjectClassInfo::setFomType().
Referenced by addObjClass().
| void DtFomClassMgr::addObjClassUnsorted | ( | const char * | name, |
| const char * | baseName, | ||
| DtSharingType | sharing, | ||
| const MAKRti::DtString & | semantics, | ||
| DtObjectClassInfo * | baseClass | ||
| ) | [protected] |
References myClasses, and DtObjectClassInfo::setFomType().
Referenced by addObjClass().
| void DtFomClassMgr::addParameter | ( | const char * | className, |
| const char * | paramName | ||
| ) | [virtual] |
Referenced by addTestToFom().
| void DtFomClassMgr::addParameter | ( | const char * | className, |
| const char * | paramName, | ||
| const char * | semantics | ||
| ) | [virtual] |
Define an parameter of a class.
Used when initializing from FED file.
References DtInteractionClassInfo::addParam(), interactionByName(), and myEnableFomBackwardsCompatibility.
| void DtFomClassMgr::addSpace | ( | const char * | name | ) | [virtual] |
FED file loading functions.
Define a routing space. Used when initializing from FED file.
References myEnableFomBackwardsCompatibility.
Referenced by mergeDimensions().
| DtAttributeHandle DtFomClassMgr::attrHandle | ( | const char * | theName, |
| DtObjectClassHandle | whichClass, | ||
| bool | throwException = true |
||
| ) | [virtual] |
Get attribute handle from name.
References DtObjectClassInfo::attrHandle(), classByHandle(), and DtInvalidHandle.
| const char * DtFomClassMgr::attrName | ( | DtAttributeHandle | theHandle, |
| DtObjectClassHandle | whichClass, | ||
| bool | throwException = true |
||
| ) | [virtual] |
Get attribute name from handle Returns pointer to internal memory.
References DtObjectClassInfo::attrName(), and classByHandle().
| bool DtFomClassMgr::attrPresent | ( | const char * | name, |
| DtObjectClassInfo * | classInfo, | ||
| unsigned int | startIndex = 0, |
||
| unsigned int | endIndex = 0 |
||
| ) | const [protected] |
References DtObjectClassInfo::attrs(), and DtAttrInfo::name().
| DtObjectClassInfo * DtFomClassMgr::classByHandle | ( | DtObjectClassHandle | handle | ) | const [virtual] |
Returns the class descriptor for the handle.
References myClasses.
Referenced by DtRtiObject::acquireRemoteSubscriptions(), DtObjectMgr::addPendingRegister(), attrHandle(), attrName(), className(), DtRtiObject::decode(), DtObjectMgr::processGiveToLrc(), DtObjectMgr::processNewObj(), DtObjectMgr::processPub(), DtObjectMgr::processRegister(), DtObjectMgr::processResign(), DtObjectMgr::processSub(), DtObjectMgr::processUnsub(), DtObjectMgr::processUpdate(), DtObjectMgr::publish(), DtObjectMgr::published(), DtObjectMgr::registerObj(), DtObjectMgr::requestClassUpdate(), DtObjectMgr::sendPendingStopReg(), DtObjectMgr::sendPendingSubscription(), DtObjectMgr::setDiscoveredClass(), DtObjectMgr::subscribe(), DtObjectMgr::subscribed(), DtObjectMgr::unpublishAttributes(), DtObjectMgr::unpublishClass(), DtObjectMgr::unsubscribeAttributes(), and DtObjectMgr::unsubscribeClass().
| DtObjectClassInfo * DtFomClassMgr::classByName | ( | const char * | name | ) | const [virtual] |
Returns the class descriptor for the name.
References myClasses, and myMutableLastObjClassLookup.
Referenced by addAttribute(), addAttributeDimension(), addObjClass(), classHandle(), initDMFilteringParameters(), initUpdateRates(), mergeAttributes(), mergeObjectInfo(), and resolveAttributeDimensions().
| DtObjectClassHandle DtFomClassMgr::classHandle | ( | const char * | theName, |
| bool | throwException = true |
||
| ) | [virtual] |
Querying functions.
Get class handle from name
References classByName(), DtInvalidHandle, and DtObjectClassInfo::handle().
| const char * DtFomClassMgr::className | ( | DtObjectClassHandle | theHandle, |
| bool | throwException = true |
||
| ) | [virtual] |
Get class name from handle.
Returns pointer to internal memory.
References classByHandle(), and DtObjectClassInfo::name().
Referenced by resolveAttributeDimensions().
| DtFomClassMgr * DtFomClassMgr::clone | ( | ) | [virtual] |
Return a copy of this instance.
References DtFomClassMgr().
Referenced by DtRtiExecFederateMgr::mergeFomModules(), DtFedExec::processJoin(), and DtFederateMgr::readFedFile().
| DtFomClassMgr * DtFomClassMgr::create | ( | DtRIDParameters * | p | ) | [static] |
Creates an instance of a DtFomClassMgr.
References DtFomClassMgr(), and theCreator.
Referenced by DtFedExec::processCreateReady(), DtFedExec::processJoin(), setCreatorFunction(), DtFederateMgr::testReadFedFile(), and DtRtiExecFederateMgr::testReadFomModules().
| bool DtFomClassMgr::extend13and1516interop | ( | ) | const [virtual] |
References my13and1516interop.
Referenced by addAttribute(), addDimension(), and addInterClass().
| const MAKRti::DtUpdateRateSetT & DtFomClassMgr::getUpdateRates | ( | ) | const |
Get a set of the update Rates.
| void DtFomClassMgr::init | ( | ) | [protected] |
References DtDefaultSpaceHandle, DtGlobalSpaceHandle, and myEnableFomBackwardsCompatibility.
Referenced by DtFomClassMgr().
| void DtFomClassMgr::initDMFilteringParameters | ( | const DtRIDParameters * | params | ) | [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().
| void DtFomClassMgr::initUpdateRates | ( | DtRIDParameters * | params | ) | [virtual] |
| DtInteractionClassInfo * DtFomClassMgr::interactionByHandle | ( | DtInteractionClassHandle | handle | ) | const [virtual] |
Returns the class descriptor for the handle.
References myInteractions.
Referenced by DtInteractionMgr::getTransport(), interactionName(), DtInteractionMgr::localAddrMap(), paramHandle(), paramName(), DtInteractionMgr::processInteraction(), DtInteractionMgr::processPub(), DtInteractionMgr::processResign(), DtInteractionMgr::processSub(), DtInteractionMgr::processUnsub(), DtInteractionMgr::publish(), DtInteractionMgr::published(), DtInteractionMgr::send(), DtInteractionMgr::sendInteractionMsg(), DtInteractionMgr::setOrder(), DtInteractionMgr::setTransport(), DtInteractionMgr::subscribe(), DtInteractionMgr::subscribed(), DtInteractionMgr::unpublish(), and DtInteractionMgr::unsubscribe().
| DtInteractionClassInfo * DtFomClassMgr::interactionByName | ( | const char * | name | ) | const [virtual] |
Returns the class descriptor for the name.
References myInteractions, and myMutableLastInterClassLookup.
Referenced by addInteractionDimension(), addInterClass(), addParameter(), addTestToFom(), DtTestInteraction::DtTestInteraction(), initDMFilteringParameters(), interactionHandle(), mergeInteractionInfo(), and mergeParameters().
| unsigned int DtFomClassMgr::interactionClassPosition | ( | const char * | name, |
| unsigned int | startIndex = 0, |
||
| unsigned int | endIndex = 0 |
||
| ) | const [protected] |
References myInteractions, and DtInteractionClassInfo::name().
Referenced by addInterClassSorted().
| bool DtFomClassMgr::interactionClassPresent | ( | const char * | name, |
| unsigned int | startIndex = 0, |
||
| unsigned int | endIndex = 0 |
||
| ) | const [protected] |
References myInteractions, and DtInteractionClassInfo::name().
Referenced by addInterClassSorted().
| DtInteractionClassHandle DtFomClassMgr::interactionHandle | ( | const char * | theName, |
| bool | throwException = true |
||
| ) | [virtual] |
Get class handle from name.
References DtInvalidHandle, DtInteractionClassInfo::handle(), and interactionByName().
| const char * DtFomClassMgr::interactionName | ( | DtInteractionClassHandle | theHandle, |
| bool | throwException = true |
||
| ) | [virtual] |
Get class name from handle.
Returns pointer to internal memory.
References interactionByHandle(), and DtInteractionClassInfo::name().
| DtInteractionClassInfo * DtFomClassMgr::interactionRootClass | ( | ) | const [virtual] |
Returns the root interaction class descriptor.
References myInteractions, and theInteractionRootHandle.
Referenced by addTestToFom(), initDMFilteringParameters(), DtFomStateXmlBlock::setFom(), and DtPubSubXmlBlock::updatePubsAndSubs().
| DtInteractionClassHandle DtFomClassMgr::interactionRootHandle | ( | ) | const [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().
| void DtFomClassMgr::mergeAttributes | ( | DtObjectClassInfo const & | classInfo, |
| DtFomClassMgr const & | module | ||
| ) | [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().
| DtMergeFomStatus DtFomClassMgr::mergeDimensions | ( | DtSpaceInfo const & | spaceInfo | ) | [virtual] |
Merge the given dimensions into the same space in this FOM.
References addSpace(), DtMergeFomStatusFailedDimensions, and DtMergeFomStatusSuccess.
Referenced by mergeSpaces().
| DtMergeFomStatus DtFomClassMgr::mergeInteractionClasses | ( | DtFedTarget const & | module | ) | [virtual] |
Merge the contents of the specified interactionClasses with this.
References DtMergeFomStatusAlreadyPresentSuccess, DtMergeFomStatusSuccess, mergeInteractionInfo(), mergeParameters(), myInteractions, and DtInteractionClassInfo::spaceHandle().
| DtMergeFomStatus DtFomClassMgr::mergeInteractionInfo | ( | DtInteractionClassInfo const & | interInfo, |
| const char * | spaceName = 0 |
||
| ) | [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().
| DtMergeFomStatus DtFomClassMgr::mergeObjectClasses | ( | DtFedTarget const & | module | ) | [virtual] |
Merge the contents of the specified FomMgr with this.
References DtMergeFomStatusAlreadyPresentSuccess, DtMergeFomStatusSuccess, mergeAttributes(), mergeObjectInfo(), and myClasses.
| DtMergeFomStatus DtFomClassMgr::mergeObjectInfo | ( | DtObjectClassInfo const & | classInfo | ) | [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().
| void DtFomClassMgr::mergeParameters | ( | DtInteractionClassInfo const & | interInfo | ) | [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().
| DtMergeFomStatus DtFomClassMgr::mergeSpaces | ( | DtFedTarget const & | module | ) | [virtual] |
Merge the given routing spaces with this.
References DtMergeFomStatusSuccess, and mergeDimensions().
| DtMergeFomStatus DtFomClassMgr::mergeSwitches | ( | DtFedTarget const & | module | ) | [virtual] |
Merge the given switches with this.
References DtMergeFomStatusFailedSwitches, DtMergeFomStatusSuccess, and setConveyRegionDesignatorSets().
| int DtFomClassMgr::numClasses | ( | ) | const [virtual] |
| int DtFomClassMgr::numInteractions | ( | ) | const [virtual] |
| unsigned int DtFomClassMgr::objectClassPosition | ( | const char * | name, |
| unsigned int | startIndex = 0, |
||
| unsigned int | endIndex = 0 |
||
| ) | const [protected] |
Helper function for insertion and merging. Where should class be inserted.
References myClasses, and DtObjectClassInfo::name().
Referenced by addObjClassSorted().
| bool DtFomClassMgr::objectClassPresent | ( | const char * | name, |
| unsigned int | startIndex = 0, |
||
| unsigned int | endIndex = 0 |
||
| ) | const [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().
| DtObjectClassInfo * DtFomClassMgr::objectRootClass | ( | ) | const [virtual] |
Returns the root object class descriptor.
References myClasses, and theObjectRootHandle.
Referenced by initDMFilteringParameters(), DtFomStateXmlBlock::setFom(), and DtPubSubXmlBlock::updatePubsAndSubs().
| DtObjectClassHandle DtFomClassMgr::objectRootHandle | ( | ) | const [virtual] |
Returns the handle of the root object.
References theObjectRootHandle.
| DtFomClassMgr& DtFomClassMgr::operator= | ( | const DtFomClassMgr & | orig | ) | [protected] |
assignment operator (not implemented)
| DtParameterHandle DtFomClassMgr::paramHandle | ( | const char * | theName, |
| DtInteractionClassHandle | whichClass, | ||
| bool | throwException = true |
||
| ) | [virtual] |
Get parameter handle from name.
References DtInvalidHandle, interactionByHandle(), and DtInteractionClassInfo::paramHandle().
| const char * DtFomClassMgr::paramName | ( | DtParameterHandle | theHandle, |
| DtInteractionClassHandle | whichClass, | ||
| bool | throwException = true |
||
| ) | [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().
| void DtFomClassMgr::prepareToRestore | ( | ) | [virtual] |
Prepare the state information to be restored (i.e., clear out existing data).
Referenced by DtRtiExecFederateMgr::prepareToRestoreLRC().
| void DtFomClassMgr::print | ( | ) | const [virtual] |
Print the contents.
References myClasses, and myInteractions.
| void DtFomClassMgr::printDMSubscriptions | ( | ) | [virtual] |
References myClasses, and myInteractions.
Referenced by initDMFilteringParameters().
| bool DtFomClassMgr::resolveAttributeDimensions | ( | MAKRti::DtString & | errorString | ) | [protected] |
References DtAttrInfo::addDimension(), DtObjectClassInfo::attrByName(), classByName(), className(), DtGlobalSpaceHandle, and DtInvalidHandle.
Referenced by resolveAttributes().
| bool DtFomClassMgr::resolveAttributes | ( | MAKRti::DtString & | errorString | ) | [protected] |
References DtInvalidHandle, myClasses, and resolveAttributeDimensions().
| bool DtFomClassMgr::resolveDimensions | ( | MAKRti::DtString & | errorString | ) | [protected] |
| bool DtFomClassMgr::resolveInteractionClasses | ( | MAKRti::DtString & | errorString | ) | [protected] |
References myInteractions.
| bool DtFomClassMgr::resolveObjectClasses | ( | MAKRti::DtString & | errorString | ) | [protected] |
| bool DtFomClassMgr::resolveParameters | ( | MAKRti::DtString & | errorString | ) | [protected] |
| bool DtFomClassMgr::restore | ( | DtRtiSaveFile & | file | ) | [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().
| bool DtFomClassMgr::save | ( | DtRtiSaveFile & | file | ) | [virtual] |
save and restore
Save the state information to the given file
References myClasses, and myInteractions.
Referenced by DtRtiExecFederateMgr::saveLRC().
| void DtFomClassMgr::setConveyRegionDesignatorSets | ( | bool | value | ) | [virtual] |
switches
Overrides setConveyRegionDesignatorSets to ensure we are properly respecting the RID file configuration
References myOverrideConveyRegions.
Referenced by DtFomClassMgr(), and mergeSwitches().
| void DtFomClassMgr::setCreatorFunction | ( | DtFomClassMgrCreator | fn | ) | [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.
| void DtFomClassMgr::setExtend13and1516interop | ( | bool | enable | ) | [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().
bool DtFomClassMgr::my13and1516interop [protected] |
Indicates that 13 and 1516 interoperability is enabled.
Referenced by extend13and1516interop(), and setExtend13and1516interop().
DtObjectClassVector DtFomClassMgr::myClasses [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().
bool DtFomClassMgr::myEnableFomBackwardsCompatibility [protected] |
Indicates that backwards compatibility is enabled.
Referenced by addAttribute(), addInterClass(), addObjClass(), addParameter(), addSpace(), init(), mergeAttributes(), and mergeParameters().
int DtFomClassMgr::myFirstMomInteractionHandle [protected] |
First interaction class handle of MOM interactions.
Referenced by addInterClassSorted().
int DtFomClassMgr::myFirstMomObjectHandle [protected] |
First object class handle of MOM objects.
Referenced by addObjClassSorted().
Interaction classes.
Referenced by addInterClassSorted(), addInterClassUnsorted(), DtFomClassMgr(), interactionByHandle(), interactionByName(), interactionClassPosition(), interactionClassPresent(), interactionRootClass(), mergeInteractionClasses(), numInteractions(), print(), printDMSubscriptions(), resolveInteractionClasses(), restore(), save(), and ~DtFomClassMgr().
DtInteractionClassHandle DtFomClassMgr::myMutableLastInterClassLookup [mutable, protected] |
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().
DtObjectClassHandle DtFomClassMgr::myMutableLastObjClassLookup [mutable, protected] |
Cached value for the last object class lookup.
When merging objects we sometimes lookup the same class name multiple times.
Referenced by classByName().
bool DtFomClassMgr::myOverrideConveyRegions [protected] |
RID file specifies to override the FOM convey regions switch.
Referenced by DtFomClassMgr(), and setConveyRegionDesignatorSets().
DtFomClassMgrCreator DtFomClassMgr::theCreator = 0 [static, protected] |
Creator function creates instance of this class or subclass.
Referenced by create(), and setCreatorFunction().