![]() |
VR-Link API Documentation for DIS
|
Instances of this class provide a protocol independent interface to a list of reflected Linear Objects in a DIS environment. More...
Inheritance diagram for DtReflectedLinearObjectList:
Collaboration diagram for DtReflectedLinearObjectList:Public Member Functions | |
| DtReflectedLinearObjectList (DtExerciseConn *exConn, int numBucketsPrimeNumber=503) | |
| CTOR. More... | |
| virtual | ~DtReflectedLinearObjectList () |
| Virtual DTOR. More... | |
| virtual DtReflectedLinearObject * | lookup (const DtEntityIdentifier &id) const |
| Lookup a Linear Object from the Event ID. More... | |
| virtual DtReflectedLinearObject * | first () const |
| Get the first and last elements of the reflected Linear Object's list. More... | |
| virtual DtReflectedLinearObject * | last () const |
| virtual void | addLinearObjectAdditionCallback (DtLinearObjectCallbackFunction cb, void *usr) |
| "Linear Object Added" callback registration/deregistration. More... | |
| virtual void | removeLinearObjectAdditionCallback (DtLinearObjectCallbackFunction cb, void *usr) |
| virtual void | addLinearObjectRemovalCallback (DtLinearObjectCallbackFunction cb, void *usr) |
| "Linear Object Removed" callback registration/deregistration. More... | |
| virtual void | removeLinearObjectRemovalCallback (DtLinearObjectCallbackFunction cb, void *usr) |
| virtual void | print () const |
| Print the SRs of all reflected Linear Object. More... | |
| virtual void | printDataToStream (std::ostream &stream) const |
| Print the SRs to a stream. More... | |
Public Member Functions inherited from DtReflectedObjectList | |
| DtReflectedObjectList (DtExerciseConn *exConn, int numBucketsPrimeNumber=503) | |
| Constructor. More... | |
| virtual | ~DtReflectedObjectList () |
| destructor Warning: makes non-virtual call to removeAndDelete More... | |
| virtual void | initializeAttributePduKindsOfInterest (const std::set< DtPduKind > &pduKinds) |
| This initializes which PDU kinds will be processed when receiving an Attribute PDU. More... | |
| virtual DtReflectedObject * | firstObj () const |
| Get the first/last object in the list. More... | |
| virtual DtReflectedObject * | lastObj () const |
| virtual int | count () const |
| Get number of objects. More... | |
| virtual DtReflectedObject * | lookupObj (const DtBaseHashKey &key) const |
| Search for an object. More... | |
| virtual DtExerciseConn * | exerciseConn () const |
| Get my exerciseConn. More... | |
| virtual void | addObjectAdditionCallback (DtReflectedObjectCallbackFunction cb, void *userData) |
| Object added callback registration/deregistration. More... | |
| virtual void | removeObjectAdditionCallback (DtReflectedObjectCallbackFunction cb, void *userData) |
| virtual void | addObjectRemovalCallback (DtReflectedObjectCallbackFunction cb, void *userData) |
| Object removed callback registration/deregistration. More... | |
| virtual void | removeObjectRemovalCallback (DtReflectedObjectCallbackFunction cb, void *userData) |
| virtual void | setTimeoutProcessing (bool onOff) |
| Set whether or not timeout processing occurs. More... | |
| virtual void | setTimeoutInterval (DtTime time) |
| Set/Get the remote object timeout period. More... | |
| 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. More... | |
| virtual void | clearDiscoveryCondition () |
| Unregisters the checker function set in setDiscoverCondition. More... | |
| virtual void | removeObject (DtReflectedObject *obj) |
| This is the same as removeAndDelete, it exists to maintain equality with HLA objects. More... | |
| virtual DtTime | timeoutCheckInterval () const |
| virtual void | setTimeoutCheckInterval (DtTime interval) |
Protected Member Functions | |
| virtual DtReflectedObject * | newReflectedObj (const DtStateMsg &msg) |
| Overrides the base class implementation. Always returns NULL. More... | |
| virtual DtReflectedLinearObject * | newReflectedLinearObject (const DtEntityIdentifier &id) |
| Creates a new reflected Linear Object. More... | |
| virtual int | acceptPdu (const DtStateMsg &msg) const |
| Overrides the base class implementation. More... | |
| virtual DtReflectedObject * | processStateMessage (const DtStateMsg &msg) |
| Overrides the base class implementation. Processes a Linear Object Pdu. More... | |
| virtual void | removeAndDelete (DtReflectedObject *obj, char *msg=0) |
| Print message 'msg' and execute the registered "ObjectRemoval" callbacks. More... | |
| virtual void | objectAdded (DtReflectedObject *obj) |
| Called after a reflected linear object is added to the list and before addition callbacks are processed. More... | |
| const DtBaseHashKey & | hashKeyFromStateMessage (const DtStateMsg *) |
| Overrides the base class implementation. More... | |
| DtReflectedLinearObjectList (const DtReflectedLinearObjectList &) | |
| Copy constructor – Not Implemented. More... | |
| DtReflectedLinearObjectList & | operator= (const DtReflectedLinearObjectList &) |
| Assignment operator – Not Implemented. More... | |
Protected Member Functions inherited from DtReflectedObjectList | |
| virtual void | doTimeouts () |
| Remove any remote objects which have not been updated during the timeout period. More... | |
| virtual bool | shouldBeTimedOut (DtReflectedObject *object) |
| Returns whether or not the object should be timed out. More... | |
| void | emptyLists () |
| Empty the object list and the timeout list. More... | |
| void | emptyCallbackLists () |
| virtual void | processObjectAdditionCallbacks (DtReflectedObject *object) |
| Process object addition/removal callbacks. More... | |
| virtual void | processObjectRemovalCallbacks (DtReflectedObject *object) |
| virtual DtBaseHashKey * | hashKeyFromAttributeRecordSet (const DtAttributeRecordSet &recordSet) |
| Get a hash key from an attribute record set. More... | |
| virtual bool | readyToAdd (DtReflectedObject *obj) |
| Returns true if the obj is ready to be added to myObjectList; calls myDiscoveryCondition from within. More... | |
| 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 | linearObjectCb (DtLinearObjectStatePdu *pdu, void *usr) |
| Callback for the exercise connection. More... | |
Static Protected Member Functions inherited from DtReflectedObjectList | |
| static void | doTimeoutsPostDrainCb (void *usr) |
| Calls doTimeouts. More... | |
| 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 Linear Objects in a DIS environment.
| DtReflectedLinearObjectList::DtReflectedLinearObjectList | ( | DtExerciseConn * | exConn, |
| int | numBucketsPrimeNumber = 503 |
||
| ) |
CTOR.
|
virtual |
Virtual DTOR.
|
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 |
"Linear Object Added" callback registration/deregistration.
|
virtual |
"Linear Object Removed" callback registration/deregistration.
|
virtual |
Get the first and last elements of the reflected Linear Object's list.
|
protectedvirtual |
Overrides the base class implementation.
Generates a corresponding key from a Linear Object Pdu. Returns an instance of 'DtEventIdHashKey'. 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 |
|
staticprotected |
Callback for the exercise connection.
|
virtual |
Lookup a Linear Object from the Event ID.
|
protectedvirtual |
Creates a new reflected Linear Object.
Called by processStateMessage(). Override this to change the creation of new DtReflectedLinearObjects.
|
protectedvirtual |
Overrides the base class implementation. Always returns NULL.
Implements DtReflectedObjectList.
|
protectedvirtual |
Called after a reflected linear object 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 Linear Object.
Reimplemented from DtReflectedObjectList.
|
virtual |
Print the SRs to a stream.
|
protectedvirtual |
Overrides the base class implementation. Processes a Linear Object Pdu.
Reimplemented from DtReflectedObjectList.
|
protectedvirtual |
Print message 'msg' and execute the registered "ObjectRemoval" callbacks.
Remove reflected object 'obj' from the "reflected linear object" list. Note: Overrides the base class implementation
Reimplemented from DtReflectedObjectList.
|
virtual |
|
virtual |
|
protected |