The DtSimComponentManager is the top level class within a DtVrfObject which owns and manages all the DtSimComponent instances for that object.
More...
Detailed Description
The DtSimComponentManager is the top level class within a DtVrfObject which owns and manages all the DtSimComponent instances for that object.
It does much of this management though a DtSimComponentNetwork.
Constructor & Destructor Documentation
| DtSimComponentManager::DtSimComponentManager |
( |
| ) |
|
|
private |
| DtSimComponentManager::DtSimComponentManager |
( |
DtVrfObject * |
vrfObject | ) |
|
read/writable constructor
| virtual DtSimComponentManager::~DtSimComponentManager |
( |
| ) |
|
|
virtual |
Member Function Documentation
| virtual bool DtSimComponentManager::init |
( |
| ) |
|
|
virtual |
| virtual void DtSimComponentManager::tick |
( |
| ) |
|
|
virtual |
| virtual DtVrfObject* DtSimComponentManager::vrfObject |
( |
| ) |
const |
|
virtual |
This is a pointer to the simulation object for which this interface was created.
| virtual bool DtSimComponentManager::addComponents |
( |
| ) |
|
|
virtual |
Removes sensor from the component manager list, and removes any port connections to or from the component by calling disconnectComponent().
Does not delete the component.
| virtual bool DtSimComponentManager::removeControllerComponent |
( |
DtSimComponent * |
component | ) |
|
|
virtual |
Removes controller from the component manager list, and removes any port connections to or from the component by calling disconnectComponent().
Does not delete the component.
Removes actuator from the component manager list, and removes any port connections to or from the component by calling disconnectComponent().
Does not delete the component.
| virtual bool DtSimComponentManager::hasComponents |
( |
| ) |
const |
|
virtual |
Returns true if this object has components or systems, false otherwise.
Lookup a particular component by its DtReaderWriter name.
It will search all systems on the entity.
- Returns
- The first component matching the given name
- Note
- Because this searches all systems on the entity, it is possible for there to be multiple components with the same name. The first one encountered in the search will be returned.
- Returns
- A pointer to the base system of this entity. This system contains all components and other systems of this entity.
- Returns
- A pointer to the base system of this entity. This system contains all components and other systems of this entity.
| virtual DtString DtSimComponentManager::type |
( |
| ) |
const |
|
virtual |
Returns the type of component manager object.
Strings are defined in compMgrTypes.h.
| virtual DtList* DtSimComponentManager::connectionList |
( |
| ) |
|
|
virtual |
| virtual DtList* DtSimComponentManager::groupConnectionList |
( |
| ) |
|
|
virtual |
A DtSimEntityFactory is allocated by the DtSimCreator, and this pointer is set.
The DtSimCreator deletes this pointer when it is deleted. This is done this way because we don't allow static initialization.
Creates a new component manager, using the factory.
Given the supplied sytem list, puts all known systems into the list (including the base system)
Used recursively from allSystems().
Adds the supplied system then iterates over component network for other systems
Member Data Documentation
| DtList DtSimComponentManager::myConnectionList |
|
protected |
| DtList DtSimComponentManager::myGroupConnectionList |
|
protected |
The documentation for this class was generated from the following file: