VR-Forces 4.10 Class Documentation
 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: More...

Inheritance diagram for DtReflectedNavAidList:
Inheritance graph
[legend]

Public Member Functions

 DtReflectedNavAidList (DtExerciseConn *conn, int numBucketsPrimeNumber=503)
 constructor More...
 
virtual ~DtReflectedNavAidList ()
 
virtual DtReflectedNavAidlookup (const DtObjectId &id, int radioId=1) const
 lookup an entity from its object ID and radio ID More...
 
virtual DtReflectedNavAidfirst () const
 get the first and last elements of the radio transmitter list More...
 
virtual DtReflectedNavAidlast () const
 
virtual void addNavAidAdditionCallback (DtNavAidCallbackFunction cb, void *userData)
 NavAid added callback registration/deregistration. More...
 
virtual void removeNavAidAdditionCallback (DtNavAidCallbackFunction cb, void *userData)
 
virtual void addNavAidRemovalCallback (DtNavAidCallbackFunction cb, void *userData)
 NavAid removed callback registration/deregistration. More...
 
virtual void removeNavAidRemovalCallback (DtNavAidCallbackFunction cb, void *userData)
 
virtual void print ()
 Print the SRs of all objects. More...
 
virtual DtReflectedNavAidprocessNavAid (const DtTransmitterPdu &pdu)
 process an incoming environment process pdu. More...
 
 DtReflectedNavAidList (DtExerciseConn *exConn, const DtDDMRegionSet *regionSetToUse=0, const DtString &updateRateTag=DtString(""))
 Constructor. More...
 
 DtReflectedNavAidList (DtExerciseConn *exConn, const DtList *handleList, const DtDDMRegionSet *regionSetToUse=0, const DtString &updateRateTag=DtString(""))
 Constructor - only subscribe to the RTI::ObjectClassHandles in handleList. More...
 
virtual ~DtReflectedNavAidList ()
 destructor More...
 
virtual DtReflectedNavAidlookup (RTI::ObjectHandle id)
 Look up transmitter by identifier. More...
 
virtual DtReflectedNavAidlookup (const DtGlobalObjectDesignator &objName)
 Look up transmitter by name. More...
 
virtual DtReflectedNavAidfirst () const
 Get the first/last transmitter in the list. More...
 
virtual DtReflectedNavAidlast () const
 
virtual void addNavAidAdditionCallback (DtNavAidCallbackFunction cb, void *userData)
 NavAid added callback registration/deregistration. More...
 
virtual void removeNavAidAdditionCallback (DtNavAidCallbackFunction cb, void *userData)
 
virtual void addNavAidRemovalCallback (DtNavAidCallbackFunction cb, void *userData)
 NavAid removed callback registration/deregistration. More...
 
virtual void removeNavAidRemovalCallback (DtNavAidCallbackFunction 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...
 
static bool checkEntityIdentifier (DtReflectedObject *obj, void *usr)
 Callback which checks whether the entity identifier has arrived yet. More...
 

Protected Member Functions

DtReflectedNavAidListoperator= (const DtReflectedNavAidList &orig)
 Assignment operator – not implemented. More...
 
 DtReflectedNavAidList (const DtReflectedNavAidList &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 processNavAid(). More...
 
virtual void objectAdded (DtReflectedObject *obj)
 Called after an env process is added and before addition callbacks are processed. More...
 
virtual void finalPduIsSetAction (DtReflectedNavAid *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 DtReflectedNavAidnewReflectedNavAid (const DtEntityIdentifier &id, int radioId) const
 Create a new reflected env process. More...
 
virtual void navAidAdded (DtReflectedNavAid *ent)
 Called after an env process is added and before addition callbacks are processed. More...
 
 DtReflectedNavAidList (const DtReflectedNavAidList &orig)
 copy constructor More...
 
DtReflectedNavAidListoperator= (const DtReflectedNavAidList &orig)
 assignment operator More...
 
virtual DtReflectedObjectnewReflectedObject (DtHlaObject *obj) const
 Override of virtual function. More...
 
virtual void objectAdded (DtReflectedObject *obj)
 Called from processDiscoverObject() after a remote transmitter has been added to the list. More...
 
virtual const DtList * dfltHandleList ()
 Returns a DtList of RTI::ObjectClassHandles that represent the list of object classes to which this list should subscribe. More...
 

Static Protected Member Functions

static void navAidCb (DtTransmitterPdu *pdu, void *usr)
 callback for the exercise connection More...
 
static bool isNavAidTransmitter (DtReflectedObject *obj, void *usr)
 Discovery criteria callback that returns true if the object is a NavAid transmitter. More...
 

Protected Attributes

DtStringHashKey myHashKey
 

Detailed Description

class DtReflectedNavAidList:

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

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 Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)