VR-Link API Documentation for DIS
List of all members | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes
DtReflectedRadioTransmitterList Class Reference
+ Inheritance diagram for DtReflectedRadioTransmitterList:
+ Collaboration diagram for DtReflectedRadioTransmitterList:

Public Member Functions

 DtReflectedRadioTransmitterList (DtExerciseConn *conn)
 constructor
virtual ~DtReflectedRadioTransmitterList ()
virtual
DtReflectedRadioTransmitter
lookup (const DtObjectId &id, int radioId=1) const
 lookup an entity from its object ID and radio ID
virtual
DtReflectedRadioTransmitter
first () const
 get the first and last elements of the radio transmitter list
virtual
DtReflectedRadioTransmitter
last () const
virtual void addRadioTransmitterAdditionCallback (DtRadioTransmitterCallbackFunction cb, void *userData)
 RadioTransmitter added callback registration/deregistration.
virtual void removeRadioTransmitterAdditionCallback (DtRadioTransmitterCallbackFunction cb, void *userData)
virtual void addRadioTransmitterRemovalCallback (DtRadioTransmitterCallbackFunction cb, void *userData)
 RadioTransmitter removed callback registration/deregistration.
virtual void removeRadioTransmitterRemovalCallback (DtRadioTransmitterCallbackFunction cb, void *userData)
virtual void print ()
 Print the SRs of all objects.
virtual
DtReflectedRadioTransmitter
processRadioTransmitter (const DtTransmitterPdu &pdu)
 process an incoming environment process pdu.
- Public Member Functions inherited from DtReflectedObjectList
 DtReflectedObjectList (DtExerciseConn *exConn)
 Constructor.
virtual ~DtReflectedObjectList ()
 destructor Warning: makes non-virtual call to removeAndDelete
virtual DtReflectedObjectfirstObj () const
 Get the first/last object in the list.
virtual DtReflectedObjectlastObj () const
virtual int count () const
 Get number of objects.
virtual DtReflectedObjectlookupObj (const DtBaseHashKey &key) const
 Search for an object.
virtual DtExerciseConnexerciseConn () 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 print () const
 Print the SRs of all objects.
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.

Protected Member Functions

DtReflectedRadioTransmitterListoperator= (const DtReflectedRadioTransmitterList &orig)
 Assignment operator – not implemented.
 DtReflectedRadioTransmitterList (const DtReflectedRadioTransmitterList &orig)
 Copy constructor – not implemented.
virtual DtReflectedObjectnewReflectedObj (const DtStateMsg &msg)
 Create a new object from a state message.
virtual DtReflectedObjectprocessStateMessage (const DtStateMsg &msg)
 process an incoming state message. Calls processRadioTransmitter().
virtual void objectAdded (DtReflectedObject *obj)
 Called after an env process is added and before addition callbacks are processed.
virtual void finalPduIsSetAction (DtReflectedRadioTransmitter *envProcess)
 Called when an env process sends its final PDU.
virtual const DtBaseHashKeyhashKeyFromStateMessage (const DtStateMsg *msg)
 Get a hash key from a state message.
virtual
DtReflectedRadioTransmitter
newReflectedRadioTransmitter (const DtEntityIdentifier &id, int radioId) const
 Create a new reflected env process.
virtual void radioTransmitterAdded (DtReflectedRadioTransmitter *ent)
 Called after an env process is added and before addition callbacks are processed.
- Protected Member Functions inherited from DtReflectedObjectList
 DtReflectedObjectList (const DtReflectedObjectList &orig)
 copy constructor – not implemented
DtReflectedObjectListoperator= (const DtReflectedObjectList &orig)
 assignment operator – not implemented
virtual void doTimeouts ()
 Remove any remote objects which have not been updated during the timeout period.
virtual void removeAndDelete (DtReflectedObject *obj, char *msg=NULL)
 Remove the remote object from the list if found and delete it.
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 int acceptPdu (const DtStateMsg &) const
 Determines if a PDU should be processed or not.
virtual bool readyToAdd (DtReflectedObject *obj)
 Returns true if the obj is ready to be added to myObjectList; calls myDiscoveryCondition from within.

Static Protected Member Functions

