VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes
DtReflectedNavAidList Class Reference

class DtReflectedNavAidList:

Instances of DtReflectedNavAidList manage the list of of remote NavAids in the exercise.

Inheritance diagram for DtReflectedNavAidList:
Inheritance graph
[legend]

Public Member Functions

 DtReflectedNavAidList (DtExerciseConn *conn, int numBucketsPrimeNumber=503)
 
virtual ~DtReflectedNavAidList ()
 
virtual DtReflectedNavAidlookup (const DtObjectId &id, int radioId=1) const
 
virtual DtReflectedNavAidfirst () const
 
virtual DtReflectedNavAidlast () const
 
virtual void addNavAidAdditionCallback (DtNavAidCallbackFunction cb, void *userData)
 
virtual void removeNavAidAdditionCallback (DtNavAidCallbackFunction cb, void *userData)
 
virtual void addNavAidRemovalCallback (DtNavAidCallbackFunction cb, void *userData)
 
virtual void removeNavAidRemovalCallback (DtNavAidCallbackFunction cb, void *userData)
 
virtual void print ()
 
virtual DtReflectedNavAidprocessNavAid (const DtTransmitterPdu &pdu)
 
 DtReflectedNavAidList (DtExerciseConn *exConn, const DtDDMRegionSet *regionSetToUse=0, const DtString &updateRateTag=DtString(""))
 
 DtReflectedNavAidList (DtExerciseConn *exConn, const DtList *handleList, const DtDDMRegionSet *regionSetToUse=0, const DtString &updateRateTag=DtString(""))
 
virtual ~DtReflectedNavAidList ()
 
virtual DtReflectedNavAidlookup (RTI::ObjectHandle id)
 
virtual DtReflectedNavAidlookup (const DtGlobalObjectDesignator &objName)
 
virtual DtReflectedNavAidfirst () const
 
virtual DtReflectedNavAidlast () const
 
virtual void addNavAidAdditionCallback (DtNavAidCallbackFunction cb, void *userData)
 
virtual void removeNavAidAdditionCallback (DtNavAidCallbackFunction cb, void *userData)
 
virtual void addNavAidRemovalCallback (DtNavAidCallbackFunction cb, void *userData)
 
virtual void removeNavAidRemovalCallback (DtNavAidCallbackFunction cb, void *userData)
 

Static Public Member Functions

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

Protected Member Functions

DtReflectedNavAidListoperator= (const DtReflectedNavAidList &orig)
 
 DtReflectedNavAidList (const DtReflectedNavAidList &orig)
 
virtual DtReflectedObjectnewReflectedObj (const DtStateMsg &msg)
 
virtual DtReflectedObjectprocessStateMessage (const DtStateMsg &msg)
 
virtual void objectAdded (DtReflectedObject *obj)
 
virtual void finalPduIsSetAction (DtReflectedNavAid *envProcess)
 
virtual const DtBaseHashKeyhashKeyFromStateMessage (const DtStateMsg *msg)
 
virtual DtReflectedNavAidnewReflectedNavAid (const DtEntityIdentifier &id, int radioId) const
 
virtual void navAidAdded (DtReflectedNavAid *ent)
 
 DtReflectedNavAidList (const DtReflectedNavAidList &orig)
 
DtReflectedNavAidListoperator= (const DtReflectedNavAidList &orig)
 
virtual DtReflectedObjectnewReflectedObject (DtHlaObject *obj) const
 
virtual void objectAdded (DtReflectedObject *obj)
 
virtual const DtList * dfltHandleList ()
 

Static Protected Member Functions

static void navAidCb (DtTransmitterPdu *pdu, void *usr)
 
static bool isNavAidTransmitter (DtReflectedObject *obj, void *usr)
 

Protected Attributes

DtStringHashKey myHashKey
 

Constructor & Destructor Documentation

DtReflectedNavAidList::DtReflectedNavAidList ( DtExerciseConn *  conn,
int  numBucketsPrimeNumber = 503 
)

constructor

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

Copy constructor – not implemented.

DtReflectedNavAidList::DtReflectedNavAidList ( DtExerciseConn *  exConn,
const DtDDMRegionSet *  regionSetToUse = 0,
const DtString updateRateTag = DtString("") 
)

Constructor.

DtReflectedNavAidList::DtReflectedNavAidList ( DtExerciseConn *  exConn,
const DtList *  handleList,
const DtDDMRegionSet *  regionSetToUse = 0,
const DtString updateRateTag = DtString("") 
)

Constructor - only subscribe to the RTI::ObjectClassHandles in handleList.

virtual DtReflectedNavAidList::~DtReflectedNavAidList ( )
virtual

destructor

DtReflectedNavAidList::DtReflectedNavAidList ( const DtReflectedNavAidList orig)
protected

copy constructor

Member Function Documentation

virtual DtReflectedNavAid* DtReflectedNavAidList::lookup ( const DtObjectId &  id,
int  radioId = 1 
) const
virtual

lookup an entity from its object ID and radio ID

