![]() |
VR-Link API Documentation for DIS
|
Instances of this class provide a protocol independent interface to a reflected aggregate in a DIS environment. More...
Inheritance diagram for DtReflectedAggregate:
Collaboration diagram for DtReflectedAggregate:Public Types | |
| typedef DtAggregateStateRepository *(* | DtStateRepCreator )() |
| Function prototype for functions that create DtAggregateStateRepositorys. More... | |
Public Member Functions | |
| DtReflectedAggregate (DtExerciseConn *conn, const DtEntityIdentifier &id, const DtEntityType &type) | |
| Constructor. More... | |
| DtReflectedAggregate (DtAggregateStateRepository *sr, DtExerciseConn *conn, const DtEntityIdentifier &id) | |
| 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 DtStateRepository * | stateRep () const |
| Returns a pointer to the StateRepository - through which you can inspect current state information. More... | |
| virtual DtAggregateStateDecoder * | decoder () |
| Returns a pointer to the Decoder being used to decode state messages into our ASR. More... | |
| virtual const DtEntityIdentifier & | aggregateID () const |
| Returns the aggregate identifier. More... | |
| virtual const DtObjectId & | id () const |
| Get the aggregate's id. (For DIS, DtObjectId is DtEntityIdentifier). More... | |
| virtual const DtGlobalObjectDesignator & | globalId () const |
| Get the aggregate's object's global object designator - for DIS, it's the same as its DtEntityIdentifier. More... | |
| virtual void | processStateMessage (const DtStateMsg &msg) |
| Process an aggregate state PDU. More... | |
| virtual void | processRelativeLocation (const DtRelativeLocationPdu &pdu) |
| virtual DtReflectedAggregate * | next () const |
| Get the next and previous elements in the reflected aggregate list. More... | |
| virtual DtReflectedAggregate * | prev () const |
| virtual DtReflectedAggregate * | wrapNext () const |
| Get the next and previous elements, wrap at the ends of the list. More... | |
| virtual DtReflectedAggregate * | wrapPrev () const |
| virtual void | addPostUpdateCallback (DtAggregateCallbackFunction cb, void *userData) |
| Entity state callback registration/deregistration. More... | |
| virtual void | removePostUpdateCallback (DtAggregateCallbackFunction cb, void *userData) |
| virtual const DtBaseHashKey & | hashKey () const |
| Get a hash key for this object. More... | |
| virtual DtString | idString () const |
| Get a string identification of this object. More... | |
| virtual void | processAggregateState (const DtAggregateStatePdu &pdu) |
| Process an entity state PDU. More... | |
Public Member Functions inherited from DtReflectedObject | |
| DtReflectedObject (DtExerciseConn *conn) | |
| constructor More... | |
| virtual | ~DtReflectedObject () |
| destructor More... | |
| virtual DtStateRepository * | sr () const |
| Synonym for stateRep(). More... | |
| virtual DtTime | lastTimeUpdated () const |
| Returns the value of wallclock time at the time an update was last received for the entity. More... | |
| virtual DtTime | lastSimTimeUpdated () const |
| Returns the value of sim time at the time an update was last received for the entity. More... | |
| virtual DtTime | lastReceivedTimeStamp () const |
| Returns the value in seconds past the hour of the timeStamp from the last received PDU. 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... | |
Public Member Functions inherited from DtListedObj | |
| DtListedObj () | |
| Constructor. More... | |
| virtual | ~DtListedObj () |
| Destructor. More... | |
| void * | next () const |
| Return next (previous) elements on the list, or NULL if hit the end (beginning) of the list. More... | |
| 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). More... | |
| void * | wrapPrev () const |
Static Public Member Functions | |
| static void | setStateRepCreator (DtStateRepCreator creator) |
| Give us a function to be used for creating SRs. More... | |
| static DtStateRepCreator | stateRepCreator (void) |
Protected Member Functions | |
| DtReflectedAggregate (const DtReflectedAggregate &orig) | |
| copy constructor – not implemented More... | |
| DtReflectedAggregate & | operator= (const DtReflectedAggregate &orig) |
| assignment operator – not implemented 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... | |
Protected Attributes | |
| DtEntityIdentifier | myId |
| DtAggregateStateRepository * | myAggregateStateRep |
| DtAggregateStateDecoder * | myAggregateDecoder |
| DtEntityIdentifierHashKey | myHashKey |
Protected Attributes inherited from DtReflectedObject | |
| DtExerciseConn * | myExConn |
| DtIntrusiveList | myStateUpdateCallbacks |
| DtTime | myLastTimeUpdated |
| DtTime | myLastSimTimeUpdated |
| DtTime | myLastReceivedTimeStamp |
Protected Attributes inherited from DtListedObj | |
| DtList * | myList |
| DtListItem * | myItem |
Static Protected Attributes | |
| static DtStateRepCreator | theStateRepCreator |
Instances of this class provide a protocol independent interface to a reflected aggregate in a DIS environment.
| typedef DtAggregateStateRepository*(* DtReflectedAggregate::DtStateRepCreator)() |
Function prototype for functions that create DtAggregateStateRepositorys.
| DtReflectedAggregate::DtReflectedAggregate | ( | DtExerciseConn * | conn, |
| const DtEntityIdentifier & | id, | ||
| const DtEntityType & | type | ||
| ) |
Constructor.
| DtReflectedAggregate::DtReflectedAggregate | ( | DtAggregateStateRepository * | sr, |
| DtExerciseConn * | conn, | ||
| const DtEntityIdentifier & | id | ||
| ) |
Constructor that takes in a state repository.
|
virtual |
Destructor.
|
protected |
copy constructor – not implemented
|
virtual |
Entity state callback registration/deregistration.
|
virtual |
Returns the aggregate identifier.
|
virtual |
Returns a pointer to the AggregateStateRepository - through which you can inspect current state information.
|
virtual |
Synonym for aggregateStateRep().
|
virtual |
Returns a pointer to the Decoder being used to decode state messages into our ASR.
|
virtual |
Get the aggregate's object's global object designator - for DIS, it's the same as its DtEntityIdentifier.
Implements DtReflectedObject.
|
virtual |
Get a hash key for this object.
Implements DtReflectedObject.
|
virtual |
Get the aggregate's id. (For DIS, DtObjectId is DtEntityIdentifier).
|
virtual |
Get a string identification of this object.
Implements DtReflectedObject.
|
virtual |
Get the next and previous elements in the reflected aggregate list.
|
protected |
assignment operator – not implemented
|
virtual |
|
virtual |
Process an entity state PDU.
Also calls down to base class processStateMessage().
|
virtual |
|
virtual |
Process an aggregate state PDU.
Implementation for abstract base class.
Reimplemented from DtReflectedObject.
|
virtual |
|
static |
Give us a function to be used for creating SRs.
|
virtual |
Returns a pointer to the StateRepository - through which you can inspect current state information.
Implementation for abstract base class. Calls asr().
Implements DtReflectedObject.
|
static |
|
virtual |
Get the next and previous elements, wrap at the ends of the list.
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |