VR-Forces 4.8 Class Documentation
 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 | Static Protected Attributes
DtAggregator Class Reference

Class DtAggregator is a helper class that knows how to transform an aggregate in the disaggregated state (subordinates explicitly modeled), to the aggregated state (subordinates not explicitly modeled as separate entities). More...

Public Member Functions

 DtAggregator (DtVrfObject &aggregate, DtSubordinateObjectsList &subordinatesObjectList, DtVrfObjectManager &vrfObjectManager, DtVrfMessageInterface &messageInterface)
 constructor More...
 
virtual ~DtAggregator ()
 destructor More...
 
virtual void init ()
 
virtual void startAggregation ()
 Begin transformation of aggregate from disaggregate state to aggregate state. More...
 
virtual bool aggregationIsComplete () const
 Returns true when transformation to aggregate state is complete. More...
 

Protected Member Functions

virtual void startAggregation (const DtVrfObject &parentObj, DtSubordinateObjectsList &subordinateObjectsList)
 
virtual void setObjectResources (DtVrfObject &Obj, DtSubordinateIndividualEntry *subIndEntry)
 
virtual void sendSubordinateListRequestMsg (const DtEntityIdentifier &objIdent)
 
virtual void removeAndDeleteSubordinates ()
 
virtual void processSubordinateListRequestMessageCallback (DtIfSubordinateListRequest *content, const DtSimulationAddress &sender)
 
virtual void processSubordinateListMessageCallback (DtIfSubordinateList *content)
 
 DtAggregator (const DtAggregator &orig)
 Not Implemented. More...
 
DtAggregatoroperator= (const DtAggregator &orig)
 Not Implemented. More...
 

Static Protected Member Functions

static void subordinateListRequestMessageCallback (DtSimMessage *msg, void *usr)
 
static void subordinateListMessageCallback (DtSimMessage *msg, void *usr)
 

Protected Attributes

DtVrfObjectmyEntity
 
DtVrfMessageInterfacemyMessageInterface
 
DtVrfObjectManagermyObjectManager
 
std::map< unsigned long,
DtEntityIdentifier > 
myRequestIDs
 
std::map< DtEntityIdentifier,
DtSubordinateAggregateEntry * > 
myPendingSubordinateEntryResponses
 
std::map< DtVrfObject
*, DtSubordinateAggregateEntry * > 
myDisaggregatedSubordinates
 
DtSubordinateObjectsListmySubordinateObjectsList
 

Static Protected Attributes

static unsigned long nextRequestId
 

Detailed Description

Class DtAggregator is a helper class that knows how to transform an aggregate in the disaggregated state (subordinates explicitly modeled), to the aggregated state (subordinates not explicitly modeled as separate entities).

Constructor & Destructor Documentation

DtAggregator::DtAggregator ( DtVrfObject aggregate,
DtSubordinateObjectsList subordinatesObjectList,
DtVrfObjectManager vrfObjectManager,
DtVrfMessageInterface messageInterface 
)

constructor

virtual DtAggregator::~DtAggregator ( )
virtual

destructor

DtAggregator::DtAggregator ( const DtAggregator orig)
protected

Not Implemented.

Member Function Documentation

virtual void DtAggregator::init ( )
virtual
virtual void DtAggregator::startAggregation ( )
virtual

Begin transformation of aggregate from disaggregate state to aggregate state.

virtual bool DtAggregator::aggregationIsComplete ( ) const
virtual

Returns true when transformation to aggregate state is complete.

virtual void DtAggregator::startAggregation ( const DtVrfObject parentObj,
DtSubordinateObjectsList subordinateObjectsList 
)
protectedvirtual
virtual void DtAggregator::setObjectResources ( DtVrfObject Obj,
DtSubordinateIndividualEntry subIndEntry 
)
protectedvirtual
virtual void DtAggregator::sendSubordinateListRequestMsg ( const DtEntityIdentifier &  objIdent)
protectedvirtual
virtual void DtAggregator::removeAndDeleteSubordinates ( )
protectedvirtual
static void DtAggregator::subordinateListRequestMessageCallback ( DtSimMessage msg,
void *  usr 
)
staticprotected
virtual void DtAggregator::processSubordinateListRequestMessageCallback ( DtIfSubordinateListRequest content,
const DtSimulationAddress &  sender 
)
protectedvirtual
static void DtAggregator::subordinateListMessageCallback ( DtSimMessage msg,
void *  usr 
)
staticprotected
virtual void DtAggregator::processSubordinateListMessageCallback ( DtIfSubordinateList content)
protectedvirtual
DtAggregator& DtAggregator::operator= ( const DtAggregator orig)
protected

Not Implemented.

Member Data Documentation

DtVrfObject& DtAggregator::myEntity
protected
DtVrfMessageInterface& DtAggregator::myMessageInterface
protected
DtVrfObjectManager& DtAggregator::myObjectManager
protected
std::map<unsigned long, DtEntityIdentifier> DtAggregator::myRequestIDs
protected
std::map<DtEntityIdentifier, DtSubordinateAggregateEntry*> DtAggregator::myPendingSubordinateEntryResponses
protected
unsigned long DtAggregator::nextRequestId
staticprotected
std::map<DtVrfObject*,DtSubordinateAggregateEntry*> DtAggregator::myDisaggregatedSubordinates
protected
DtSubordinateObjectsList& DtAggregator::mySubordinateObjectsList
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)