VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions
DtSyncMatrixManager Class Reference

The synchronization matrix manager maintains the list of synchronization matrices. These are locally simulated objects that manage a list of phases where during each phase, scenario entities can be assigned with plans.

Public Member Functions

 DtSyncMatrixManager (DtLocalObjectManager *simManager)
 
virtual ~DtSyncMatrixManager ()
 
virtual bool init ()
 
virtual void sendSyncMatrixList ()
 
virtual void setPlansCompletionStatus (const DtUUID &syncMatrix, bool status)
 
virtual bool plansCompletionStatus (const DtUUID &syncMatrix) const
 
virtual void removePlansCompletionStatusEntry (const DtUUID &syncMatrix)
 

Protected Member Functions

virtual void registerInterfaceMessageCallbacks ()
 
virtual void processSyncMatrixListRequest (DtSimMessage *msg)
 
virtual void processSyncMatrixAddRequest (DtSimMessage *msg)
 
virtual void processSyncMatrixRemoveRequest (DtSimMessage *msg)
 
virtual DtLocalObjectcreateSyncMatrix (const DtString &name="")
 
virtual bool deleteSyncMatrix (const DtUUID &uuid)
 

Static Protected Member Functions

static void syncMatrixListRequestCallback (DtSimMessage *msg, void *usr)
 
static void syncMatrixAddRequestCallback (DtSimMessage *msg, void *usr)
 
static void syncMatrixRemoveRequestCallback (DtSimMessage *msg, void *usr)
 

Protected Attributes

DtSimulationServicesmySimulationServices
 
DtLocalObjectManagermyObjectManager
 
std::map< DtUUID, boolmyPlansCompletionStatusMap
 

Private Member Functions

 DtSyncMatrixManager ()
 
 DtSyncMatrixManager (const DtSyncMatrixManager &orig)
 
DtSyncMatrixManageroperator= (const DtSyncMatrixManager &orig)
 

Constructor & Destructor Documentation

DtSyncMatrixManager::DtSyncMatrixManager ( DtLocalObjectManager simManager)

Basic constructor.

virtual DtSyncMatrixManager::~DtSyncMatrixManager ( )
virtual

Destructor.

DtSyncMatrixManager::DtSyncMatrixManager ( )
private

Not implemented.

DtSyncMatrixManager::DtSyncMatrixManager ( const DtSyncMatrixManager orig)
private

Not implemented.

Member Function Documentation

virtual bool DtSyncMatrixManager::init ( )
virtual
virtual void DtSyncMatrixManager::sendSyncMatrixList ( )
virtual

Sends a DtIfSyncMatrixListResponse with the current matrices names.

virtual void DtSyncMatrixManager::setPlansCompletionStatus ( const DtUUID syncMatrix,
bool  status 
)
virtual

set the plans completion status for the sync matrix object. a new entry will be created if the sync matrix is not in the map

virtual bool DtSyncMatrixManager::plansCompletionStatus ( const DtUUID syncMatrix) const
virtual

get the plans completion status for the sync matrix object.

virtual void DtSyncMatrixManager::removePlansCompletionStatusEntry ( const DtUUID syncMatrix)
virtual

remove the plans completion status of the sync matrix object from the map.

virtual void DtSyncMatrixManager::registerInterfaceMessageCallbacks ( )
protectedvirtual

Registers for any interface messages that the manager listens to.

static void DtSyncMatrixManager::syncMatrixListRequestCallback ( DtSimMessage msg,
void *  usr 
)
staticprotected

Handle DtIfSyncMatrixListRequestType messages.

virtual void DtSyncMatrixManager::processSyncMatrixListRequest ( DtSimMessage msg)
protectedvirtual
static void DtSyncMatrixManager::syncMatrixAddRequestCallback ( DtSimMessage msg,
void *  usr 
)
staticprotected

Handle DtIfSyncMatrixAddRequestType messages.

virtual void DtSyncMatrixManager::processSyncMatrixAddRequest ( DtSimMessage msg)
protectedvirtual
static void DtSyncMatrixManager::syncMatrixRemoveRequestCallback ( DtSimMessage msg,
void *  usr 
)
staticprotected

Handle DtIfSyncMatrixRemoveRequestType messages.

virtual void DtSyncMatrixManager::processSyncMatrixRemoveRequest ( DtSimMessage msg)
protectedvirtual
virtual DtLocalObject* DtSyncMatrixManager::createSyncMatrix ( const DtString name = "")
protectedvirtual

Create a synchronization matrix with the specified name. If the name is empty or is already used by another local synchronization matrix object, a generated name will be used instead.

virtual bool DtSyncMatrixManager::deleteSyncMatrix ( const DtUUID uuid)
protectedvirtual
DtSyncMatrixManager& DtSyncMatrixManager::operator= ( const DtSyncMatrixManager orig)
private

Not implemented.

Member Data Documentation

DtSimulationServices* DtSyncMatrixManager::mySimulationServices
protected
DtLocalObjectManager* DtSyncMatrixManager::myObjectManager
protected
std::map<DtUUID, bool> DtSyncMatrixManager::myPlansCompletionStatusMap
protected

stores the plans completion status of a sync matrix object


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

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)