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 | Protected Attributes
DtReflectedGriddedDataList Class Reference
+ Inheritance diagram for DtReflectedGriddedDataList:
+ Collaboration diagram for DtReflectedGriddedDataList:

Public Member Functions

 DtReflectedGriddedDataList (DtExerciseConn *conn, int numBucketsPrimeNumber=503)
 constructor More...
 
virtual ~DtReflectedGriddedDataList ()
 
virtual DtReflectedGriddedDatalookup (const DtObjectId &id) const
 Lookup a gridded data from its object ID. More...
 
virtual DtReflectedGriddedDatafirst () const
 Get the first and last elements of the gridded data list. More...
 
virtual DtReflectedGriddedDatalast () const
 
virtual void addGriddedDataAdditionCallback (DtGriddedDataCallbackFunction cb, void *userData)
 GriddedData added callback registration/deregistration. More...
 
virtual void removeGriddedDataAdditionCallback (DtGriddedDataCallbackFunction cb, void *userData)
 
virtual void addGriddedDataRemovalCallback (DtGriddedDataCallbackFunction cb, void *userData)
 GriddedData removed callback registration/deregistration. More...
 
virtual void removeGriddedDataRemovalCallback (DtGriddedDataCallbackFunction cb, void *userData)
 
virtual void print ()
 Print the SRs of all objects. More...
 
virtual DtReflectedGriddedDataprocessGriddedData (const DtGriddedDataPdu &pdu)
 Process an incoming gridded data 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, 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)
 

Protected Member Functions

DtReflectedGriddedDataListoperator= (const DtReflectedGriddedDataList &orig)
 Assignment operator – not implemented. More...
 
 DtReflectedGriddedDataList (const DtReflectedGriddedDataList &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 processGriddedData(). More...
 
virtual void objectAdded (DtReflectedObject *obj)
 Called after an gridded data is added and before addition callbacks are processed. More...
 
virtual void finalPduIsSetAction (DtReflectedGriddedData *gridData)
 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 DtReflectedGriddedDatanewReflectedGriddedData (const DtEntityIdentifier &id, const DtEntityType &type) const
 Create a new reflected gridded data. More...
 
virtual void griddedDataAdded (DtReflectedGriddedData *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 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 griddedDataCb (DtGriddedDataPdu *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

DtEntityIdentifierHashKey myHashKey
 
- Protected Attributes inherited from DtReflectedObjectList
DtExerciseConnmyExConn
 
DtIntrusiveList myObjectAddedCallbacks
 
DtIntrusiveList myObjectRemovedCallbacks
 
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

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

constructor

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

Copy constructor – not implemented.

Member Function Documentation

virtual void DtReflectedGriddedDataList::addGriddedDataAdditionCallback ( DtGriddedDataCallbackFunction  cb,
void *  userData 
)
virtual

GriddedData added callback registration/deregistration.

virtual void DtReflectedGriddedDataList::addGriddedDataRemovalCallback ( DtGriddedDataCallbackFunction  cb,
void *  userData 
)
virtual

GriddedData removed callback registration/deregistration.

virtual void DtReflectedGriddedDataList::finalPduIsSetAction ( DtReflectedGriddedData gridData)
protectedvirtual

Called when an env process sends its final PDU.

Currently, this removes and deletes the gridded data.

virtual DtReflectedGriddedData* DtReflectedGriddedDataList::first ( ) const
virtual

Get the first and last elements of the gridded data list.

virtual void DtReflectedGriddedDataList::griddedDataAdded ( DtReflectedGriddedData ent)
protectedvirtual

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

Right now, this function only calls DtInfo.

static void DtReflectedGriddedDataList::griddedDataCb ( DtGriddedDataPdu pdu,
void *  usr 
)
staticprotected

Callback for the exercise connection.

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

Get a hash key from a state message.

Implements DtReflectedObjectList.

virtual DtReflectedGriddedData* DtReflectedGriddedDataList::last ( ) const
virtual
virtual DtReflectedGriddedData* DtReflectedGriddedDataList::lookup ( const DtObjectId id) const
virtual

Lookup a gridded data from its object ID.

virtual DtReflectedGriddedData* DtReflectedGriddedDataList::newReflectedGriddedData ( const DtEntityIdentifier id,
const DtEntityType type 
) const
protectedvirtual

Create a new reflected gridded data.

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

Create a new object from a state message.

Calls newReflectedGriddedData() to create a new gridded data

Implements DtReflectedObjectList.

virtual void DtReflectedGriddedDataList::objectAdded ( DtReflectedObject obj)
protectedvirtual

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

Calls griddedDataAdded().

Reimplemented from DtReflectedObjectList.

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

Assignment operator – not implemented.

virtual void DtReflectedGriddedDataList::print ( )
virtual

Print the SRs of all objects.

virtual DtReflectedGriddedData* DtReflectedGriddedDataList::processGriddedData ( const DtGriddedDataPdu pdu)
virtual

Process an incoming gridded data pdu.

Then calls down to base class processStateMessage().

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

Process an incoming state message. Calls processGriddedData().

Reimplemented from DtReflectedObjectList.

virtual void DtReflectedGriddedDataList::removeGriddedDataAdditionCallback ( DtGriddedDataCallbackFunction  cb,
void *  userData 
)
virtual
virtual void DtReflectedGriddedDataList::removeGriddedDataRemovalCallback ( DtGriddedDataCallbackFunction  cb,
void *  userData 
)
virtual

Member Data Documentation

DtEntityIdentifierHashKey DtReflectedGriddedDataList::myHashKey
protected

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

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)