VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
DtReflectedVrfExtEntityList Class Reference
Inheritance diagram for DtReflectedVrfExtEntityList:
Inheritance graph
[legend]

Public Member Functions

 DtReflectedVrfExtEntityList (DtExerciseConn *exConn, DtVrfParameterDb *pdb=0)
 Constructor - obtains the set of object classes to subscribe to from the exConn's fomMapper.
 DtReflectedVrfExtEntityList (DtExerciseConn *exConn, const DtDDMRegionSet *regionSetToUse, DtVrfParameterDb *pdb=0)
 Constructor - obtains the set of object classes to subscribe to from the exConn's fomMapper.
 DtReflectedVrfExtEntityList (DtExerciseConn *exConn, const DtList *handleList, const DtDDMRegionSet *regionSetToUse=0, DtVrfParameterDb *pdb=0)
 Constructor - only subscribe to the RTI::ObjectClassHandles in handleList.
virtual ~DtReflectedVrfExtEntityList ()
 Destructor.
virtual void setParameterDatabase (DtVrfParameterDb *pdb)
 Sets the parameter database. Must be called whenever the SMS changes.
virtual DtVrfParameterDbparameterDatabase ()
 Returns the loaded parameter database.
virtual const DtVrfParameterDbparameterDatabase () const
- Public Member Functions inherited from DtReflectedExtEntityList
 DtReflectedExtEntityList (DtExerciseConn *exConn, const DtRwProperties &stateProps=DtRwProperties::emptyProperties(), const DtRwProperties &paramProps=DtRwProperties::emptyProperties())
 Constructor - obtains the set of object classes to subscribe to from the exConn's fomMapper.
 DtReflectedExtEntityList (DtExerciseConn *exConn, const DtDDMRegionSet *regionSetToUse, const DtRwProperties &stateProps=DtRwProperties::emptyProperties(), const DtRwProperties &paramProps=DtRwProperties::emptyProperties())
 Constructor - obtains the set of object classes to subscribe to from the exConn's fomMapper.
 DtReflectedExtEntityList (DtExerciseConn *exConn, const DtList *handleList, const DtDDMRegionSet *regionSetToUse=0, const DtRwProperties &stateProps=DtRwProperties::emptyProperties(), const DtRwProperties &paramProps=DtRwProperties::emptyProperties())
 Constructor - only subscribe to the RTI::ObjectClassHandles in handleList.
virtual ~DtReflectedExtEntityList ()
 Destructor.
virtual void setPropertyPrototypes (const DtRwProperties &stateProps, const DtRwProperties &paramProps)
 Sets the prototypes for state and parameter properties.
virtual void setWaitForVrfExtendedData (bool)
 Sets whether or not to wait for VRF extended data in readyToAdd.
virtual bool waitForVrfExtendedData () const
 Whether to wait for VRF extended data in readyToAdd.
virtual DtReflectedExtEntitylookupEE (RTI::ObjectHandle id)
 Look up entity by handle.
virtual DtReflectedExtEntitylookupEE (const DtGlobalObjectDesignator &objName)
 Look up entity by name.
virtual DtReflectedExtEntityfirstEE () const
 Get the first entity in the list.
virtual DtReflectedExtEntitylastEE () const
 Get the last entity in the list.
virtual void addEntityAdditionCallback (DtExtEntityCallbackFunction cb, void *userData)
 Entity added callback registration.
virtual void removeEntityAdditionCallback (DtExtEntityCallbackFunction cb, void *userData)
 Entity added callback deregistration.
virtual void addEntityRemovalCallback (DtExtEntityCallbackFunction cb, void *userData)
 Entity removed callback registration.
virtual void removeEntityRemovalCallback (DtExtEntityCallbackFunction cb, void *userData)
 Entity removed callback deregistration.

Protected Types

typedef std::map
< DtReflectedEntity
*, DtObjectType
InitializedTypeMap

Protected Member Functions

virtual void entityAdded (DtReflectedEntity *)
 When an entity is added initialize any extended properties (if supported and available) as well as add update callback for object.
virtual void entityUpdated (DtReflectedEntity *ent)
 Ensure entity is initialized with the correct type.
virtual void entityRemoved (DtReflectedEntity *)
 Remove entry in myInitializedWithType map.
- Protected Member Functions inherited from DtReflectedExtEntityList
void initializeExtendedProperties ()
 Determines whether or not extended properties available. Called from constructors.
void processVrfObjectStateUpdateMessage (DtDataInteraction *interaction)
void processVrfObjectDataMessage (DtDataInteraction *interaction)
virtual void processDataInteraction (DtDataInteraction *i)
virtual DtReflectedObjectnewReflectedObject (DtHlaObject *obj) const
 Create a new reflected entity.
virtual void addToObjectList (DtReflectedObject *refObj)
virtual void cleanupObjectDataMessageHashList ()
 Called from destructor. Cleans up myObjectDataMessageHashlist and removed all memory.
virtual bool readyToAdd (DtReflectedObject *obj)
 Overridden to see if: a) This object is a VRF object b) This object has VRF object data associated with it, via extended attributes or object data message.
