![]() |
VR-Forces 4.1 Class Documentation
|
A DtComponentSystem is a collection of DtSimComponents that are associated with each other. More...

Public Types | |
| typedef std::list< std::pair < DtSimComponent *, DtString > > | DtComponentPortList |
Public Member Functions | |
| DtComponentSystem (DtVrfObject *owner, DtSimManager *simManager, const DtComponentSystemDescriptor *desc, DtComponentSystem *parentSystem) | |
| virtual | ~DtComponentSystem () |
| virtual bool | init () |
| virtual bool | initializeFromDescriptor (int &priority) |
| Creates the components, systems, and resources specified in the descriptor for the system. | |
| virtual bool | postAddComponentsInit () |
| Calls DtSimComponent::postAddComponentsInit() on all contained components. | |
| virtual void | tick () |
| Calls DtSimCompoennt::tick() on all contained components. | |
| virtual DtString | name () const |
| virtual DtString | fullName () const |
| virtual DtVrfProcessStateRepositoryManager * | processStateRepositoryManager () |
| virtual void | restoreResources () |
| Restores resource values to the values specified in the parameters for this system and all child systems. | |
| virtual DtSimComponentNetwork * | componentNetwork () |
| virtual const DtSimComponentNetwork * | componentNetwork () const |
| virtual DtSimResourceManager & | resourceManager () |
| virtual const DtSimResourceManager & | resourceManager () const |
| virtual void | resolveSystemOutput (const DtString &outputName, DtComponentPortList &componentOutputs) |
| Within systems, connections are made from components to "system" or vice versa. | |
| virtual void | resolveSystemInput (const DtString &inputName, DtComponentPortList &componentInputs) |
| Within systems, connections are made from components to "system" or vice versa. | |
| virtual void | enable () |
| Enables/disables components/systems in the system. | |
| virtual void | disable () |
| Enables/disables components/systems in the system. | |
| virtual bool | isEnabled () |
| Check if the system is enabled, component's tick function will be called, otherwise it will not. | |
| virtual void | setIsEnabled (bool yesNo) |
| Check if the system is enabled, component's tick function will be called, otherwise it will not. | |
Protected Member Functions | |
| virtual bool | createPsr () |
| Creates the PSR and sets it to myProcessStateRepository. | |
Private Member Functions | |
| DtComponentSystem () | |
| Not Implemented. | |
| DtComponentSystem (const DtComponentSystem &orig) | |
| Not Implemented. | |
| DtComponentSystem & | operator= (const DtComponentSystem &orig) |
| Not Implemented. | |
A DtComponentSystem is a collection of DtSimComponents that are associated with each other.
Calling tick() on the system results in tick() being called on all the components of the system. A system may also contain other systems.
| typedef std::list< std::pair<DtSimComponent*, DtString> > DtComponentSystem::DtComponentPortList |
|
private |
Not Implemented.
|
private |
Not Implemented.
| DtComponentSystem::DtComponentSystem | ( | DtVrfObject * | owner, |
| DtSimManager * | simManager, | ||
| const DtComponentSystemDescriptor * | desc, | ||
| DtComponentSystem * | parentSystem | ||
| ) |
|
virtual |
|
private |
Not Implemented.
|
virtual |
Reimplemented in DtTopLevelComponentSystem.
|
virtual |
Creates the components, systems, and resources specified in the descriptor for the system.
The first component is created with the specified priority, and priority is incremented for each component created. The next available priority value is return in priority.
|
virtual |
Calls DtSimComponent::postAddComponentsInit() on all contained components.
|
virtual |
Calls DtSimCompoennt::tick() on all contained components.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Reimplemented in DtTopLevelComponentSystem.
|
virtual |
Reimplemented in DtTopLevelComponentSystem.
|
virtual |
Restores resource values to the values specified in the parameters for this system and all child systems.
|
virtual |
Within systems, connections are made from components to "system" or vice versa.
This designates that as a public input/output to the system. External connections can be made to these named connections, which in turn result in a connection down to the actual component within the system. These methods take the system connection name and resolve it to the internal components and ports on those components. Each method fills the second parameter with a list of component pointers and port names on that component that should be connected to.
|
virtual |
Within systems, connections are made from components to "system" or vice versa.
This designates that as a public input/output to the system. External connections can be made to these named connections, which in turn result in a connection down to the actual component within the system. These methods take the system connection name and resolve it to the internal components and ports on those components. Each method fills the second parameter with a list of component pointers and port names on that component that should be connected to.
|
virtual |
Enables/disables components/systems in the system.
|
virtual |
Enables/disables components/systems in the system.
|
virtual |
Check if the system is enabled, component's tick function will be called, otherwise it will not.
Default is true (enabled).
|
virtual |
Check if the system is enabled, component's tick function will be called, otherwise it will not.
Default is true (enabled).
|
protectedvirtual |
Creates the PSR and sets it to myProcessStateRepository.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |