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 | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes
DtReflectedRadioReceiverList Class Reference
+ Inheritance diagram for DtReflectedRadioReceiverList:
+ Collaboration diagram for DtReflectedRadioReceiverList:

Public Member Functions

 DtReflectedRadioReceiverList (DtExerciseConn *conn, int numBucketsPrimeNumber=503)
 constructor More...
 
virtual ~DtReflectedRadioReceiverList ()
 
virtual DtReflectedRadioReceiverlookup (const DtObjectId &id, int radioId=1) const
 lookup an entity from its object ID and radio ID More...
 
virtual DtReflectedRadioReceiverfirst () const
 get the first and last elements of the radio receiver list More...
 
virtual DtReflectedRadioReceiverlast () const
 
virtual void addRadioReceiverAdditionCallback (DtRadioReceiverCallbackFunction cb, void *userData)
 RadioReceiver added callback registration/deregistration. More...
 
virtual void removeRadioReceiverAdditionCallback (DtRadioReceiverCallbackFunction cb, void *userData)
 
virtual void addRadioReceiverRemovalCallback (DtRadioReceiverCallbackFunction cb, void *userData)
 RadioReceiver removed callback registration/deregistration. More...
 
virtual void removeRadioReceiverRemovalCallback (DtRadioReceiverCallbackFunction cb, void *userData)
 
virtual void print ()
 Print the SRs of all objects. More...
 
virtual DtReflectedRadioReceiverprocessRadioReceiver (const DtReceiverPdu &pdu)
 process an incoming environment process pdu. 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 DtReflectedObjectfirstObj () const
 Get the first/last object in the list. More...
 
virtual DtReflectedObjectlastObj () const
 
virtual int count () const
 Get number of objects. More...
 
virtual DtReflectedObjectlookupObj (const DtBaseHashKey &key) const
 Search for an object. More...
 
virtual DtExerciseConnexerciseConn () 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)
 

Static Public Member Functions

static bool checkEntityIdentifier (DtReflectedObject *obj, void *usr)
 Callback which checks whether the entity identifier has arrived yet. More...
 

Protected Member Functions

DtReflectedRadioReceiverListoperator= (const DtReflectedRadioReceiverList &orig)
 Assignment operator – not implemented. More...
 
 DtReflectedRadioReceiverList (const DtReflectedRadioReceiverList &orig)
 Copy constructor – not implemented. More...
 
virtual DtReflectedObjectnewReflectedObj (const DtStateMsg &msg)
 Create a new object from a state message. More...
 
virtual DtReflectedObjectprocessStateMessage (const DtStateMsg &msg)
 process an incoming state message. Calls processRadioReceiver(). More...
 
virtual void objectAdded (DtReflectedObject *obj)
 Called after an env process is added and before addition callbacks are processed. More...
 
virtual void finalPduIsSetAction (DtReflectedRadioReceiver *envProcess)
 Called when an env process sends its final PDU. More...
 
virtual const DtBaseHashKeyhashKeyFromStateMessage (const DtStateMsg *msg)
 Get a hash key from a state message. More...
 
virtual DtReflectedRadioReceivernewReflectedRadioReceiver (const DtEntityIdentifier &id, int radioId) const
 Create a new reflected env process. More...
 
virtual void radioReceiverAdded (DtReflectedRadioReceiver *ent)
 Called after an env process is added and before addition callbacks are processed. 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 void processWaitlistAdditionCallbacks (DtReflectedObject *object)
 Process waitlist addition/removal callbacks. More...
 
virtual void processWaitlistRemovalCallbacks (DtReflectedObject *object)
 