virtual DtReflectedNavAid* DtReflectedNavAidList::first ( ) const
virtual

get the first and last elements of the radio transmitter list

virtual DtReflectedNavAid* DtReflectedNavAidList::last ( ) const
virtual
static bool DtReflectedNavAidList::checkEntityIdentifier ( DtReflectedObject obj,
void *  usr 
)
static

Callback which checks whether the entity identifier has arrived yet.

virtual void DtReflectedNavAidList::addNavAidAdditionCallback ( DtNavAidCallbackFunction  cb,
void *  userData 
)
virtual

NavAid added callback registration/deregistration.

virtual void DtReflectedNavAidList::removeNavAidAdditionCallback ( DtNavAidCallbackFunction  cb,
void *  userData 
)
virtual
virtual void DtReflectedNavAidList::addNavAidRemovalCallback ( DtNavAidCallbackFunction  cb,
void *  userData 
)
virtual

NavAid removed callback registration/deregistration.

virtual void DtReflectedNavAidList::removeNavAidRemovalCallback ( DtNavAidCallbackFunction  cb,
void *  userData 
)
virtual
virtual void DtReflectedNavAidList::print ( )
virtual

Print the SRs of all objects.

virtual DtReflectedNavAid* DtReflectedNavAidList::processNavAid ( const DtTransmitterPdu &  pdu)
virtual

process an incoming environment process pdu. Then calls down to base class processStateMessage().

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

Assignment operator – not implemented.

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

Create a new object from a state message. Calls newReflectedNavAid() to create a new env process.

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

process an incoming state message. Calls processNavAid().

virtual void DtReflectedNavAidList::objectAdded ( DtReflectedObject obj)
protectedvirtual

Called after an env process is added and before addition callbacks are processed. Calls navAidAdded().

virtual void DtReflectedNavAidList::finalPduIsSetAction ( DtReflectedNavAid envProcess)
protectedvirtual

Called when an env process sends its final PDU. Currently, this removes and deletes the env process.

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

Get a hash key from a state message.

virtual DtReflectedNavAid* DtReflectedNavAidList::newReflectedNavAid ( const DtEntityIdentifier &  id,
int  radioId 
) const
protectedvirtual

Create a new reflected env process.

virtual void DtReflectedNavAidList::navAidAdded ( DtReflectedNavAid ent)
protectedvirtual

Called after an env process is added and before addition callbacks are processed. Right now, this function only calls DtInfo.

static void DtReflectedNavAidList::navAidCb ( DtTransmitterPdu *  pdu,
void *  usr 
)
staticprotected

callback for the exercise connection

static bool DtReflectedNavAidList::isNavAidTransmitter ( DtReflectedObject obj,
void *  usr 
)
staticprotected

Discovery criteria callback that returns true if the object is a NavAid transmitter.

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

Callback which checks whether the entity identifier has arrived yet.

virtual DtReflectedNavAid* DtReflectedNavAidList::lookup ( RTI::ObjectHandle  id)
virtual

Look up transmitter by identifier.

virtual DtReflectedNavAid* DtReflectedNavAidList::lookup ( const DtGlobalObjectDesignator objName)
virtual

Look up transmitter by name.

virtual DtReflectedNavAid* DtReflectedNavAidList::first ( ) const
virtual

Get the first/last transmitter in the list.

virtual DtReflectedNavAid* DtReflectedNavAidList::last ( ) const
virtual
virtual void DtReflectedNavAidList::addNavAidAdditionCallback ( DtNavAidCallbackFunction  cb,
void *  userData 
)
virtual

NavAid added callback registration/deregistration.

virtual void DtReflectedNavAidList::removeNavAidAdditionCallback ( DtNavAidCallbackFunction  cb,
void *  userData 
)
virtual
virtual void DtReflectedNavAidList::addNavAidRemovalCallback ( DtNavAidCallbackFunction  cb,
void *  userData 
)
virtual

NavAid removed callback registration/deregistration.

virtual void DtReflectedNavAidList::removeNavAidRemovalCallback ( DtNavAidCallbackFunction  cb,
void *  userData 
)
virtual
DtReflectedNavAidList& DtReflectedNavAidList::operator= ( const DtReflectedNavAidList orig)
protected

assignment operator

virtual DtReflectedObject* DtReflectedNavAidList::newReflectedObject ( DtHlaObject *  obj) const
protectedvirtual

Override of virtual function. Here, we create a DtReflectedNavAid.

virtual void DtReflectedNavAidList::objectAdded ( DtReflectedObject obj)
protectedvirtual

Called from processDiscoverObject() after a remote transmitter has been added to the list. Default implementation prints a message. Subclasses can override this function to add functionality on addition. obj will be an instance of a class derived from DtReflectedObj.

virtual const DtList* DtReflectedNavAidList::dfltHandleList ( )
protectedvirtual

Returns a DtList of RTI::ObjectClassHandles that represent the list of object classes to which this list should subscribe.

Member Data Documentation

DtStringHashKey DtReflectedNavAidList::myHashKey
protected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)