VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Attributes
DtReflectedEntity Class Reference

Instances of DtReflectedEntity are used to represent a simulation entity reflected across a network (i.e. More...

+ Inheritance diagram for DtReflectedEntity:
+ Collaboration diagram for DtReflectedEntity:

Public Types

typedef DtEntityStateRepository *(* DtStateRepCreator )()
 Function prototype for functions that create DtEntityStateRepositories. More...
 
typedef DtStateRepCreator DtEsrCreator
 
- Public Types inherited from DtReflectedObject
typedef DtStateRepository *(* DtBaseStateRepCreator )()
 Function prototype for functions that create DtStateRepositories. More...
 

Public Member Functions

 DtReflectedEntity (DtHlaObject *obj, DtExerciseConn *conn)
 constructor More...
 
 DtReflectedEntity (DtExerciseConn *conn, DtEntityStateRepository *esrToUse)
 Constructor with state rep to use passed in Note that setHlaObject() should be called after a reflected entity is created with this method. More...
 
 DtReflectedEntity (DtHlaObject *obj, DtExerciseConn *conn, DtBaseStateRepCreator esrToUse)
 Constructor with entity state repository creator passed in. More...
 
virtual ~DtReflectedEntity ()
 destructor More...
 
virtual DtEntityStateRepositoryentityStateRep () const
 Returns a pointer to the EntityStateRepository - through which you can inspect current state information. More...
 
virtual DtEntityStateRepositoryesr () const
 Synonym for entityStateRep(). More...
 
virtual DtReflectedEntitynext () const
 Get the next remote entity. More...
 
virtual DtReflectedEntityprev () const
 Get the previous remote entity. More...
 
virtual DtReflectedEntitywrapNext () const
 Get the next remote entity. More...
 
virtual DtReflectedEntitywrapPrev () const
 Get the previous remote entity. More...
 
virtual void addPostUpdateCallback (DtEntityCallbackFunction cb, void *userData)
 Entity state callback registration/deregistration. More...
 
virtual void removePostUpdateCallback (DtEntityCallbackFunction cb, void *userData)
 
virtual void diGuyObjectUpdated ()
 
virtual DtOwnershipHandlersetOwnershipHandler (DtOwnershipHandler *handler)
 Sets the current ownership handler to handler. More...
 
virtual void acquireObject ()
 Pass through to the ownership manager. More...
 
virtual RTI::ObjectInstanceHandle entityObjectId () const
 For backwards compatibility. Use id() instead. More...
 
- Public Member Functions inherited from DtReflectedObject
 DtReflectedObject (DtExerciseConn *conn, DtStateRepository *stateRep)
 Primary constructor. More...
 
 DtReflectedObject (DtHlaObject *obj, DtExerciseConn *conn, DtBaseStateRepCreator creator)
 Older constructor. More...
 
 DtReflectedObject (const DtObjectId &id, const DtGlobalObjectDesignator &des, DtExerciseConn *conn, DtBaseStateRepCreator creator)
 Older constructor. More...
 
virtual ~DtReflectedObject ()
 destructor More...
 
virtual DtStateRepositorystateRep () const
 Returns a pointer to the StateRepository - through which you can inspect current state information. More...
 
virtual DtStateRepositorysr () const
 Synonym for stateRep(). More...
 
virtual DtHlaStateDecoderdecoder ()
 Returns a pointer to the Decoder being used to decode state messages into our SR. More...
 
virtual DtHlaObjectWithStateRephlaObject () const
 Get the entity's hlaObject (DtHlaObjectWithStateRep is derived from DtHlaObject). More...
 
virtual const DtObjectIdobjectId () const
 Get the HLA object's id. More...
 
virtual const DtObjectIdid () const
 Get the HLA object's id (local ID). More...
 
virtual const DtObjectIdlocalId () const
 Get the HLA object's id (local ID). More...
 
virtual const DtStringname () const
 Get the HLA object name. More...
 
virtual const
DtGlobalObjectDesignator
globalId () const
 Get the HLA object's global object designator - the object name in HLA. More...
 
virtual DtTime lastSimTimeUpdated () const
 Returns the value of simulation time at the time an update was last received for the entity. More...
 
virtual DtTime lastReceivedTimeStamp () const
 Returns the value of the time send in the last Update received for this entity. More...
 
virtual void baseAddPostUpdateCallback (DtReflectedObjectCallbackFunction cb, void *userData)
 Object state callback registration/deregistration. More...
 
virtual void baseRemovePostUpdateCallback (DtReflectedObjectCallbackFunction cb, void *userData)
 
virtual DtReflectedObjectnextObj () const
 Get the next remote object. More...
 
virtual DtReflectedObjectprevObj () const
 Get the previous remote object. More...
 
virtual DtReflectedObjectwrapNextObj () const
 Get the next remote object. More...
 
virtual DtReflectedObjectwrapPrevObj () const
 Get the previous remote object. More...
 
void setHlaObject (DtHlaObject *obj, DtHlaStateDecoder *decoder=NULL)
 Start reflecting this object, using this decoder. More...
 
virtual void setNoHlaObject (const DtObjectId &id, const DtGlobalObjectDesignator &des)
 Used to set up a proxy DtReflectedEntity - one that is not actually managing a real reflected HLA object. More...
 
void detachHlaObject ()
 Ends managing of current HLA object. More...
 
virtual void requestUpdate ()
 Request that the owner of this entity send an attribute update. More...
 
virtual DtTime keyTime () const
 Set/Get the time value used with ID to define a map key Key is used to store objects by time but still allow index by ID (using this keyTime) More...
 
virtual void setKeyTime (DtTime timeValue)
 Set/Get the time value used with ID to define a map key Key is used to store objects by time but still allow index by ID (using this keyTime) More...
 

Static Public Member Functions

static DtStateRepCreator setStateRepCreator (DtStateRepCreator creator)
 Give us a function to be used for creating SRs. More...
 
static DtEsrCreator setEsrCreator (DtEsrCreator creator)
 For backwards compatibility. More...
 

Protected Member Functions

 DtReflectedEntity (const DtReflectedEntity &orig)
 copy constructor – Not Implemented More...
 
DtReflectedEntityoperator= (const DtReflectedEntity &orig)
 assignment operator – Not Implemented More...
 
- Protected Member Functions inherited from DtReflectedObject
 DtReflectedObject (const DtReflectedObject &orig)
 copy constructor – Not Implemented More...
 
DtReflectedObjectoperator= (const DtReflectedObject &orig)
 assignment operator – Not Implemented More...
 
virtual void processPostUpdateCallbacks ()
 Process the post update callbacks. More...
 

Static Protected Attributes

static DtStateRepCreator theStateRepCreator
 

Additional Inherited Members

- Static Protected Member Functions inherited from DtReflectedObject
static void processPostUpdateCallbacksCb (const DtStateMsg &stateMsg, DtHlaObject *obj, void *usr)
 Callback from HlaObject to process post update callbacks. More...
 
- Protected Attributes inherited from DtReflectedObject
DtExerciseConnmyExConn
 
DtHlaObjectWithStateRepmyHlaObj
 
DtStateRepositorymyStateRep
 
DtHlaStateDecodermyDecoder
 
DtIntrusiveList myStateUpdateCallbacks
 
DtObjectId myId
 
DtString myName
 
DtTime myKeyTime
 
DtRefHlaObjectMap::iterator myReflIterator
 
DtRefHlaObjectMapmyReflMap
 

Detailed Description

Instances of DtReflectedEntity are used to represent a simulation entity reflected across a network (i.e.

this is not a full simulation running on this machine).

Member Typedef Documentation

Deprecated:
Use DtStateRepCreator instead.
typedef DtEntityStateRepository*(* DtReflectedEntity::DtStateRepCreator)()

Function prototype for functions that create DtEntityStateRepositories.

Constructor & Destructor Documentation

DtReflectedEntity::DtReflectedEntity ( DtHlaObject obj,
DtExerciseConn conn 
)

constructor

DtReflectedEntity::DtReflectedEntity ( DtExerciseConn conn,
DtEntityStateRepository esrToUse 
)

Constructor with state rep to use passed in Note that setHlaObject() should be called after a reflected entity is created with this method.

DtReflectedEntity::DtReflectedEntity ( DtHlaObject obj,
DtExerciseConn conn,
DtBaseStateRepCreator  esrToUse 
)

Constructor with entity state repository creator passed in.

virtual DtReflectedEntity::~DtReflectedEntity ( )
virtual

destructor

DtReflectedEntity::DtReflectedEntity ( const DtReflectedEntity orig)
protected

copy constructor – Not Implemented

Member Function Documentation

virtual void DtReflectedEntity::acquireObject ( )
virtual

Pass through to the ownership manager.

virtual void DtReflectedEntity::addPostUpdateCallback ( DtEntityCallbackFunction  cb,
void *  userData 
)
virtual

Entity state callback registration/deregistration.

virtual void DtReflectedEntity::diGuyObjectUpdated ( )
virtual
virtual RTI::ObjectInstanceHandle DtReflectedEntity::entityObjectId ( ) const
virtual

For backwards compatibility. Use id() instead.

DtEntityStateRepository * DtReflectedEntity::entityStateRep ( ) const
inlinevirtual

Returns a pointer to the EntityStateRepository - through which you can inspect current state information.

References DtReflectedObject::myStateRep.

DtEntityStateRepository * DtReflectedEntity::esr ( ) const
inlinevirtual
virtual DtReflectedEntity* DtReflectedEntity::next ( ) const
virtual

Get the next remote entity.

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

assignment operator – Not Implemented

virtual DtReflectedEntity* DtReflectedEntity::prev ( ) const
virtual

Get the previous remote entity.

virtual void DtReflectedEntity::removePostUpdateCallback ( DtEntityCallbackFunction  cb,
void *  userData 
)
virtual
static DtEsrCreator DtReflectedEntity::setEsrCreator ( DtEsrCreator  creator)
static

For backwards compatibility.

Use setStateRepCreator instead. method setEsrCreator is deprecated and will be removed in the future

virtual DtOwnershipHandler* DtReflectedEntity::setOwnershipHandler ( DtOwnershipHandler handler)
virtual

Sets the current ownership handler to handler.

A DtOwnershipHandler is an object that encapsulates callback function for a variety of ownership-management-related functions. Returns previous handler.

static DtStateRepCreator DtReflectedEntity::setStateRepCreator ( DtStateRepCreator  creator)
static

Give us a function to be used for creating SRs.

virtual DtReflectedEntity* DtReflectedEntity::wrapNext ( ) const
virtual

Get the next remote entity.

Will cycle back to the first remote entity.

virtual DtReflectedEntity* DtReflectedEntity::wrapPrev ( ) const
virtual

Get the previous remote entity.

Will cycle back to the last remote entity.

Member Data Documentation

DtStateRepCreator DtReflectedEntity::theStateRepCreator
staticprotected

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

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)