VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Static Protected Member Functions
DtReflectedEmitterSystemList Class Reference

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)
 

Additional Inherited Members

- Protected Attributes inherited from DtReflectedObjectList
DtExerciseConn * myExConn
 
DtIntrusiveList myObjectAddedCallbacks
 
DtIntrusiveList myObjectRemovedCallbacks
 
DtIntrusiveList myWaitlistAddedCallbacks
 
DtIntrusiveList myWaitlistRemovedCallbacks
 
DtIntrusiveList myObjectList
 
DtIntrusiveList myWaitList
 
DtHashlist myObjectHashlist
 
DtHashlist myWaitHashlist
 
DtAttributesByObjectIdMap myAttributeWaitHashlist
 
DtTime myTimeoutInterval
 
DtTime myNextTimeoutCheck
 
DtTime myTimeoutCheckInterval
 
bool myTimeoutProcessingFlag
 
DtDiscoveryCondition myDiscoveryCondition
 
void * myDiscoveryConditionParameter
 
std::set< DtPduKind > myPduKindSet
 

Detailed Description

Instances of this class provide a protocol independent interface to a list of reflected emitters in a DIS environment.

Constructor & Destructor Documentation

DtReflectedEmitterSystemList::DtReflectedEmitterSystemList ( DtExerciseConn *  exConn,
int  numBucketsPrimeNumber = 503 
)

Constructor.

virtual DtReflectedEmitterSystemList::~DtReflectedEmitterSystemList ( )
virtual

Destructor.

DtReflectedEmitterSystemList::DtReflectedEmitterSystemList ( const DtReflectedEmitterSystemList &  orig)
protected

Copy constructor – Not implemented.

Member Function Documentation

virtual void DtReflectedEmitterSystemList::addEmitterAdditionCallback ( DtEmitterSystemCallbackFunction  cb,
void *  userData 
)
virtual

Emitter added callback registration/deregistration.

This is the same as addEmitterSystemAdditionCallback and is here only for backwards compatibility.

virtual void DtReflectedEmitterSystemList::addEmitterRemovalCallback ( DtEmitterSystemCallbackFunction  cb,
void *  userData 
)
virtual

Emitter removed callback registration/deregistration.

This is the same as addEmitterSystemRemovalCallback and is here only for backwards compatibility.

virtual void DtReflectedEmitterSystemList::addEmitterSystemAdditionCallback ( DtEmitterSystemCallbackFunction  cb,
void *  userData 
)
virtual

Emitter added callback registration/deregistration.

virtual void DtReflectedEmitterSystemList::addEmitterSystemRemovalCallback ( DtEmitterSystemCallbackFunction  cb,
void *  userData 
)
virtual

Emitter removed callback registration/deregistration.

static void DtReflectedEmitterSystemList::emEmissionCb ( DtElectromagneticEmissionPdu *  pdu,
void *  usr 
)
staticprotected

Callback for the exercise connection.

virtual DtReflectedEmitterSystem* DtReflectedEmitterSystemList::first ( ) const
virtual

Get the first and last elements of the emitter system list.

virtual const DtBaseHashKey& DtReflectedEmitterSystemList::hashKeyFromStateMessage ( const DtStateMsg *  msg)
protectedvirtual

Get a hash key from a state message.

Implements DtReflectedObjectList.

virtual DtReflectedEmitterSystem* DtReflectedEmitterSystemList::last ( ) const
virtual
virtual DtReflectedEmitterSystem* DtReflectedEmitterSystemList::lookup ( const DtGlobalObjectDesignator &  emittingEntity,
int  systemId 
) const
virtual

Lookup an emitter from its object ID and system ID.

virtual DtReflectedObject* DtReflectedEmitterSystemList::newReflectedEmitterSystem ( const DtGlobalObjectDesignator &  emittingEntity,
int  systemId 
)
protectedvirtual

Create a new object from a global designator and system id.

virtual DtReflectedObject* DtReflectedEmitterSystemList::newReflectedObj ( const DtStateMsg &  msg)
protectedvirtual

Overrides base class's implementation. Always returns NULL.

Implements DtReflectedObjectList.

virtual void DtReflectedEmitterSystemList::objectAdded ( DtReflectedObject *  obj)
protectedvirtual

Called after an entity is added and before addition callbacks are processed.

Right now, this function only calls DtInfo.

Reimplemented from DtReflectedObjectList.

DtReflectedEmitterSystemList& DtReflectedEmitterSystemList::operator= ( const DtReflectedEmitterSystemList &  orig)
protected

Assignment operator – Not implemented.

virtual void DtReflectedEmitterSystemList::print ( )
virtual

Print the SRs of all objects.

virtual void DtReflectedEmitterSystemList::processAttributePduCb ( DtAttributeInteraction *  inter)
protectedvirtual

Reimplemented from DtReflectedObjectList.

virtual DtReflectedObject* DtReflectedEmitterSystemList::processStateMessage ( const DtStateMsg &  msg)
protectedvirtual

Process an incoming state message.

Reimplemented from DtReflectedObjectList.

virtual void DtReflectedEmitterSystemList::removeEmitterAdditionCallback ( DtEmitterSystemCallbackFunction  cb,
void *  userData 
)
virtual

This is the same as removeEmitterSystemAdditionCallback and is here only for backwards compatibility.

virtual void DtReflectedEmitterSystemList::removeEmitterRemovalCallback ( DtEmitterSystemCallbackFunction  cb,
void *  userData 
)
virtual

This is the same as removeEmitterSystemRemovalCallback and is here only for backwards compatibility.

virtual void DtReflectedEmitterSystemList::removeEmitterSystemAdditionCallback ( DtEmitterSystemCallbackFunction  cb,
void *  userData 
)
virtual
virtual void DtReflectedEmitterSystemList::removeEmitterSystemRemovalCallback ( DtEmitterSystemCallbackFunction  cb,
void *  userData 
)
virtual

The documentation for this class was generated from the following file:

Document ID: Generated on Mon Sep 28 00:09:32 EDT 2026 from SVN revision 295353
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)