static void radioTransmitterCb (DtTransmitterPdu *pdu, void *usr)
 callback for the exercise connection
- Static Protected Member Functions inherited from DtReflectedObjectList
static void doTimeoutsPostDrainCb (void *usr)
 Calls doTimeouts.

Protected Attributes

DtStringHashKeymyHashKey
- Protected Attributes inherited from DtReflectedObjectList
DtExerciseConnmyExConn
DtIntrusiveList myObjectAddedCallbacks
DtIntrusiveList myObjectRemovedCallbacks
DtIntrusiveList myObjectList
DtIntrusiveList myWaitList
DtHashlist myObjectHashlist
DtHashlist myWaitHashlist
DtTime myTimeoutInterval
bool myTimeoutProcessingFlag
DtDiscoveryCondition myDiscoveryCondition
void * myDiscoveryConditionParameter

Constructor & Destructor Documentation

DtReflectedRadioTransmitterList::DtReflectedRadioTransmitterList ( DtExerciseConn conn)

constructor

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

Copy constructor – not implemented.

Member Function Documentation

virtual void DtReflectedRadioTransmitterList::addRadioTransmitterAdditionCallback ( DtRadioTransmitterCallbackFunction  cb,
void *  userData 
)
virtual

RadioTransmitter added callback registration/deregistration.

virtual void DtReflectedRadioTransmitterList::addRadioTransmitterRemovalCallback ( DtRadioTransmitterCallbackFunction  cb,
void *  userData 
)
virtual

RadioTransmitter removed callback registration/deregistration.

virtual void DtReflectedRadioTransmitterList::finalPduIsSetAction ( DtReflectedRadioTransmitter envProcess)
protectedvirtual

Called when an env process sends its final PDU.

Currently, this removes and deletes the env process.

virtual DtReflectedRadioTransmitter* DtReflectedRadioTransmitterList::first ( ) const
virtual

get the first and last elements of the radio transmitter list

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

Get a hash key from a state message.

Implements DtReflectedObjectList.

virtual DtReflectedRadioTransmitter* DtReflectedRadioTransmitterList::last ( ) const
virtual
virtual DtReflectedRadioTransmitter* DtReflectedRadioTransmitterList::lookup ( const DtObjectId id,
int  radioId = 1 
) const
virtual

lookup an entity from its object ID and radio ID

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

Create a new object from a state message.

Calls newReflectedRadioTransmitter() to create a new env process

Implements DtReflectedObjectList.

virtual DtReflectedRadioTransmitter* DtReflectedRadioTransmitterList::newReflectedRadioTransmitter ( const DtEntityIdentifier id,
int  radioId 
) const
protectedvirtual

Create a new reflected env process.

virtual void DtReflectedRadioTransmitterList::objectAdded ( DtReflectedObject obj)
protectedvirtual

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

Calls radioTransmitterAdded().

Reimplemented from DtReflectedObjectList.

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

Assignment operator – not implemented.

virtual void DtReflectedRadioTransmitterList::print ( )
virtual

Print the SRs of all objects.

virtual DtReflectedRadioTransmitter* DtReflectedRadioTransmitterList::processRadioTransmitter ( const DtTransmitterPdu pdu)
virtual

process an incoming environment process pdu.

Then calls down to base class processStateMessage().

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

process an incoming state message. Calls processRadioTransmitter().

Reimplemented from DtReflectedObjectList.

virtual void DtReflectedRadioTransmitterList::radioTransmitterAdded ( DtReflectedRadioTransmitter ent)
protectedvirtual

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

Right now, this function only calls DtInfo.

static void DtReflectedRadioTransmitterList::radioTransmitterCb ( DtTransmitterPdu pdu,
void *  usr 
)
staticprotected

callback for the exercise connection

virtual void DtReflectedRadioTransmitterList::removeRadioTransmitterAdditionCallback ( DtRadioTransmitterCallbackFunction  cb,
void *  userData 
)
virtual
virtual void DtReflectedRadioTransmitterList::removeRadioTransmitterRemovalCallback ( DtRadioTransmitterCallbackFunction  cb,
void *  userData 
)
virtual

Member Data Documentation

DtStringHashKey* DtReflectedRadioTransmitterList::myHashKey
protected

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

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)