virtual bool setupVrfObjectData (DtReflectedObject *object)
 Sets up extended state repository from cached VRF data (if exists).
virtual bool addObjectIfWaitingForVrfMessage (DtReflectedExtEntity *)
 Will start the process of adding an object to the reflected list if this object is waiting for a VRF message.
virtual void requestVrfObjectData (DtReflectedObject *object)
 This routine will request the VRF object data message to be sent for a VRF entity.
virtual bool timeOutVrfObjectDataRequest (DtReflectedObject *obj)
 Returns true if the time has been too long in receiving a VRF object data request.
virtual void removeAndDelete (DtReflectedObject *obj, char *msg=NULL)
 Override to remove objects from any waiting lists.
virtual void diguyExtensionsSetup ()
 Sets up the HLA decoders for DI-Guy extensions.
virtual void processObjectAdditionCallbacks (DtReflectedObject *object)
 Process object addition/removal callbacks.

Protected Attributes

DtVrfParameterDbmyParameterDb
InitializedTypeMap myInitializedWithType
- Protected Attributes inherited from DtReflectedExtEntityList
DtHashlist myObjectDataMessageHashlist
 List to keep the VRF obj data messages that have been found but not associated with new entities yet.
DtHashList myObjectDataMessageRequestList
 List to keep track of requests for VRF object message data and the time they were sent.
DtHashList myWaitingForVrfObjectData
 Reflected objects that are waiting for VRF object updates.
bool myWaitForVrfExtendedData
DtRwProperties myStatePropertiesPrototype
DtRwProperties myParameterPropertiesPrototype

Additional Inherited Members

- Static Public Member Functions inherited from DtReflectedExtEntityList
static void setTimeoutRequestTime (DtTime t)
 Sets the time to timeout on VRF object data request. Default is 2 seconds.
static DtTime timeoutRequestTime ()
static void setInitializer (DtExtendedAttributesInitializerPtr init)
 Set the initializer used by all reflected lists of this type.
static
DtExtendedAttributesInitializerPtr 
initializer ()
 Returns the initializer used by all reflected lists of this type.
- Static Protected Member Functions inherited from DtReflectedExtEntityList
static void dataInteractionCallback (DtDataInteraction *i, void *usr)
static void entityUpdatedCallback (DtReflectedEntity *entity, void *userData)
 When an entity is updated, we will update its state properties.
static void entityRemovedCallback (DtReflectedEntity *entity, void *userData)
 When an entity is removed we need to de-register our update callback.
- Static Protected Attributes inherited from DtReflectedExtEntityList
static DtTime theTimeoutRequestTime
static
DtExtendedAttributesInitializerPtr 
theInitializer

Member Typedef Documentation

Constructor & Destructor Documentation

DtReflectedVrfExtEntityList::DtReflectedVrfExtEntityList ( DtExerciseConn *  exConn,
DtVrfParameterDb pdb = 0 
)

Constructor - obtains the set of object classes to subscribe to from the exConn's fomMapper.

DtReflectedVrfExtEntityList::DtReflectedVrfExtEntityList ( DtExerciseConn *  exConn,
const DtDDMRegionSet *  regionSetToUse,
DtVrfParameterDb pdb = 0 
)

Constructor - obtains the set of object classes to subscribe to from the exConn's fomMapper.

DtReflectedVrfExtEntityList::DtReflectedVrfExtEntityList ( DtExerciseConn *  exConn,
const DtList *  handleList,
const DtDDMRegionSet *  regionSetToUse = 0,
DtVrfParameterDb pdb = 0 
)

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

virtual DtReflectedVrfExtEntityList::~DtReflectedVrfExtEntityList ( )
virtual

Destructor.

Member Function Documentation

virtual void DtReflectedVrfExtEntityList::setParameterDatabase ( DtVrfParameterDb pdb)
virtual

Sets the parameter database. Must be called whenever the SMS changes.

virtual DtVrfParameterDb* DtReflectedVrfExtEntityList::parameterDatabase ( )
virtual

Returns the loaded parameter database.

virtual const DtVrfParameterDb* DtReflectedVrfExtEntityList::parameterDatabase ( ) const
virtual
virtual void DtReflectedVrfExtEntityList::entityAdded ( DtReflectedEntity )
protectedvirtual

When an entity is added initialize any extended properties (if supported and available) as well as add update callback for object.

Reimplemented from DtReflectedExtEntityList.

virtual void DtReflectedVrfExtEntityList::entityUpdated ( DtReflectedEntity ent)
protectedvirtual

Ensure entity is initialized with the correct type.

Reimplemented from DtReflectedExtEntityList.

virtual void DtReflectedVrfExtEntityList::entityRemoved ( DtReflectedEntity )
protectedvirtual

Remove entry in myInitializedWithType map.

Reimplemented from DtReflectedExtEntityList.

Member Data Documentation

DtVrfParameterDb* DtReflectedVrfExtEntityList::myParameterDb
protected
InitializedTypeMap DtReflectedVrfExtEntityList::myInitializedWithType
protected

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

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)