VR-Link API Documentation for DIS
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes
DtReflectedEnvironmentProcessList Class Reference

Manages all discovered remote Environmental Process Objects. More...

+ Inheritance diagram for DtReflectedEnvironmentProcessList:
+ Collaboration diagram for DtReflectedEnvironmentProcessList:

List of all members.

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.

Protected Member Functions

DtReflectedEnvironmentProcessListoperator= (const DtReflectedEnvironmentProcessList &orig)
 Assignment operator -- not implemented.
 DtReflectedEnvironmentProcessList (const DtReflectedEnvironmentProcessList &orig)
 Copy constructor -- not implemented.
virtual DtReflectedObjectnewReflectedObj (const DtStateMsg &msg)
 Create a new object from a state message.
virtual DtReflectedObjectprocessStateMessage (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 DtBaseHashKeyhashKeyFromStateMessage (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.

Static Protected Member Functions

static void environmentProcessCb (DtEnvironmentalProcessPdu *pdu, void *usr)
 Callback for the exercise connection.

Protected Attributes

DtEntityIdentifierHashKeymyHashKey

Detailed Description

Manages all discovered remote Environmental Process Objects.

Examples: Environmental Process Example


Constructor & Destructor Documentation

constructor

Copy constructor -- not implemented.


Member Function Documentation

EnvironmentProcess added callback registration/deregistration.

EnvironmentProcess removed callback registration/deregistration.

Called after an env process is added and before addition callbacks are processed.

Right now, this function only calls DtInfo.

static void DtReflectedEnvironmentProcessList::environmentProcessCb ( DtEnvironmentalProcessPdu pdu,
void *  usr 
) [static, protected]

Callback for the exercise connection.

Called when an env process sends its final PDU.

Currently, this removes and deletes the env process.

Get the first and last elements of the env process list.

virtual const DtBaseHashKey& DtReflectedEnvironmentProcessList::hashKeyFromStateMessage ( const DtStateMsg msg) [protected, virtual]

Get a hash key from a state message.

Implements DtReflectedObjectList.

Lookup an entity from its object ID.

Create a new reflected env process.

Create a new object from a state message.

Calls newReflectedEnvironmentProcess() to create a new env process

Implements DtReflectedObjectList.

virtual void DtReflectedEnvironmentProcessList::objectAdded ( DtReflectedObject obj) [protected, virtual]

Called after an env process is added and before addition callbacks are processed.

Calls environmentProcessAdded().

Reimplemented from DtReflectedObjectList.

DtReflectedEnvironmentProcessList& DtReflectedEnvironmentProcessList::operator= ( const DtReflectedEnvironmentProcessList orig) [protected]

Assignment operator -- not implemented.

virtual void DtReflectedEnvironmentProcessList::print ( ) [virtual]

Print the SRs of all objects.

Process an incoming environment process pdu.

Then calls down to base class processStateMessage().

Process an incoming state message. Calls processEnvironmentProcess().

Reimplemented from DtReflectedObjectList.


Member Data Documentation


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

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)