![]() |
VR-Link API Documentation for DIS
|
Manages all discovered remote Environmental Process Objects. More...
Inheritance diagram for DtReflectedEnvironmentProcessList:
Collaboration diagram for DtReflectedEnvironmentProcessList:Public Member Functions | |
| DtReflectedEnvironmentProcessList (DtExerciseConn *conn) | |
| constructor | |
| virtual | ~DtReflectedEnvironmentProcessList () |
| virtual DtReflectedEnvironmentProcess * | lookup (const DtObjectId &id) const |
| Lookup an entity from its object ID. | |
| virtual DtReflectedEnvironmentProcess * | first () const |
| Get the first and last elements of the env process list. | |
| virtual DtReflectedEnvironmentProcess * | last () const |
| virtual void | addEnvironmentProcessAdditionCallback (DtEnvironmentProcessCallbackFunction cb, void *userData) |
| EnvironmentProcess added callback registration/deregistration. | |
| virtual void | removeEnvironmentProcessAdditionCallback (DtEnvironmentProcessCallbackFunction cb, void *userData) |
| virtual void | addEnvironmentProcessRemovalCallback (DtEnvironmentProcessCallbackFunction cb, void *userData) |
| EnvironmentProcess removed callback registration/deregistration. | |
| virtual void | removeEnvironmentProcessRemovalCallback (DtEnvironmentProcessCallbackFunction cb, void *userData) |
| virtual void | print () |
| Print the SRs of all objects. | |
| virtual DtReflectedEnvironmentProcess * | processEnvironmentProcess (const DtEnvironmentalProcessPdu &pdu) |
| Process an incoming environment process 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 | |
| DtReflectedEnvironmentProcessList & | operator= (const DtReflectedEnvironmentProcessList &orig) |
| Assignment operator – not implemented. | |
| DtReflectedEnvironmentProcessList (const DtReflectedEnvironmentProcessList &orig) | |
| Copy constructor – not implemented. | |
| 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. Calls processEnvironmentProcess(). | |
| virtual void | objectAdded (DtReflectedObject *obj) |
| Called after an env process is added and before addition callbacks are processed. | |
| virtual void | finalPduIsSetAction (DtReflectedEnvironmentProcess *envProcess) |
| Called when an env process sends its final PDU. | |
| virtual const DtBaseHashKey & | hashKeyFromStateMessage (const DtStateMsg *msg) |
| Get a hash key from a state message. | |
| virtual DtReflectedEnvironmentProcess * | newReflectedEnvironmentProcess (const DtEntityIdentifier &id, const DtEntityType &type) const |
| Create a new reflected env process. | |
| virtual void | environmentProcessAdded (DtReflectedEnvironmentProcess *ent) |
| Called after an env process is added and before addition 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 | environmentProcessCb (DtEnvironmentalProcessPdu *pdu, void *usr) |
| Callback for the exercise connection. | |
Static Protected Member Functions inherited from DtReflectedObjectList | |
| static void | doTimeoutsPostDrainCb (void *usr) |
| Calls doTimeouts. | |
| static void | processAttributePduCb (DtAttributeInteraction *inter, void *usr) |
Protected Attributes | |
| 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 |
Manages all discovered remote Environmental Process Objects.
Examples: Environmental Process Example
| DtReflectedEnvironmentProcessList::DtReflectedEnvironmentProcessList | ( | DtExerciseConn * | conn | ) |
constructor
|
virtual |
|
protected |
Copy constructor – not implemented.
|
virtual |
EnvironmentProcess added callback registration/deregistration.
|
virtual |
EnvironmentProcess removed callback registration/deregistration.
|
protectedvirtual |
Called after an env process is added and before addition callbacks are processed.
Right now, this function only calls DtInfo.
|
staticprotected |
Callback for the exercise connection.
|
protectedvirtual |
Called when an env process sends its final PDU.
Currently, this removes and deletes the env process.
|
virtual |
Get the first and last elements of the env process list.
|
protectedvirtual |
Get a hash key from a state message.
Implements DtReflectedObjectList.
|
virtual |
|
virtual |
Lookup an entity from its object ID.
|
protectedvirtual |
Create a new reflected env process.
|
protectedvirtual |
Create a new object from a state message.
Calls newReflectedEnvironmentProcess() to create a new env process
Implements DtReflectedObjectList.
|
protectedvirtual |
Called after an env process is added and before addition callbacks are processed.
Calls environmentProcessAdded().
Reimplemented from DtReflectedObjectList.
|
protected |
Assignment operator – not implemented.
|
virtual |
Print the SRs of all objects.
|
virtual |
Process an incoming environment process pdu.
Then calls down to base class processStateMessage().
|
protectedvirtual |
Process an incoming state message. Calls processEnvironmentProcess().
Reimplemented from DtReflectedObjectList.
|
virtual |
|
virtual |
|
protected |