![]() |
VR-Link API Documentation for DIS
|
Instances of this class provide a protocol independent interface to a list of reflected emitters in a DIS environment. More...
Inheritance diagram for DtReflectedEmitterSystemList:
Collaboration diagram for DtReflectedEmitterSystemList:Public Member Functions | |
| DtReflectedEmitterSystemList (DtExerciseConn *exConn, int numBucketsPrimeNumber=503) | |
| Constructor. More... | |
| virtual | ~DtReflectedEmitterSystemList () |
| Destructor. More... | |
| virtual DtReflectedEmitterSystem * | lookup (const DtGlobalObjectDesignator &emittingEntity, int systemId) const |
| Lookup an emitter from its object ID and system ID. More... | |
| virtual DtReflectedEmitterSystem * | first () const |
| Get the first and last elements of the emitter system list. More... | |
| virtual DtReflectedEmitterSystem * | last () const |
| virtual void | addEmitterSystemAdditionCallback (DtEmitterSystemCallbackFunction cb, void *userData) |
| Emitter added callback registration/deregistration. More... | |
| virtual void | removeEmitterSystemAdditionCallback (DtEmitterSystemCallbackFunction cb, void *userData) |
| virtual void | addEmitterSystemRemovalCallback (DtEmitterSystemCallbackFunction cb, void *userData) |
| Emitter removed callback registration/deregistration. More... | |
| virtual void | removeEmitterSystemRemovalCallback (DtEmitterSystemCallbackFunction cb, void *userData) |
| virtual void | addEmitterAdditionCallback (DtEmitterSystemCallbackFunction cb, void *userData) |
| Emitter added callback registration/deregistration. More... | |
| virtual void | removeEmitterAdditionCallback (DtEmitterSystemCallbackFunction cb, void *userData) |
| This is the same as removeEmitterSystemAdditionCallback and is here only for backwards compatibility. More... | |
| virtual void | addEmitterRemovalCallback (DtEmitterSystemCallbackFunction cb, void *userData) |
| Emitter removed callback registration/deregistration. More... | |
| virtual void | removeEmitterRemovalCallback (DtEmitterSystemCallbackFunction cb, void *userData) |
| This is the same as removeEmitterSystemRemovalCallback and is here only for backwards compatibility. More... | |
| virtual void | print () |
| Print the SRs of all objects. 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 | print () const |
| Print the SRs of all objects. More... | |
| 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 | removeAndDelete (DtReflectedObject *obj, const char *msg=NULL) |
| Remove the remote object from the list if found and delete it. 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) |
| virtual void | addWaitlistAdditionCallback (DtReflectedObjectCallbackFunction cb, void *userData) |
| Callback registration for when objects are added or removed from the waitlist. More... | |
| virtual void | removeWaitlistAdditionCallback (DtReflectedObjectCallbackFunction cb, void *userData) |
| virtual void | addWaitlistRemovalCallback (DtReflectedObjectCallbackFunction cb, void *userData) |
| Waitlist removed callback registration/deregistration. More... | |
| virtual void | removeWaitlistRemovalCallback (DtReflectedObjectCallbackFunction cb, void *userData) |
Protected Member Functions | |
| DtReflectedEmitterSystemList & | operator= (const DtReflectedEmitterSystemList &orig) |
| Assignment operator – Not implemented. More... | |
| DtReflectedEmitterSystemList (const DtReflectedEmitterSystemList &orig) | |
| Copy constructor – Not implemented. More... | |
| virtual DtReflectedObject * | newReflectedObj (const DtStateMsg &msg) |
| Overrides base class's implementation. Always returns NULL. More... | |
| virtual DtReflectedObject * | newReflectedEmitterSystem (const DtGlobalObjectDesignator &emittingEntity, int systemId) |
| Create a new object from a global designator and system id. More... | |
| virtual DtReflectedObject * | processStateMessage (const DtStateMsg &msg) |
| Process an incoming state message. More... | |
| virtual void | objectAdded (DtReflectedObject *obj) |
| Called after an entity is added and before addition callbacks are processed. More... | |
| virtual const DtBaseHashKey & | hashKeyFromStateMessage (const DtStateMsg *msg) |
| Get a hash key from a state message. More... | |
| virtual void | processAttributePduCb (DtAttributeInteraction *inter) |
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 void | processWaitlistAdditionCallbacks (DtReflectedObject *object) |
| Process waitlist addition/removal callbacks. More... | |
| virtual void | processWaitlistRemovalCallbacks (DtReflectedObject *object) |
| virtual DtBaseHashKey * | hashKeyFromAttributeRecordSet (const DtAttributeRecordSet &recordSet) |
| Get a hash key from an attribute record set. More... | |
| virtual int | acceptPdu (const DtStateMsg &) const |
| Determines if a PDU should be processed or not. 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 | 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 | emEmissionCb (DtElectromagneticEmissionPdu *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 emitters in a DIS environment.
| DtReflectedEmitterSystemList::DtReflectedEmitterSystemList | ( | DtExerciseConn * | exConn, |
| int | numBucketsPrimeNumber = 503 |
||
| ) |
Constructor.
|
virtual |
Destructor.
|
protected |
Copy constructor – Not implemented.
|
virtual |
Emitter added callback registration/deregistration.
This is the same as addEmitterSystemAdditionCallback and is here only for backwards compatibility.
|
virtual |
Emitter removed callback registration/deregistration.
This is the same as addEmitterSystemRemovalCallback and is here only for backwards compatibility.
|
virtual |
Emitter added callback registration/deregistration.
|
virtual |
Emitter removed callback registration/deregistration.
|
staticprotected |
Callback for the exercise connection.
|
virtual |
Get the first and last elements of the emitter system list.
|
protectedvirtual |
Get a hash key from a state message.
Implements DtReflectedObjectList.
|
virtual |
|
virtual |
Lookup an emitter from its object ID and system ID.
|
protectedvirtual |
Create a new object from a global designator and system id.
|
protectedvirtual |
Overrides base class's implementation. Always returns NULL.
Implements DtReflectedObjectList.
|
protectedvirtual |
Called after an entity is added and before addition callbacks are processed.
Right now, this function only calls DtInfo.
Reimplemented from DtReflectedObjectList.
|
protected |
Assignment operator – Not implemented.
|
virtual |
Print the SRs of all objects.
|
protectedvirtual |
Reimplemented from DtReflectedObjectList.
|
protectedvirtual |
Process an incoming state message.
Reimplemented from DtReflectedObjectList.
|
virtual |
This is the same as removeEmitterSystemAdditionCallback and is here only for backwards compatibility.
|
virtual |
This is the same as removeEmitterSystemRemovalCallback and is here only for backwards compatibility.
|
virtual |
|
virtual |