#include <hlaobjectinstance.h>
Inheritance diagram for HLAObjectInstance:
|
Constructor - creates an object instance of class clname. This constructor is used by a federate which wants to create its own local objects in order to register them with the RFI (by using RFI::registerObjectInstance()).
|
|
Contructor - creates an object instance having an object handle and an HLAObjectClass. This constructor is used by the Federate Ambassador when it discovers an object and wants to add it to the local object list (by using RFI::addObjectInstance()).
|
|
Destructor. Does some cleaning and removes the object instance from the federation. |
|
Removes this object from the Federation. |
|
Returns the class (HLAObjectClass) of the object instance. |
|
Returns the class handle for this object instance. |
|
Returns the class name of this object instance. |
|
Sets the handle for this object instance. This should be done only by a method which get this handle from the RTI. |
|
Returns the handle for this object instance. |
|
Sets boolean defining whether or not this object has been discovered.
|
|
Tests whether or not this object has been discovered.
|
|
Mark the instance as zombie or not. An instance is considered as zombie when it still exist in the LRC, but not in the RTIexec database. This situation typically occurs after a reset. A zombie instance will not try to remove itself from the federation a destruction. |
|
Return the zombie state of the instance (see above method). |
|
|
|
|
|
Returns the data corresponding to the given handle. This method is purely virtual and has to be implemented by derived classes which know about the queried data.
Implemented in ReturnValueInstance. |
|
Sets the data corresponding to a given handle. This method is purely virtual and has to be implemented by derived classes: making this call causes the concerned sub-class to set its correct data member (identified by h) with the given data.
Implemented in ReturnValueInstance. |
|
Pushes the request for an update for the attribute with the given handle to a local queue. Clients of this objectinstance will be notified that all updates requests have been performed with the attributesInitialized callback. |
|
Pushes the action to update the attribute with the given handle to a local queue. |
|
Pushes the request to acquire the ownership of the attribute with the given handle to a local queue. Clients of this objectinstance will be notified that all acquisitions requests have been performed with the onwershipsAcquired callback. |
|
Pushes the action to release the ownership of the attribute with the given handle to a local queue. |
|
Processes the pending update actions. |
|
Processes the pending update request(s). |
|
Processes the pending ownership release(s). |
|
Processes the pending ownership acquisitiions(s). |
|
Processes all the pending actions present in the local queues. |
|
Sends a request for ownership of a given set of attributes to the RTI. The attribute ownership acquisition is perfomed on the basis of the priority argument. The federate can acquire the attribute only if the given priority is higher than the priority that the owning federate has given to this object class. |
|
Unconditionally releases a set of attributes. |
|
Tests whether or not the attribute with the given handle is owned by the federate.
|
|
Sets the boolean defining whether or not the attribute with the given handle is owned by the federate. |
|
Return the number of clients this object instance has. |
|
Set a new client of this object instance. Return false if the client is already in the list, true otherwise (after insertion). |
|
Remove a client from the list of this object instance. Return false if the client was not in the list, false otherwise (after deletion). |
|
|
|
|
|
|
|
Return a pointer on the first client of this object instance. |
|
Return a pointer on the next client of this object instance. |
|
Tests whether or not the object instance has been marked as identified. "Identified" means that all the necessary attributes to completely identify this object instance have been initialized. |
|
Returns if the object is ready to use or not. The significance of ready is application dependent. |
|
Tests whether or not this object instance has been fully initialized.
|
|
Tests whether or not this object instance has been represented by this federate. "Represented" could be used for any purpose by the federate. Normally it is used to determine if the federate has created a specific object to represent/manage its HLA equivalent. |
|
Set the object as represented. |
|
|
|
|
|
This method will be called when the instance has been identified. This is to derived classes of HLAObjectInstance to initiate this call (for example when it receive an relection for an identifier). The method should be implemented by derived classes. |
|
This method will be called when the instance is ready to use by a specific federate. |
|
This method will be called when all the attributes of this instance have been initialized. This method is called from the HLAObjectInstance level: developper of derived classes does not have to initiate this call, but can implement the method itself. |
|
This method will be called when the federateambassador process an attribute reflection. |
|
This method could be implemented by derived classes to handle message attached to an instance. |
|
Check if the attribute reflection satisfies any request and make the object fully identified and propagate the attribute inside the object and its clients. |
|
Check the status of pendinf acquisitions. Using the given handle, this method checks if after this ownership acquisition notification there is still pending acquisitions. If not, then the method will notify all clients that all the acquisitions requests have been satisfied (with onwershipsAcquired). |
|
Set the full name of the entity |
|
Return the full name of the entity (with its hierachy). K9:HazCam:Physical -> K9:HazCam:Physical |
|
Return the short name of the entity. K9:HazCam:Physical -> Physical |
|
Return the parent full name of the entity. K9:HazCam:Physical -> K9:HazCam |
|
Return the depth of the hierachy where this object is located. K9:HazCam:Physical -> 3 |
|
Return the name of the parent at the given level. (K9:HazCam:Physical,1) -> K9 (K9:HazCam:Physical,2) -> HazCam (K9:HazCam:Physical,3) -> Physical |
|
|
|
Set the time of the attribute update.
|
|
Return the time of the most recent update or -1 if there is no time stamp.
|
|
Marks the attribute with the given handle as initialized, then checks if all the attributes have been initialized, and if so, marks this object as initialized.
|
|
Check the status of the pending updates. Using the given handle, this method checks if after this update there is still pending updates. If not, then the method will notify all clients that all the update requests have been satisfied (with attributesInitialized). |
|
|
|
This method extract information from the name: entityName, parentName and hierachyLevel. |
|
Pointer to the class of this object |
|
The handle of this object instance (defined by the RTI). |
|
full name of this object instance. this name should be unique among the federation. this name contains the hierachy of objects. |
|
name of the object instance without the full hierachy. |
|
Full name of the parent of this object instance. |
|
Depth of the hierachy |
|
A queue of the attributes to update. This queue is needed because the RTI is not reentrant. Then if the federateAmbassador receive a request to update an attribute, then the application can not call right away a method to the rtiAmbassador to provide the requested update: the federateAmbassador put this update request in a queue which will then be processed outside the federateAmbassador and then avoid the reentrant call to the RTI.
|
|
A queue of the attribute for which this object require updates. |
|
A queue of the attributes to release. This queue is needed for the same reason than attributes2update. In this case, we maintain a queue of all the attributes for which this federate should release the ownership. |
|
A queue of the attributes to acquire. |
|
This map maintained a list of the status of each attributes regarding their ownership. A |
|
List of clients of this message instance. |
|
Last returned client. |
|
|
|
Define if this object been discovered (@ c true) or created by this federate ( |
|
Flag to store if this object instance is identified or not. |
|
Flag to store if this object instance is ready to be used or not. |
|
Flag to store if this object has been fully initialized or not |
|
Flag to store if this object instance has been represented or not. |
|
|
|
Handle of the attribute marking the instance as identified. |
|
Set of handles marking the instance as ready. |
|
Map to store if the attributes of this object instance have been initialized or not. |
|
|
|
|
|
|