![]() |
MAK RTIspy API Documentation for HLA Evolved
|
Collaboration diagram for DtInteractionClassInfo:Public Types | |
| typedef std::map < DtInteractionClassHandle, DtInteractionClassInfo * > | DtInteractionClassByHandleMap |
| typedef std::map < MAKRti::DtString, DtInteractionClassInfo * > | DtInteractionClassByNameMap |
Public Member Functions | |
| DtInteractionClassInfo (const char *name, DtInteractionClassInfo *base, DtInteractionClassHandle handle, DtSharingType sharing, MAKRti::DtString semantics, MAKRti::DtTransportType transport, MAKRti::DtOrderType order) | |
| Constructors. More... | |
| DtInteractionClassInfo (const DtInteractionClassInfo &orig) | |
| Copy constructor (not implemented) More... | |
| DtInteractionClassInfo & | operator= (const DtInteractionClassInfo &orig) |
| Assignment operator (not implemented) More... | |
| virtual | ~DtInteractionClassInfo () |
| Destructor. More... | |
| virtual DtParamInfo * | addParam (const char *paramName, const char *semantics, bool addSorted) |
| Adds an parameter to the class (called during FED processing). More... | |
| virtual DtParamInfo * | mergeParam (const char *paramName, const char *semantics) |
| Adds an parameter to the class (called during FED processing). More... | |
| virtual void | addSubclass (DtInteractionClassInfo *sub) |
| Add a subclass (called during FED processing). More... | |
| virtual const char * | name () const |
| Return class name, as in FED. More... | |
| virtual DtInteractionClassInfo * | baseClass () const |
| Return pointer to base class descriptor. More... | |
| virtual void | setBaseClass (DtInteractionClassInfo *base) |
| Set base class pointer (used when deep copying FOM target not when constructing target) More... | |
| virtual int | isOfClass (DtInteractionClassHandle handle) const |
| Returns 1 if this class is handle or is a subclass of handle. More... | |
| virtual bool | isMom () |
| Return true if this is a MOM class. More... | |
| virtual bool | isRoot () |
| Return true if this is the Root class. More... | |
| virtual int | numParameters () const |
| Returns the number of parameters. More... | |
| virtual DtParameterByHandleMap const & | params () const |
| Returns the list of parameter infos. More... | |
| virtual DtParameterByHandleMap const & | ownParams () const |
| Returns the set of parameter infos just from this class. More... | |
| virtual DtParameterHandleSet const & | parameterHandles () const |
| Return the set of parameter handles. More... | |
| virtual DtParameterHandle | paramHandle (const char *theName) |
| Get parameter handle from name. More... | |
| virtual char * | paramName (DtParameterHandle theHandle) |
| Get parameter name from handle. More... | |
| virtual void | publish (DtInteractionMgr *interMgr) |
| Publish this class. More... | |
| virtual void | unpublish () |
| Unpublish this class. More... | |
| virtual int | published () const |
| Return 1 if we are publishing this class, 0 otherwise. More... | |
| virtual void | subscribe (bool active) |
| Subscribe this class. More... | |
| virtual void | unsubscribe () |
| Unsubscribe this class. More... | |
| virtual int | subscribed () const |
| Return 1 if we are subscribed to this class, 0 otherwise. More... | |
| virtual void | remoteSubscribe (DtFederateHandle fedHandle, DtInteractionMgr *interMgr) |
| Call when another federate subscribes to this class actively. More... | |
| virtual void | remotePassiveSubscribe (DtFederateHandle fedHandle, DtInteractionMgr *interMgr) |
| Call when another federate subscribes to this class passively. More... | |
| virtual void | remoteUnsubscribe (DtFederateHandle fedHandle, DtInteractionMgr *interMgr, bool forSmartForwarding) |
| Call when another federate unsubscribes to this class. More... | |
| virtual bool | remoteFederateIsSubscribed (DtFederateHandle fedHandle) const |
| Returns true if the remote federate is subscribed to this class. More... | |
| virtual int | numRemoteFederatesSubscribed () const |
| Returns number of remote federates subscribed to this class. More... | |
| virtual const MAKRti::DtList & | subscribedFederates () const |
| Returns a list of federates who are subscribed to this interaction. More... | |
| virtual bool | relevant () const |
| Returns true if the class is relevant, false otherwise. More... | |
| virtual bool | isScaffolding () const |
| Determines whether the class is a scaffolding class. More... | |
| virtual bool | diffClass (const DtInteractionClassInfo &classInfo, DtParameterByHandleMap &diff) const |
| First test given class for equality excluding parameters. More... | |
| virtual 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. More... | |
| virtual void | setIsUnknown (bool unknown) |
| Set whether this class is well defined. More... | |
| virtual bool | sameInteractionClass (const DtInteractionClassInfo &interInfo, DtParameterByHandleMap *collectParametersToMerge) const |
| Compare the given interaction classes If not Null, collect parameters to merge from supplied class; otherwise, extra parameters are invalid. More... | |
| virtual bool | sameParameters (const DtParameterByHandleMap ¶mHandles, DtParameterByHandleMap *collectParametersToMerge) const |
| Compare the given parameter handles with the handles of this interaction (only ones where names match if missing parameters are allowed) More... | |
| virtual bool | diffParameters (const DtInteractionClassInfo &classInfo, DtParameterByHandleMap &diff) const |
| Take the difference of own parameters between classes: the given class info from this class info. More... | |
| virtual void | setFomType (MAKRti::DtFomType type) |
| Set/Get FOM type. More... | |
| virtual MAKRti::DtFomType | fomType () const |
| Set/Get FOM type. More... | |
| virtual DtDimensionHandleStdSet const & | dimensions () const |
| Set/Get dimensions. More... | |
| virtual void | setDimensions (DtDimensionHandleStdSet const &dimList) |
| Set/Get dimensions. More... | |
| virtual void | addDimension (DtDimensionHandle dimHandle) |
| Add/Remove a dimension handle. More... | |
| virtual void | removeDimension (DtDimensionHandle dimHandle) |
| Add/Remove a dimension handle. More... | |
| virtual bool | isName (const char *name) const |
| Return boolean: name matches? Compare depends on FOM type: insensitive for 1.3 and sensitive for 1516. More... | |
| virtual bool | isFullName (const char *name) const |
| Root name is required. More... | |
| virtual DtInteractionClassHandle | handle () const |
| Get/set class handle. More... | |
| virtual void | setHandle (DtInteractionClassHandle handleValue) |
| Get/set class handle. More... | |
| virtual DtInteractionClassHandle | discoveredHandle () const |
| Get/set discovered class handle This value is always 0 if isUnknown() is false. More... | |
| virtual void | setDiscoveredHandle (DtInteractionClassHandle handleValue) |
| Get/set discovered class handle This value is always 0 if isUnknown() is false. More... | |
| virtual const DtInteractionClassByHandleMap & | subclasses () const |
| Return list of subclasses. More... | |
| virtual DtInteractionClassByHandleMap & | subclasses () |
| Return list of subclasses. More... | |
| virtual DtParamInfo * | paramByHandle (const DtParameterHandle theHandle) |
| Get parameter descriptor by name. More... | |
| virtual const DtParamInfo * | paramByHandle (const DtParameterHandle theHandle) const |
| Get parameter descriptor by name. More... | |
| virtual DtParamInfo * | paramByName (const char *theName) |
| Get parameter descriptor by handle. More... | |
| virtual const DtParamInfo * | paramByName (const char *theName) const |
| Get parameter descriptor by handle. More... | |
| virtual MAKRti::DtTransportType | transport () const |
| Set/Get transport type representing transport mechanism. More... | |
| virtual void | setTransport (MAKRti::DtTransportType theTransport) |
| Set/Get transport type representing transport mechanism. More... | |
| DtSharingType | sharing () const |
| Set/Get sharing (pub/sub) More... | |
| void | setSharing (const DtSharingType sharing) |
| Set/Get sharing (pub/sub) More... | |
| const char * | semantics () const |
| Set/Get semantics. More... | |
| void | setSemantics (const MAKRti::DtString &semantics) |
| Set/Get semantics. More... | |
| virtual MAKRti::DtOrderType | order () const |
| Set/Get order type. More... | |
| virtual void | setOrder (MAKRti::DtOrderType theOrder) |
| Set/Get order type. More... | |
| virtual void | setSpaceHandle (DtSpaceHandle spaceHandleValue) |
| Return the space handle. More... | |
| virtual DtSpaceHandle | spaceHandle () const |
| Return the space handle. More... | |
| virtual MAKRti::DtInetAddr | destinationAddress () const |
| Get the destination address used to send when using DM Filtering. More... | |
| virtual MAKRti::DtInetAddr | destinationDevice () const |
| Get the destination device used to send when using DM Filtering. More... | |
| virtual void | setDestination (MAKRti::DtInetAddr addr, MAKRti::DtInetAddr devAddr, bool inclusive, MAKRti::DtInetAddr oldAddr, MAKRti::DtInetAddr oldDevAddr) |
| Set the destination address and device used to send when using DM Filtering. More... | |
| virtual int | subscribedWithRegion () const |
| Return 1 if we are subscribed to this class with region, 0 otherwise. More... | |
| virtual DtBitMask | getDestinations (bool includeBaseClass=true) const |
| Get the list of remote subscribers to the class = update destinations The base class destination masks are added unless specified otherwise. More... | |
| virtual void | forceDestinations (DtBitMask const &mask, MAKRti::DtTime delay) |
| Temporarily force destinations with this mask for given delay A negative time delay will force the destinations indefinitely. More... | |
| virtual void | overrideDestinations (DtBitMask const &mask) |
| Permanently override destinations with given mask. More... | |
| virtual void | clearDestinationOverride () |
| Remove destination override. More... | |
| virtual bool | save (DtRtiSaveFile &file) |
| Save (volatile) contents of this class. More... | |
| virtual bool | restore (DtInteractionClassPacket *packet) |
| Restore (volatile) contents of this class. More... | |
| virtual void | print () const |
| Print the contents. More... | |
| virtual bool | sameAncestry (const DtInteractionClassInfo *) const |
| Test for equality. More... | |
| bool | operator== (const DtInteractionClassInfo &other) const |
| Return the space handle. More... | |
| bool | operator!= (const DtInteractionClassInfo &other) const |
| Return the space handle. More... | |
Static Public Member Functions | |
| static const char * | swapRootName (const char *name, MAKRti::DtFomType fomType, MAKRti::DtString &adjustedName) |
| Swap or add the root class name part of the given name to the this class' FOM type Return the adjusted name's c string. More... | |
Protected Member Functions | |
| virtual void | inheritMergedParameter (const DtParamInfo ¶m) |
| Inherit the given merged parameter from base class recursively through subclasses. More... | |
| virtual void | updateRelevance (DtInteractionMgr *interMgr) |
| Update the relevance field of this class and all subclasses, based on current subscriptions. More... | |
| virtual void | reIndexParametersByName (DtParamInfo *paramInfo) |
| The given parameter was just added with the next handle. More... | |
| virtual void | nameUpdateCheck () |
| Update indicators of root and MOM class. More... | |
| virtual void | emptyParameters () |
| Empty the parameter lists. More... | |
| void | addInheritedParameters (const DtInteractionClassInfo &baseClass) |
| Add an inherited parameter (makes copy of given parameter) More... | |
| void | addInheritedParameter (const DtParamInfo ¶mInfo) |
| Add inherited parameters from the given base class (makes copies of the parameters) More... | |
| void | addOwnParameter (DtParamInfo *paramInfo) |
| Add an own parameter. More... | |
| virtual void | addRemoteSubscription (DtFederateHandle fedHandle) |
| Add/delete remote subscription to this class by indicated federate. More... | |
| virtual void | addRemotePassiveSubscription (DtFederateHandle fedHandle) |
| Add/delete remote subscription to this class by indicated federate. More... | |
| virtual void | deleteRemoteSubscription (DtFederateHandle fedHandle, bool isForSmartForwarding=false) |
| Add/delete remote subscription to this class by indicated federate. More... | |
| void | updateAvailableParameterHandle (DtParameterHandle paramHandle) |
| The given parameter handle is now occupied. Update the next available parameter handle. More... | |
| void | updateAvailableParameterHandles (const DtParameterHandleStdSet &handles) |
| The given parameter handle is now occupied. Update the next available parameter handle. More... | |
| void | addUsedParameter (DtParameterHandle handle) |
| Add parameter handle(s) to used list by this class or one of its sub classes Recursively add to base classes. More... | |
| void | addUsedParameters (const DtParameterHandleStdSet &handles) |
| Add parameter handle(s) to used list by this class or one of its sub classes Recursively add to base classes. More... | |
Static Private Attributes | |
| static const unsigned int | theMaxParams |
| typedef std::map<DtInteractionClassHandle, DtInteractionClassInfo*> DtInteractionClassInfo::DtInteractionClassByHandleMap |
| typedef std::map<MAKRti::DtString, DtInteractionClassInfo*> DtInteractionClassInfo::DtInteractionClassByNameMap |
| DtInteractionClassInfo::DtInteractionClassInfo | ( | const char * | name, |
| DtInteractionClassInfo * | base, | ||
| DtInteractionClassHandle | handle, | ||
| DtSharingType | sharing, | ||
| MAKRti::DtString | semantics, | ||
| MAKRti::DtTransportType | transport, | ||
| MAKRti::DtOrderType | order | ||
| ) |
Constructors.
| DtInteractionClassInfo::DtInteractionClassInfo | ( | const DtInteractionClassInfo & | orig | ) |
Copy constructor (not implemented)
|
virtual |
Destructor.
|
virtual |
Add/Remove a dimension handle.
|
protected |
Add inherited parameters from the given base class (makes copies of the parameters)
|
protected |
Add an inherited parameter (makes copy of given parameter)
|
protected |
Add an own parameter.
|
virtual |
Adds an parameter to the class (called during FED processing).
|
protectedvirtual |
Add/delete remote subscription to this class by indicated federate.
|
protectedvirtual |
Add/delete remote subscription to this class by indicated federate.
|
virtual |
Add a subclass (called during FED processing).
|
protected |
Add parameter handle(s) to used list by this class or one of its sub classes Recursively add to base classes.
|
protected |
Add parameter handle(s) to used list by this class or one of its sub classes Recursively add to base classes.
|
virtual |
Return pointer to base class descriptor.
|
virtual |
Remove destination override.
|
protectedvirtual |
Add/delete remote subscription to this class by indicated federate.
|
virtual |
Get the destination address used to send when using DM Filtering.
|
virtual |
Get the destination device used to send when using DM Filtering.
|
virtual |
First test given class for equality excluding parameters.
Then take diff of its parameters from this info's parameters where matching parameters must be equal. Warning! - parameter diff is a shallow copy Returns true if class and matching parameters are the same; otherwise, false
|
virtual |
Take the difference of own parameters between classes: the given class info from this class info.
Warning! - diff is a shallow copy Returns true if matching parameters are the same; otherwise, false
|
virtual |
Set/Get dimensions.
|
virtual |
Get/set discovered class handle This value is always 0 if isUnknown() is false.
|
protectedvirtual |
Empty the parameter lists.
|
virtual |
Set/Get FOM type.
|
virtual |
Temporarily force destinations with this mask for given delay A negative time delay will force the destinations indefinitely.
|
virtual |
Get the list of remote subscribers to the class = update destinations The base class destination masks are added unless specified otherwise.
|
virtual |
Get/set class handle.
|
protectedvirtual |
Inherit the given merged parameter from base class recursively through subclasses.
|
virtual |
Root name is required.
|
virtual |
Return true if this is a MOM class.
|
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.
|
virtual |
Returns 1 if this class is handle or is a subclass of handle.
|
virtual |
Return true if this is the Root class.
|
virtual |
Determines whether the class is a scaffolding class.
|
virtual |
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.
|
virtual |
Adds an parameter to the class (called during FED processing).
|
virtual |
Return class name, as in FED.
|
protectedvirtual |
Update indicators of root and MOM class.
|
virtual |
Returns the number of parameters.
|
virtual |
Returns number of remote federates subscribed to this class.
| bool DtInteractionClassInfo::operator!= | ( | const DtInteractionClassInfo & | other | ) | const |
Return the space handle.
| DtInteractionClassInfo& DtInteractionClassInfo::operator= | ( | const DtInteractionClassInfo & | orig | ) |
Assignment operator (not implemented)
| bool DtInteractionClassInfo::operator== | ( | const DtInteractionClassInfo & | other | ) | const |
Return the space handle.
|
virtual |
Set/Get order type.
|
virtual |
Permanently override destinations with given mask.
|
virtual |
Returns the set of parameter infos just from this class.
|
virtual |
Get parameter descriptor by name.
|
virtual |
Get parameter descriptor by name.
|
virtual |
Get parameter descriptor by handle.
|
virtual |
Get parameter descriptor by handle.
|
virtual |
Return the set of parameter handles.
|
virtual |
Get parameter handle from name.
|
virtual |
Get parameter name from handle.
|
virtual |
Returns the list of parameter infos.
|
virtual |
Print the contents.
|
virtual |
Publish this class.
|
virtual |
Return 1 if we are publishing this class, 0 otherwise.
|
protectedvirtual |
The given parameter was just added with the next handle.
Adjust handles of own parameters so that they are indexed by name sort order.
|
virtual |
Returns true if the class is relevant, false otherwise.
|
virtual |
Returns true if the remote federate is subscribed to this class.
|
virtual |
Call when another federate subscribes to this class passively.
Simply stores passive subscription, does not updateRelevance.
|
virtual |
Call when another federate subscribes to this class actively.
Updates subscriptions for this class, then calls updateRelevance.
|
virtual |
Call when another federate unsubscribes to this class.
Updates subscriptions for this class, then calls updateRelevance.
|
virtual |
Add/Remove a dimension handle.
|
virtual |
Restore (volatile) contents of this class.
|
virtual |
Test for equality.
|
virtual |
Compare the given interaction classes If not Null, collect parameters to merge from supplied class; otherwise, extra parameters are invalid.
|
virtual |
Compare the given parameter handles with the handles of this interaction (only ones where names match if missing parameters are allowed)
|
virtual |
Save (volatile) contents of this class.
| const char* DtInteractionClassInfo::semantics | ( | ) | const |
Set/Get semantics.
|
virtual |
Set base class pointer (used when deep copying FOM target not when constructing target)
|
virtual |
Set the destination address and device used to send when using DM Filtering.
|
virtual |
Set/Get dimensions.
|
virtual |
Get/set discovered class handle This value is always 0 if isUnknown() is false.
|
virtual |
Set/Get FOM type.
|
virtual |
Get/set class handle.
|
virtual |
Set whether this class is well defined.
|
virtual |
Set/Get order type.
| void DtInteractionClassInfo::setSemantics | ( | const MAKRti::DtString & | semantics | ) |
Set/Get semantics.
| void DtInteractionClassInfo::setSharing | ( | const DtSharingType | sharing | ) |
Set/Get sharing (pub/sub)
|
virtual |
Return the space handle.
|
virtual |
Set/Get transport type representing transport mechanism.
| DtSharingType DtInteractionClassInfo::sharing | ( | ) | const |
Set/Get sharing (pub/sub)
|
virtual |
Return the space handle.
|
virtual |
Return list of subclasses.
|
virtual |
Return list of subclasses.
|
virtual |
Subscribe this class.
|
virtual |
Return 1 if we are subscribed to this class, 0 otherwise.
|
virtual |
Returns a list of federates who are subscribed to this interaction.
|
virtual |
Return 1 if we are subscribed to this class with region, 0 otherwise.
|
static |
Swap or add the root class name part of the given name to the this class' FOM type Return the adjusted name's c string.
|
virtual |
Set/Get transport type representing transport mechanism.
|
virtual |
Unpublish this class.
|
virtual |
Unsubscribe this class.
|
protected |
The given parameter handle is now occupied. Update the next available parameter handle.
|
protected |
The given parameter handle is now occupied. Update the next available parameter handle.
|
protectedvirtual |
Update the relevance field of this class and all subclasses, based on current subscriptions.
Add pending turnOn/OffInteractions when appropriate.
|
protected |
|
protected |
The available parameter handle which is the maximum of this classes own parameters or any of its subclasses.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Create this bit mask to temporarily force destinations after publish.
|
protected |
|
protected |
|
protected |
|
protected |
|
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.
|
protected |
|
protected |
|
protected |
Create this bit mask to permanently override destinations.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprivate |