![]() |
VR-Link API Documentation for DIS
|
Instances of this class provide a protocol independent interface to a list of reflected designators in a DIS environment. More...
Inheritance diagram for DtReflectedDesignatorList:
Collaboration diagram for DtReflectedDesignatorList:Public Member Functions | |
| DtReflectedDesignatorList (DtExerciseConn *exConn) | |
| Constructor. | |
| virtual | ~DtReflectedDesignatorList () |
| Destructor. | |
| virtual DtReflectedDesignator * | lookup (const DtGlobalObjectDesignator &designatingEntity, int designtrCode) const |
| Lookup a designator from the object ID of its designating entity and its designator code. | |
| virtual DtReflectedDesignator * | first () const |
| Get the first and last elements of the reflected designators' list. | |
| virtual DtReflectedDesignator * | last () const |
| virtual void | addDesignatorAdditionCallback (DtDesignatorCallbackFunction cb, void *userData) |
| "Designator Added" callback registration/deregistration. | |
| virtual void | removeDesignatorAdditionCallback (DtDesignatorCallbackFunction cb, void *userData) |
| virtual void | addDesignatorRemovalCallback (DtDesignatorCallbackFunction cb, void *userData) |
| "Designator Removed" callback registration/deregistration. | |
| virtual void | removeDesignatorRemovalCallback (DtDesignatorCallbackFunction cb, void *userData) |
| virtual void | print () const |
| Print the SRs of all reflected designators. | |
| virtual void | printDataToStream (std::ostream &stream) const |
| Print the SRs to a stream. | |
Public Member Functions inherited from DtReflectedObjectList | |
| DtReflectedObjectList (DtExerciseConn *exConn) | |
| Constructor. | |
| virtual | ~DtReflectedObjectList () |
| destructor Warning: makes non-virtual call to removeAndDelete | |
| virtual void | initializeAttributePduKindsOfInterest (const std::set< DtPduKind > &pduKinds) |
| This initializes which PDU kinds will be processed when receiving an Attribute PDU. | |
| virtual DtReflectedObject * | firstObj () const |
| Get the first/last object in the list. | |
| virtual DtReflectedObject * | lastObj () const |
| virtual int | count () const |
| Get number of objects. | |
| virtual DtReflectedObject * | lookupObj (const DtBaseHashKey &key) const |
| Search for an object. | |
| virtual DtExerciseConn * | exerciseConn () const |
| Get my exerciseConn. | |
| virtual void | addObjectAdditionCallback (DtReflectedObjectCallbackFunction cb, void *userData) |
| Object added callback registration/deregistration. | |
| virtual void | removeObjectAdditionCallback (DtReflectedObjectCallbackFunction cb, void *userData) |
| virtual void | addObjectRemovalCallback (DtReflectedObjectCallbackFunction cb, void *userData) |
| Object removed callback registration/deregistration. | |
| virtual void | removeObjectRemovalCallback (DtReflectedObjectCallbackFunction cb, void *userData) |
| virtual void | setTimeoutProcessing (bool onOff) |
| Set whether or not timeout processing occurs. | |
| virtual void | setTimeoutInterval (DtTime time) |
| Set/Get the remote object timeout period. | |
| virtual DtTime | timeoutInterval () |
| virtual void | setDiscoveryCondition (DtDiscoveryCondition fn, void *usr) |
| Set the checker function which will determine when an object gets discovered and put into the ref. | |
| virtual void | clearDiscoveryCondition () |
| Unregisters the checker function set in setDiscoverCondition. | |
| virtual void | removeObject (DtReflectedObject *obj) |
| This is the same as removeAndDelete, it exists to maintain equality with HLA objects. | |
Protected Member Functions | |
| virtual DtReflectedObject * | newReflectedObj (const DtStateMsg &msg) |
| Overrides the base class implementation. Always returns NULL. | |
| virtual DtReflectedDesignator * | newReflectedDesignator (const DtEntityIdentifier &designatingEntity, int designatorCode) |
| Creates a new reflected designator. | |
| virtual int | acceptPdu (const DtStateMsg &msg) const |
| Overrides the base class implementation. | |
| virtual DtReflectedObject * | processStateMessage (const DtStateMsg &msg) |
| Overrides the base class implementation. Processes a Designator Pdu. | |
| virtual void | removeAndDelete (DtReflectedObject *obj, char *msg=0) |
| Print message 'msg' and execute the registered "ObjectRemoval" callbacks. | |
| virtual void | objectAdded (DtReflectedObject *obj) |
| Called after a reflected designator is added to the list and before addition callbacks are processed. | |
| const DtBaseHashKey & | hashKeyFromStateMessage (const DtStateMsg *) |
| Overrides the base class implementation. | |
| DtReflectedDesignatorList (const DtReflectedDesignatorList &) | |
| Copy constructor – Not Implemented. | |
| DtReflectedDesignatorList & | operator= (const DtReflectedDesignatorList &) |
| Assignment operator – Not Implemented. | |
Protected Member Functions inherited from DtReflectedObjectList | |
| virtual void | doTimeouts () |
| Remove any remote objects which have not been updated during the timeout period. | |
| virtual bool | shouldBeTimedOut (DtReflectedObject *object) |
| Returns whether or not the object should be timed out. | |
| void | emptyLists () |
| Empty the object list and the timeout list. | |
| void | emptyCallbackLists () |
| virtual void | processObjectAdditionCallbacks (DtReflectedObject *object) |
| Process object addition/removal callbacks. | |
| virtual void | processObjectRemovalCallbacks (DtReflectedObject *object) |
| virtual DtBaseHashKey * | hashKeyFromAttributeRecordSet (const DtAttributeRecordSet &recordSet) |
| Get a hash key from an attribute record set. | |
| virtual bool | readyToAdd (DtReflectedObject *obj) |
| Returns true if the obj is ready to be added to myObjectList; calls myDiscoveryCondition from within. | |
| virtual void | processAttributePduCb (DtAttributeInteraction *inter) |
| virtual void | processAttributePduRecordSet (const DtAttributeRecordSet &recordSet, const DtSimulationAddress &simAddr, DtReflectedObject *obj=0) |
| virtual void | processAttributePduWaitListCb (DtReflectedObject *obj) |
| virtual void | deleteRecordSetBySimulationAddressMap (DtRecordSetBySimulationAddressMap &recordSetMap, const DtSimulationAddress &simAddr=DtSimulationAddress()) const |
Static Protected Member Functions | |
| static void | designatorCb (DtDesignatorPdu *pdu, void *usr) |
| Callback for the exercise connection. | |
Static Protected Member Functions inherited from DtReflectedObjectList | |
| static void | doTimeoutsPostDrainCb (void *usr) |
| Calls doTimeouts. | |
| static void | processAttributePduCb (DtAttributeInteraction *inter, void *usr) |
| static void | processAttributePduWaitListCb (DtReflectedObject *obj, void *userData) |
Instances of this class provide a protocol independent interface to a list of reflected designators in a DIS environment.
| DtReflectedDesignatorList::DtReflectedDesignatorList | ( | DtExerciseConn * | exConn | ) |
Constructor.
|
virtual |
Destructor.
|
protected |
Copy constructor – Not Implemented.
|
protectedvirtual |
Overrides the base class implementation.
Determines if a PDU should be processed or not. Always returns 1.
Reimplemented from DtReflectedObjectList.
|
virtual |
"Designator Added" callback registration/deregistration.
|
virtual |
"Designator Removed" callback registration/deregistration.
|
staticprotected |
Callback for the exercise connection.
|
virtual |
Get the first and last elements of the reflected designators' list.
|
protectedvirtual |
Overrides the base class implementation.
Generates a corresponding key from a Designator Pdu. Returns an instance of 'DtSystemHashKey'. Note: the instance of the generated key is valid only until the next call to this method, or until the class instance itself goes out of scope (whichever is shorter).
Implements DtReflectedObjectList.
|
virtual |
|
virtual |
Lookup a designator from the object ID of its designating entity and its designator code.
|
protectedvirtual |
Creates a new reflected designator.
Called by processStateMessage(). Override this to change the creation of new DtReflectedDesignators.
|
protectedvirtual |
Overrides the base class implementation. Always returns NULL.
Implements DtReflectedObjectList.
|
protectedvirtual |
Called after a reflected designator is added to the list and before addition callbacks are processed.
Right now, it only calls DtInfo.
Reimplemented from DtReflectedObjectList.
|
protected |
Assignment operator – Not Implemented.
|
virtual |
Print the SRs of all reflected designators.
Reimplemented from DtReflectedObjectList.
|
virtual |
Print the SRs to a stream.
|
protectedvirtual |
Overrides the base class implementation. Processes a Designator Pdu.
Reimplemented from DtReflectedObjectList.
|
protectedvirtual |
Print message 'msg' and execute the registered "ObjectRemoval" callbacks.
Remove reflected object 'obj' from the "reflected designators" list. Note: Overrides the base class implementation
Reimplemented from DtReflectedObjectList.
|
virtual |
|
virtual |
|
protected |