![]() |
VR-Link API Documentation for HLA 1.3
|
This class adds the RPR Ownership interactions to the default ownership handler. More...
Inheritance diagram for DtRprOwnershipHandler:
Collaboration diagram for DtRprOwnershipHandler:Public Member Functions | |
| DtRprOwnershipHandler (int site, int app) | |
| Constructor You must fill out the site and app of your federate. More... | |
| virtual | ~DtRprOwnershipHandler () |
| Destructor. More... | |
| virtual DtOwnershipHandler * | clone () const |
| Clone copy. More... | |
| DtRprOwnershipHandler (const DtRprOwnershipHandler &other) | |
| Copy constructor. More... | |
| DtRprOwnershipHandler & | operator= (const DtRprOwnershipHandler &other) |
| Assignment operator. More... | |
| void | setSite (int site) |
| Sets the site Id for this acknowledge. More... | |
| int | site () const |
| Gets the site Id for this acknowledge. More... | |
| void | setApplicationId (int app) |
| Sets the applicationID for this acknowledge. More... | |
| int | applicationId () const |
| Gets the applicationID for this acknowledge. More... | |
| virtual bool | requesteOwnershipRelease (const RTI::AttributeHandleSet &candidateAttributes, const char *theTag) |
| Called as a result of the requestAttributeOwnershipRelease RTI service. More... | |
| virtual void | requestAttributeOwnershipAssumption (const RTI::AttributeHandleSet &offeredAttributes, const char *theTag) |
| Called as a result of the requestAttributeOwnershipAssumption RTI service. More... | |
| virtual void | sendRPRAcknowledge (bool returnVal, DtU32 responseIdentifier) |
| Send a RPR specific acknowledge interaction. More... | |
Public Member Functions inherited from DtDefaultOwnershipHandler | |
| DtDefaultOwnershipHandler () | |
| Constructor. More... | |
| virtual | ~DtDefaultOwnershipHandler () |
| Destructor. More... | |
| DtDefaultOwnershipHandler (const DtDefaultOwnershipHandler &other) | |
| Copy constructor. More... | |
| DtDefaultOwnershipHandler & | operator= (const DtDefaultOwnershipHandler &other) |
| Assignment operator. More... | |
| virtual void | setOwnershipAcquisitionAction (DtOwnershipAction) |
| Set the default action when someone offers an object to acquire Your three options are, accept, deny, or send a callback to ask for this information. More... | |
| virtual void | setOwnershipDivestitudeAction (DtOwnershipAction) |
| Set the default action when someone requests your object to acquire Your three options are, accept, deny, or send a callback to ask for this information. More... | |
| virtual void | gainOwnership (const RTI::AttributeHandleSet &set) |
| Called whenever the local federate has acquired ownership of a set of attributes. More... | |
| virtual void | loseOwnership (const RTI::AttributeHandleSet &set) |
| Called whenever the local federate has lost ownership of a set of attributes. More... | |
| virtual void | addAcquireOwnershipCallback (DtAcquireOwnershipCb cb, void *usr, const DtObjClassDesc *desc=0) |
| Callback for Acquiring ownership. More... | |
| virtual void | removeAcquireOwnershipCallback (DtAcquireOwnershipCb cb, void *usr, const DtObjClassDesc *desc=0) |
| virtual void | addDivestOwnershipCallback (DtDivestOwnershipCb cb, void *usr, const DtObjClassDesc *desc=0) |
| Callback for divesting ownership. More... | |
| virtual void | removeDivestOwnershipCallback (DtDivestOwnershipCb cb, void *usr, const DtObjClassDesc *desc=0) |
| virtual void | addAcquireOwnershipRequestCallback (DtAcquireOwnershipRequestCb cb, void *usr) |
| Callback for acquiring and divesting requests. More... | |
| virtual void | removeAcquireOwnershipRequestCallback (DtAcquireOwnershipRequestCb cb, void *usr) |
| virtual void | addDivestOwnershipRequestCallback (DtDivestOwnershipRequestCb cb, void *usr) |
| virtual void | removeDivestOwnershipRequestCallback (DtDivestOwnershipRequestCb cb, void *usr) |
Public Member Functions inherited from DtOwnershipHandler | |
| DtOwnershipHandler () | |
| Constructor. More... | |
| virtual | ~DtOwnershipHandler () |
| Destructor. More... | |
| DtOwnershipHandler (const DtOwnershipHandler &other) | |
| Copy constructor. More... | |
| DtOwnershipHandler & | operator= (const DtOwnershipHandler &other) |
| Assignment operator. More... | |
| virtual DtHlaObject * | hlaObject () |
| Returns a pointer to the DtHlaObject with which this instance has been registered. More... | |
| virtual void | attributeOwnershipDivestitureNotification (const RTI::AttributeHandleSet &releasedAttributes) |
| Called as a result of the attributeOwnershipDivestitureNotification RTI service. More... | |
| virtual void | attributeOwnershipAcquisitionNotification (const RTI::AttributeHandleSet &securedAttributes) |
| Called as a result of the attributeOwnershipAcquisitionNotification RTI service. More... | |
| virtual void | confirmAttributeOwnershipAcquisitionCancellation (const RTI::AttributeHandleSet &attributes) |
| Called as a result of the confirmAttributeOwnershipAcquisitionCancellation RTI service. More... | |
Protected Attributes | |
| DtSimulationAddress | mySimulator |
Protected Attributes inherited from DtDefaultOwnershipHandler | |
| DtOwnershipAction | myAcquisitionAction |
| DtOwnershipAction | myDivestAction |
| std::map < RTI::ObjectClassHandle, std::list < DtAcquireOwnershipCbInfo > > | myAcquireOwnershipCbList |
| std::map < RTI::ObjectClassHandle, std::list < DtDivestOwnershipCbInfo > > | myDivestOwnershipCbList |
| std::list < DtAcquireOwnershipCbInfo > | myDefaultAcquireOwnershipCb |
| std::list < DtDivestOwnershipCbInfo > | myDefaultDivestOwnershipCb |
| std::list < DtAcquireOwnershipRequestCbInfo > | myAcquireOwnershipRequestCbList |
| std::list < DtDivestOwnershipRequestCbInfo > | myDivestOwnershipRequestCbList |
Protected Attributes inherited from DtOwnershipHandler | |
| DtHlaObject * | myHlaObj |
Additional Inherited Members | |
Protected Member Functions inherited from DtOwnershipHandler | |
| virtual void | setHlaObject (DtHlaObject *obj) |
This class adds the RPR Ownership interactions to the default ownership handler.
In other words, whenever there is an ownership transfer, this class also sends an acknowledge interaction as per the RPR standard.
Constructor You must fill out the site and app of your federate.
This information is required for the ownership handler to correctly send acknowledge interactions.
|
virtual |
Destructor.
| DtRprOwnershipHandler::DtRprOwnershipHandler | ( | const DtRprOwnershipHandler & | other | ) |
Copy constructor.
|
inline |
Gets the applicationID for this acknowledge.
|
virtual |
Clone copy.
Reimplemented from DtDefaultOwnershipHandler.
| DtRprOwnershipHandler& DtRprOwnershipHandler::operator= | ( | const DtRprOwnershipHandler & | other | ) |
Assignment operator.
|
virtual |
Called as a result of the requestAttributeOwnershipAssumption RTI service.
You can call DtHlaObject's acquireAttributes even though you are within an RTI callback.
Reimplemented from DtDefaultOwnershipHandler.
|
virtual |
Called as a result of the requestAttributeOwnershipRelease RTI service.
You should return true if you accept this attribute transfer, and false otherwise
Reimplemented from DtDefaultOwnershipHandler.
|
virtual |
Send a RPR specific acknowledge interaction.
|
inline |
Sets the applicationID for this acknowledge.
|
inline |
Sets the site Id for this acknowledge.
|
inline |
Gets the site Id for this acknowledge.
|
protected |