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 | Protected Attributes
DtReflectedObject Class Reference

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

+ Inheritance diagram for DtReflectedObject:
+ Collaboration diagram for DtReflectedObject:

Public Member Functions

 DtReflectedObject (DtExerciseConn *conn)
 constructor
virtual ~DtReflectedObject ()
 destructor
virtual DtStateRepositorystateRep () const =0
 Returns a pointer to the StateRepository - through which you can inspect current state information.
virtual DtStateRepositorysr () const
 Synonym for stateRep().
virtual DtTime lastTimeUpdated () const
 Returns the value of wallclock time at the time an update was last received for the entity.
virtual DtTime lastSimTimeUpdated () const
 Returns the value of sim time at the time an update was last received for the entity.
virtual DtTime lastReceivedTimeStamp () const
 Returns the value in seconds past the hour of the timeStamp from the last received PDU.
virtual void processStateMessage (const DtStateMsg &msg)
 Process an entity state PDU.
virtual void baseAddPostUpdateCallback (DtReflectedObjectCallbackFunction cb, void *userData)
 Object state callback registration/deregistration.
virtual void baseRemovePostUpdateCallback (DtReflectedObjectCallbackFunction cb, void *userData)
virtual DtReflectedObjectnextObj () const
 Get the next remote object.
virtual DtReflectedObjectprevObj () const
 Get the previous remote object.
virtual DtReflectedObjectwrapNextObj () const
 Get the next remote object.
virtual DtReflectedObjectwrapPrevObj () const
 Get the previous remote object.
virtual const DtBaseHashKeyhashKey () const =0
 Get a hash key for this object.
virtual DtString idString () const =0
 Get a string identification of this object.
virtual const
DtGlobalObjectDesignator
globalId () const =0
 Get the Global ID for this object.
- Public Member Functions inherited from DtListedObj
 DtListedObj ()
 Constructor.
virtual ~DtListedObj ()
 Destructor.
void * next () const
 Return next (previous) elements on the list, or NULL if hit the end (beginning) of the list.
void * prev () const
void * wrapNext () const
 Return next (previous) elements on the list, but wrap to the beginning (end) of the list when you hit the end (beginning).
void * wrapPrev () const

Protected Member Functions

 DtReflectedObject (const DtReflectedObject &orig)
 copy constructor – not implemented
DtReflectedObjectoperator= (const DtReflectedObject &orig)
 assignment operator – not implemented
virtual void processPostUpdateCallbacks ()
 Process the post update callbacks.

Protected Attributes

DtExerciseConnmyExConn
DtIntrusiveList myStateUpdateCallbacks
DtTime myLastTimeUpdated
DtTime myLastSimTimeUpdated
DtTime myLastReceivedTimeStamp
- Protected Attributes inherited from DtListedObj
DtListmyList
DtListItemmyItem

Detailed Description

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

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

Constructor & Destructor Documentation

DtReflectedObject::DtReflectedObject ( DtExerciseConn conn)

constructor

virtual DtReflectedObject::~DtReflectedObject ( )
virtual

destructor

DtReflectedObject::DtReflectedObject ( const DtReflectedObject orig)
protected

copy constructor – not implemented

Member Function Documentation

virtual void DtReflectedObject::baseAddPostUpdateCallback ( DtReflectedObjectCallbackFunction  cb,
void *  userData 
)
virtual

Object state callback registration/deregistration.

virtual void DtReflectedObject::baseRemovePostUpdateCallback ( DtReflectedObjectCallbackFunction  cb,
void *  userData 
)
virtual
virtual const DtGlobalObjectDesignator& DtReflectedObject::globalId ( ) const
pure virtual
virtual const DtBaseHashKey& DtReflectedObject::hashKey ( ) const
pure virtual
virtual DtString DtReflectedObject::idString ( ) const
pure virtual
virtual DtTime DtReflectedObject::lastReceivedTimeStamp ( ) const
virtual

Returns the value in seconds past the hour of the timeStamp from the last received PDU.

virtual DtTime DtReflectedObject::lastSimTimeUpdated ( ) const
virtual

Returns the value of sim time at the time an update was last received for the entity.

virtual DtTime DtReflectedObject::lastTimeUpdated ( ) const
virtual

Returns the value of wallclock time at the time an update was last received for the entity.

virtual DtReflectedObject* DtReflectedObject::nextObj ( ) const
virtual

Get the next remote object.

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

assignment operator – not implemented

virtual DtReflectedObject* DtReflectedObject::prevObj ( ) const
virtual

Get the previous remote object.

virtual void DtReflectedObject::processPostUpdateCallbacks ( )
protectedvirtual

Process the post update callbacks.

virtual void DtReflectedObject::processStateMessage ( const DtStateMsg msg)
virtual
virtual DtStateRepository* DtReflectedObject::sr ( ) const
virtual

Synonym for stateRep().

virtual DtStateRepository* DtReflectedObject::stateRep ( ) const
pure virtual
virtual DtReflectedObject* DtReflectedObject::wrapNextObj ( ) const
virtual

Get the next remote object.

Will cycle back to the first remote object.

virtual DtReflectedObject* DtReflectedObject::wrapPrevObj ( ) const
virtual

Get the previous remote object.

Will cycle back to the last remote object.

Member Data Documentation

DtExerciseConn* DtReflectedObject::myExConn
protected
DtTime DtReflectedObject::myLastReceivedTimeStamp
protected
DtTime DtReflectedObject::myLastSimTimeUpdated
protected
DtTime DtReflectedObject::myLastTimeUpdated
protected
DtIntrusiveList DtReflectedObject::myStateUpdateCallbacks
protected

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

Document ID: Generated on Tue Mar 1 02:56:17 EST 2016 from SVN revision 162687
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)