virtual DtBaseHashKeyhashKeyFromAttributeRecordSet (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 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 radioReceiverCb (DtReceiverPdu *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)
 

Protected Attributes

DtSystemHashKey myHashKey
 
- Protected Attributes inherited from DtReflectedObjectList
DtExerciseConnmyExConn
 
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< DtPduKindmyPduKindSet
 

Constructor & Destructor Documentation

DtReflectedRadioReceiverList::DtReflectedRadioReceiverList ( DtExerciseConn conn,
int  numBucketsPrimeNumber = 503 
)

constructor

virtual DtReflectedRadioReceiverList::~DtReflectedRadioReceiverList ( )
virtual
DtReflectedRadioReceiverList::DtReflectedRadioReceiverList ( const DtReflectedRadioReceiverList orig)
protected

Copy constructor – not implemented.

Member Function Documentation

virtual void DtReflectedRadioReceiverList::addRadioReceiverAdditionCallback ( DtRadioReceiverCallbackFunction  cb,
void *  userData 
)
virtual

RadioReceiver added callback registration/deregistration.

virtual void DtReflectedRadioReceiverList::addRadioReceiverRemovalCallback ( DtRadioReceiverCallbackFunction  cb,
void *  userData 
)
virtual

RadioReceiver removed callback registration/deregistration.

static bool DtReflectedRadioReceiverList::checkEntityIdentifier ( DtReflectedObject obj,
void *  usr 
)
static

Callback which checks whether the entity identifier has arrived yet.

virtual void DtReflectedRadioReceiverList::finalPduIsSetAction ( DtReflectedRadioReceiver envProcess)
protectedvirtual

Called when an env process sends its final PDU.

Currently, this removes and deletes the env process.

virtual DtReflectedRadioReceiver* DtReflectedRadioReceiverList::first ( ) const
virtual

get the first and last elements of the radio receiver list

virtual const DtBaseHashKey& DtReflectedRadioReceiverList::hashKeyFromStateMessage ( const DtStateMsg msg)
protectedvirtual

Get a hash key from a state message.

Implements DtReflectedObjectList.

virtual DtReflectedRadioReceiver* DtReflectedRadioReceiverList::last ( ) const
virtual
virtual DtReflectedRadioReceiver* DtReflectedRadioReceiverList::lookup ( const DtObjectId id,
int  radioId = 1 
) const
virtual

lookup an entity from its object ID and radio ID

virtual DtReflectedObject* DtReflectedRadioReceiverList::newReflectedObj ( const DtStateMsg msg)
protectedvirtual

Create a new object from a state message.

Calls newReflectedRadioReceiver() to create a new env process

Implements DtReflectedObjectList.

virtual DtReflectedRadioReceiver* DtReflectedRadioReceiverList::newReflectedRadioReceiver ( const DtEntityIdentifier id,
int  radioId 
) const
protectedvirtual

Create a new reflected env process.

virtual void DtReflectedRadioReceiverList::objectAdded ( DtReflectedObject obj)
protectedvirtual

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

Calls radioReceiverAdded().

Reimplemented from DtReflectedObjectList.

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

Assignment operator – not implemented.

virtual void DtReflectedRadioReceiverList::print ( )
virtual

Print the SRs of all objects.

virtual DtReflectedRadioReceiver* DtReflectedRadioReceiverList::processRadioReceiver ( const DtReceiverPdu pdu)
virtual

process an incoming environment process pdu.

Then calls down to base class processStateMessage().

virtual DtReflectedObject* DtReflectedRadioReceiverList::processStateMessage ( const DtStateMsg msg)
protectedvirtual

process an incoming state message. Calls processRadioReceiver().

Reimplemented from DtReflectedObjectList.

virtual void DtReflectedRadioReceiverList::radioReceiverAdded ( DtReflectedRadioReceiver ent)
protectedvirtual

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

Right now, this function only calls DtInfo.

static void DtReflectedRadioReceiverList::radioReceiverCb ( DtReceiverPdu pdu,
void *  usr 
)
staticprotected

callback for the exercise connection

virtual void DtReflectedRadioReceiverList::removeRadioReceiverAdditionCallback ( DtRadioReceiverCallbackFunction  cb,
void *  userData 
)
virtual
virtual void DtReflectedRadioReceiverList::removeRadioReceiverRemovalCallback ( DtRadioReceiverCallbackFunction  cb,
void *  userData 
)
virtual

Member Data Documentation

DtSystemHashKey DtReflectedRadioReceiverList::myHashKey
protected

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

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)