![]() |
VR-Link API Documentation for DIS
|
Instances of this class provide a protocol independent interface to a list of reflected aggregates in a DIS environment. More...
Inheritance diagram for DtReflectedAggregateList:
Collaboration diagram for DtReflectedAggregateList:Public Member Functions | |
| DtReflectedAggregateList (DtExerciseConn *exConn, bool smoothCapable=false) | |
| Constructor. | |
| virtual | ~DtReflectedAggregateList () |
| Destructor. | |
| virtual DtReflectedAggregate * | lookup (const DtObjectId &id) const |
| Lookup an aggregate from its object ID. | |
| virtual DtReflectedAggregate * | first () const |
| Get the first and last elements of the aggregate list. | |
| virtual DtReflectedAggregate * | last () const |
| virtual void | addAggregateAdditionCallback (DtAggregateCallbackFunction cb, void *userData) |
| Aggregate added callback registration/deregistration. | |
| virtual void | removeAggregateAdditionCallback (DtAggregateCallbackFunction cb, void *userData) |
| virtual void | addAggregateRemovalCallback (DtAggregateCallbackFunction cb, void *userData) |
| Aggregate removed callback registration/deregistration. | |
| virtual void | removeAggregateRemovalCallback (DtAggregateCallbackFunction cb, void *userData) |
| virtual void | print () |
| Print the SRs of all objects. | |
| virtual DtReflectedAggregate * | processAggregateState (const DtAggregateStatePdu &pdu) |
| Process an incoming aggregate state pdu. | |
| virtual void | processRelativeLocationPdu (const DtRelativeLocationPdu &pdu) |
| Process an incoming relativeLocation pdu. | |
Public Member Functions inherited from DtReflectedObjectList | |
| DtReflectedObjectList (DtExerciseConn *exConn) | |
| Constructor. | |
| virtual | ~DtReflectedObjectList () |
| destructor Warning: makes non-virtual call to removeAndDelete | |
| virtual void | initializeAttributePduKindsOfInterest (const std::set< DtPduKind > &pduKinds) |
| This initializes which PDU kinds will be processed when receiving an Attribute PDU. | |
| virtual DtReflectedObject * | firstObj () const |
| Get the first/last object in the list. | |
| virtual DtReflectedObject * | lastObj () const |
| virtual int | count () const |
| Get number of objects. | |
| virtual DtReflectedObject * | lookupObj (const DtBaseHashKey &key) const |
| Search for an object. | |
| virtual DtExerciseConn * | exerciseConn () const |
| Get my exerciseConn. | |
| virtual void | addObjectAdditionCallback (DtReflectedObjectCallbackFunction cb, void *userData) |
| Object added callback registration/deregistration. | |
| virtual void | removeObjectAdditionCallback (DtReflectedObjectCallbackFunction cb, void *userData) |
| virtual void | addObjectRemovalCallback (DtReflectedObjectCallbackFunction cb, void *userData) |
| Object removed callback registration/deregistration. | |
| virtual void | removeObjectRemovalCallback (DtReflectedObjectCallbackFunction cb, void *userData) |
| virtual void | print () const |
| Print the SRs of all objects. | |
| virtual void | setTimeoutProcessing (bool onOff) |
| Set whether or not timeout processing occurs. | |
| virtual void | setTimeoutInterval (DtTime time) |
| Set/Get the remote object timeout period. | |
| virtual DtTime | timeoutInterval () |
| virtual void | setDiscoveryCondition (DtDiscoveryCondition fn, void *usr) |
| Set the checker function which will determine when an object gets discovered and put into the ref. | |
| virtual void | clearDiscoveryCondition () |
| Unregisters the checker function set in setDiscoverCondition. | |
| virtual void | removeAndDelete (DtReflectedObject *obj, char *msg=NULL) |
| Remove the remote object from the list if found and delete it. | |
Protected Member Functions | |
| virtual DtReflectedObject * | newReflectedObj (const DtStateMsg &msg) |
| Create a new object from a state message. | |
| virtual DtReflectedObject * | processStateMessage (const DtStateMsg &msg) |
| Process an incoming state message. | |
| virtual void | objectAdded (DtReflectedObject *obj) |
| Called after an aggregate is added and before additional callbacks are processed. | |
| virtual const DtBaseHashKey & | hashKeyFromStateMessage (const DtStateMsg *msg) |
| Get a hash key from a state message. | |
| virtual DtReflectedAggregate * | newReflectedAggregate (const DtEntityIdentifier &id, const DtEntityType &type) const |
| Create a new reflected aggregate. | |
| virtual void | aggregateAdded (DtReflectedAggregate *agg) |
| Called after an aggregate is added and before additional callbacks are processed. | |
Protected Member Functions inherited from DtReflectedObjectList | |
| DtReflectedObjectList (const DtReflectedObjectList &orig) | |
| copy constructor – not implemented | |
| DtReflectedObjectList & | operator= (const DtReflectedObjectList &orig) |
| assignment operator – not implemented | |
| virtual void | doTimeouts () |
| Remove any remote objects which have not been updated during the timeout period. | |
| virtual bool | shouldBeTimedOut (DtReflectedObject *object) |
| Returns whether or not the object should be timed out. | |
| void | emptyLists () |
| Empty the object list and the timeout list. | |
| void | emptyCallbackLists () |
| virtual void | processObjectAdditionCallbacks (DtReflectedObject *object) |
| Process object addition/removal callbacks. | |
| virtual void | processObjectRemovalCallbacks (DtReflectedObject *object) |
| virtual DtBaseHashKey * | hashKeyFromAttributeRecordSet (const DtAttributeRecordSet &recordSet) |
| Get a hash key from an attribute record set. | |
| virtual int | acceptPdu (const DtStateMsg &) const |
| Determines if a PDU should be processed or not. | |
| virtual bool | readyToAdd (DtReflectedObject *obj) |
| Returns true if the obj is ready to be added to myObjectList; calls myDiscoveryCondition from within. | |
| virtual void | processAttributePduCb (DtAttributeInteraction *inter) |
Static Protected Member Functions | |
| static void | aggregateStateCb (DtAggregateStatePdu *pdu, void *usr) |
| Callback for the exercise connection. | |
| static void | relativeLocationCb (DtRelativeLocationPdu *pdu, void *usr) |
| Callback which calls processRelativeLocationPdu. | |
Static Protected Member Functions inherited from DtReflectedObjectList | |
| static void | doTimeoutsPostDrainCb (void *usr) |
| Calls doTimeouts. | |
| static void | processAttributePduCb (DtAttributeInteraction *inter, void *usr) |
Protected Attributes | |
| bool | mySmoothCapable |
| DtEntityIdentifierHashKey * | myHashKey |
Protected Attributes inherited from DtReflectedObjectList | |
| DtExerciseConn * | myExConn |
| DtIntrusiveList | myObjectAddedCallbacks |
| DtIntrusiveList | myObjectRemovedCallbacks |
| DtIntrusiveList | myObjectList |
| DtIntrusiveList | myWaitList |
| DtHashlist | myObjectHashlist |
| DtHashlist | myWaitHashlist |
| DtTime | myTimeoutInterval |
| bool | myTimeoutProcessingFlag |
| DtDiscoveryCondition | myDiscoveryCondition |
| void * | myDiscoveryConditionParameter |
| std::set< DtPduKind > | myPduKindSet |
Private Member Functions | |
| DtReflectedAggregateList & | operator= (const DtReflectedAggregateList &orig) |
| Assignment operator – not implemented. | |
| DtReflectedAggregateList (const DtReflectedAggregateList &orig) | |
| Copy constructor – not implemented. | |
Instances of this class provide a protocol independent interface to a list of reflected aggregates in a DIS environment.
| DtReflectedAggregateList::DtReflectedAggregateList | ( | DtExerciseConn * | exConn, |
| bool | smoothCapable = false |
||
| ) |
Constructor.
|
virtual |
Destructor.
|
private |
Copy constructor – not implemented.
|
virtual |
Aggregate added callback registration/deregistration.
|
virtual |
Aggregate removed callback registration/deregistration.
|
protectedvirtual |
Called after an aggregate is added and before additional callbacks are processed.
Right now, this function only calls DtInfo.
|
staticprotected |
Callback for the exercise connection.
|
virtual |
Get the first and last elements of the aggregate list.
|
protectedvirtual |
Get a hash key from a state message.
Implements DtReflectedObjectList.
|
virtual |
|
virtual |
Lookup an aggregate from its object ID.
|
protectedvirtual |
Create a new reflected aggregate.
|
protectedvirtual |
Create a new object from a state message.
Implements DtReflectedObjectList.
|
protectedvirtual |
Called after an aggregate is added and before additional callbacks are processed.
Right now, this function only calls DtInfo.
Reimplemented from DtReflectedObjectList.
|
private |
Assignment operator – not implemented.
|
virtual |
Print the SRs of all objects.
|
virtual |
Process an incoming aggregate state pdu.
Then calls down to base class processStateMessage().
|
virtual |
Process an incoming relativeLocation pdu.
|
protectedvirtual |
Process an incoming state message.
Reimplemented from DtReflectedObjectList.
|
staticprotected |
Callback which calls processRelativeLocationPdu.
|
virtual |
|
virtual |
|
protected |
|
protected |