VR-Link API Documentation for HLA Evolved
 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
DtReflectedAggregate Class Reference

class DtReflectedAggregate: More...

+ Inheritance diagram for DtReflectedAggregate:
+ Collaboration diagram for DtReflectedAggregate:

Public Types

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

Public Member Functions

 DtReflectedAggregate (DtHlaObject *obj, DtExerciseConn *conn)
 Constructor. More...
 
 DtReflectedAggregate (DtExerciseConn *conn, DtAggregateStateRepository *asrToUse)
 Constructor that takes in a state repository. More...
 
virtual ~DtReflectedAggregate ()
 Destructor. More...
 
virtual
DtAggregateStateRepository * 
aggregateStateRep () const
 Returns a pointer to the AggregateStateRepository - through which you can inspect current state information. More...
 
virtual
DtAggregateStateRepository * 
asr () const
 Synonym for aggregateStateRep(). More...
 
virtual DtReflectedAggregate * next () const
 Get the next remote aggregate. More...
 
virtual DtReflectedAggregate * prev () const
 Get the previous remote aggregate. More...
 
virtual DtReflectedAggregate * wrapNext () const
 Get the next remote aggregate. More...
 
virtual DtReflectedAggregate * wrapPrev () const
 Get the previous remote aggregate. More...
 
virtual void addPostUpdateCallback (DtAggregateCallbackFunction cb, void *userData)
 Aggregate state callback registration/deregistration. More...
 
virtual void removePostUpdateCallback (DtAggregateCallbackFunction cb, void *userData)
 
virtual RTI::ObjectHandle aggregateObjectId () const
 Get the aggregate HLA object's id. 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 DtStateRepository * stateRep () const
 Returns a pointer to the StateRepository - through which you can inspect current state information. More...
 
virtual DtStateRepository * sr () const
 Synonym for stateRep(). More...
 
virtual DtHlaStateDecoder * decoder ()
 Returns a pointer to the Decoder being used to decode state messages into our SR. More...
 
virtual DtHlaObjectWithStateRep * hlaObject () const
 Get the entity's hlaObject (DtHlaObjectWithStateRep is derived from DtHlaObject). More...
 
virtual const DtObjectId & objectId () const
 Get the HLA object's id. More...
 
virtual const DtObjectId & id () const
 Get the HLA object's id (local ID). More...
 
virtual const DtObjectId & localId () const
 Get the HLA object's id (local ID). More...
 
virtual const DtString & name () 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 const DtString & lastProducingFederate () const
 Get the name of the last federate that produced a reflected update. 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 DtReflectedObject * nextObj () const
 Get the next remote object. More...
 
virtual DtReflectedObject * prevObj () const
 Get the previous remote object. More...
 
virtual DtReflectedObject * wrapNextObj () const
 Get the next remote object. More...
 
virtual DtReflectedObject * wrapPrevObj () 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 DtStateRepCreator stateRepCreator (void)
 Give us a function that returns current creator. More...
 

Protected Member Functions

 DtReflectedAggregate (const DtReflectedAggregate &orig)
 copy constructor More...
 
DtReflectedAggregate & operator= (const DtReflectedAggregate &orig)
 assignment operator More...
 
- Protected Member Functions inherited from DtReflectedObject
 DtReflectedObject (const DtReflectedObject &orig)
 copy constructor – Not Implemented More...
 
DtReflectedObject & operator= (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
DtExerciseConn * myExConn
 
DtHlaObjectWithStateRep * myHlaObj
 
DtStateRepository * myStateRep
 
DtHlaStateDecoder * myDecoder
 
DtIntrusiveList myStateUpdateCallbacks
 
DtObjectId myId
 
DtString myName
 
DtTime myKeyTime
 
DtRefHlaObjectMap::iterator myReflIterator
 
DtRefHlaObjectMap * myReflMap
 

Detailed Description

class DtReflectedAggregate:

Instances of DtReflectedAggregate are used to represent a simulation aggregate reflected across a network (i.e. this is not a full simulation running on this machine).

Member Typedef Documentation

typedef DtAggregateStateRepository*(* DtReflectedAggregate::DtStateRepCreator)()

Function prototype for functions that create DtAggregateStateRepositorys.

Constructor & Destructor Documentation

DtReflectedAggregate::DtReflectedAggregate ( DtHlaObject *  obj,
DtExerciseConn *  conn 
)

Constructor.

DtReflectedAggregate::DtReflectedAggregate ( DtExerciseConn *  conn,
DtAggregateStateRepository *  asrToUse 
)

Constructor that takes in a state repository.

virtual DtReflectedAggregate::~DtReflectedAggregate ( )
virtual

Destructor.

DtReflectedAggregate::DtReflectedAggregate ( const DtReflectedAggregate &  orig)
protected

copy constructor

Member Function Documentation

virtual void DtReflectedAggregate::addPostUpdateCallback ( DtAggregateCallbackFunction  cb,
void *  userData 
)
virtual

Aggregate state callback registration/deregistration.

virtual RTI::ObjectHandle DtReflectedAggregate::aggregateObjectId ( ) const
virtual

Get the aggregate HLA object's id.

For backwards compatibility. Use id() instead.

DtAggregateStateRepository * DtReflectedAggregate::aggregateStateRep ( ) const
inlinevirtual

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

References DtReflectedObject::myStateRep.

DtAggregateStateRepository * DtReflectedAggregate::asr ( ) const
inlinevirtual
virtual DtReflectedAggregate* DtReflectedAggregate::next ( ) const
virtual

Get the next remote aggregate.

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

assignment operator

virtual DtReflectedAggregate* DtReflectedAggregate::prev ( ) const
virtual

Get the previous remote aggregate.

virtual void DtReflectedAggregate::removePostUpdateCallback ( DtAggregateCallbackFunction  cb,
void *  userData 
)
virtual
static DtStateRepCreator DtReflectedAggregate::setStateRepCreator ( DtStateRepCreator  creator)
static

Give us a function to be used for creating SRs.

static DtStateRepCreator DtReflectedAggregate::stateRepCreator ( void  )
static

Give us a function that returns current creator.

virtual DtReflectedAggregate* DtReflectedAggregate::wrapNext ( ) const
virtual

Get the next remote aggregate.

Will cycle back to the first remote aggregate.

virtual DtReflectedAggregate* DtReflectedAggregate::wrapPrev ( ) const
virtual

Get the previous remote aggregate.

Will cycle back to the last remote aggregate.

Member Data Documentation

DtStateRepCreator DtReflectedAggregate::theStateRepCreator
staticprotected

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

Document ID: Generated on Mon Sep 28 00:09:32 EDT 2026 from SVN revision 295353
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)