VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
DtTopLevelComponentSystem Class Reference

A specialized version of DtComponentSystem that is used as the root of the all the systems on a DtVrfObject. More...

Inheritance diagram for DtTopLevelComponentSystem:
Inheritance graph
[legend]

Public Member Functions

 DtTopLevelComponentSystem (DtVrfObject *owner, DtSimManager *simManager)
 
virtual ~DtTopLevelComponentSystem ()
 
virtual bool init ()
 
virtual DtSimResourceManagerresourceManager ()
 
virtual const
DtSimResourceManager
resourceManager () const
 
- Public Member Functions inherited from DtComponentSystem
 DtComponentSystem (DtVrfObject *owner, DtSimManager *simManager, const DtComponentSystemDescriptor *desc, DtComponentSystem *parentSystem)
 
virtual ~DtComponentSystem ()
 
virtual bool initializeFromDescriptor (int &priority, bool remoteOnly)
 Creates the components, systems, and resources specified in the descriptor for the system. More...
 
virtual bool postAddComponentsInit ()
 Calls DtSimComponent::postAddComponentsInit() on all contained components. More...
 
virtual void tick ()
 Calls DtSimCompoennt::tick() on all contained components. More...
 
virtual DtString name () const
 
virtual DtString fullName () const
 
virtual DtString systemName () const
 
virtual DtString printName () const
 
virtual void setPrintName (const DtString &name)
 Sets the print name of the system. More...
 
virtual DtComponentSystemlookupSystem (const DtString &printName)
 Finds a system within this system that matches the given print name. More...
 
virtual DtComponentSystemlookupSystemFromRwName (const DtString &rwName)
 Finds a system within this system that matches the given name. More...
 
virtual DtComponentSystemlookupSystemFromFullName (const DtString &fullName)
 Finds a system within this system that matches the given name. More...
 
virtual void getSystemNames (std::list< std::string > &nameList) const
 Adds the system's print name and the names of all subsystems in this system to the list in nameList. More...
 
virtual
DtVrfProcessStateRepositoryManager
processStateRepositoryManager ()
 Provides a list of all of the systems, by print name, in this system. More...
 
virtual void restoreResources ()
 Restores resource values to the values specified in the parameters for this system and all child systems. More...
 
virtual DtComponentSystemPSRprocessStateRepository ()
 Returns the process state repository used by this system. More...
 
virtual DtSimComponentNetworkcomponentNetwork ()
 
virtual const
DtSimComponentNetwork
componentNetwork () const
 
virtual void resolveSystemOutput (const DtString &outputName, DtComponentPortList &componentOutputs)
 Within systems, connections are made from components to "system" or vice versa. More...
 
virtual void resolveSystemInput (const DtString &inputName, DtComponentPortList &componentInputs)
 
virtual void enable ()
 Enables/disables components/systems in the system. More...
 
virtual void disable ()
 
virtual bool isEnabled () const
 Check if the system is enabled, component's tick function will be called, otherwise it will not. More...
 
virtual void setIsEnabled (bool yesNo)
 
virtual bool canBeDisabled () const
 Check if the system can be disabled. More...
 
virtual bool addAttributeProviderFunction (DtString &attributeName, genericAttributeProviderFunctionType attributeFunction, void *controller)
 Functions for defining system attribute functions, and getting attributes. More...
 
virtual bool addAttributeSetFunction (DtString &attributeName, genericAttributeSetterFunctionType attributeFunction, void *controller)
 Similar to above, but adds a function to myWritableAttributes. More...
 
virtual DtReaderWritergetAttribute (const DtString &attributeName, bool &error) const
 Retrieves the attribute value (by running the function mapped to this attribute).The status of the get is returned in the error parameter. More...
 
virtual bool setAttribute (const DtString &attributeName, DtReaderWriter *value)
 Sets the attribute value (by running the function mapped to this attribute). More...
 
virtual std::list< std::string > getAllAttributeNames () const
 Gets the names of all of the attributes that have been registered by provider (i.e., Get) functions for this system. More...
 
virtual void setUseParentSystemResourceManager (bool)
 Accessor/mutator for myUseParentSystemResourceManager. More...
 
virtual bool useParentSystemResourceManager () const
 

Protected Attributes

DtSimResourceManagermyResouceManager
 
- Protected Attributes inherited from DtComponentSystem
const DtComponentSystemDescriptormySystemDescriptor
 
DtSimManagermySimManager
 
DtVrfObjectmyVrfObject
 
DtSimComponentNetworkmyComponentNetwork
 
DtComponentSystemPSRmyProcessStateRepository
 
DtComponentSystemmyParentSystem
 
DtString myPrintName
 A customized print name, if one was specified. More...
 
std::map< DtString, std::pair
< genericAttributeProviderFunctionType,
void * > > 
myReadableAttributes
 Map of attribute-names to provider-functions. More...
 
std::map< DtString, std::pair
< genericAttributeSetterFunctionType,
void * > > 
myWritableAttributes
 
std::list< std::pair< DtString,
DtVrfProcessStateRepositoryManager * > > 
myAddedCompatibilityPsrs
 This list is kept so the compatibility PSRs can be removed upon destruction. More...
 
bool myUseParentSystemResourceManager
 If this is true uses the paren system's resource manager. More...
 

Private Member Functions

 DtTopLevelComponentSystem ()
 Not Implemented. More...
 
 DtTopLevelComponentSystem (const DtTopLevelComponentSystem &orig)
 
DtTopLevelComponentSystemoperator= (const DtTopLevelComponentSystem &orig)
 

Additional Inherited Members

- Public Types inherited from DtComponentSystem
typedef std::list< std::pair
< DtSimComponent *, DtString > > 
DtComponentPortList
 
- Protected Member Functions inherited from DtComponentSystem
virtual bool createPsr ()
 
void removeCompatibilityPsrs ()
 Non-virtual because it is called by the destructor. More...
 
virtual void restore (DtSimComponentList *)
 Iterates over all components and calls onRestore on them. More...
 

Detailed Description

A specialized version of DtComponentSystem that is used as the root of the all the systems on a DtVrfObject.

This system contains all the other systems, as well as all the top level DtSimComponent instances for an object. One specialization is that it uses the DtSimResouceManager from the main state repository instead of one in its own PSR like most systems do.

Constructor & Destructor Documentation

DtTopLevelComponentSystem::DtTopLevelComponentSystem ( )
private

Not Implemented.

DtTopLevelComponentSystem::DtTopLevelComponentSystem ( const DtTopLevelComponentSystem orig)
private
DtTopLevelComponentSystem::DtTopLevelComponentSystem ( DtVrfObject owner,
DtSimManager simManager 
)
virtual DtTopLevelComponentSystem::~DtTopLevelComponentSystem ( )
virtual

Member Function Documentation

DtTopLevelComponentSystem& DtTopLevelComponentSystem::operator= ( const DtTopLevelComponentSystem orig)
private
virtual bool DtTopLevelComponentSystem::init ( )
virtual

Reimplemented from DtComponentSystem.

virtual DtSimResourceManager& DtTopLevelComponentSystem::resourceManager ( )
virtual
Returns
The resource manager for this system. This includes resources for this system only.

Reimplemented from DtComponentSystem.

virtual const DtSimResourceManager& DtTopLevelComponentSystem::resourceManager ( ) const
virtual

Reimplemented from DtComponentSystem.

Member Data Documentation

DtSimResourceManager& DtTopLevelComponentSystem::myResouceManager
protected

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)