|
| | DtSimComponentNetwork (DtVrfObject *vrfObject, DtComponentSystem *parentSystem) |
| |
| virtual | ~DtSimComponentNetwork () |
| |
| virtual bool | init () |
| |
| virtual void | tick (bool hostDestroyed) |
| |
| virtual bool | postAddComponentsInit () |
| | Calls postAddComponentsInit() on all subcomponents. More...
|
| |
| virtual bool | addSensorComponent (DtSimComponent *component) |
| |
| virtual bool | addControllerComponent (DtSimComponent *component) |
| |
| virtual bool | addActuatorComponent (DtSimComponent *component) |
| |
| virtual bool | removeSensorComponent (DtSimComponent *component) |
| | Removes sensor from the component manager list, and removes any port connections to or from the component by calling disconnectComponent(). More...
|
| |
| virtual bool | removeControllerComponent (DtSimComponent *component) |
| | Removes controller from the component manager list, and removes any port connections to or from the component by calling disconnectComponent(). More...
|
| |
| virtual bool | removeActuatorComponent (DtSimComponent *component) |
| | Removes actuator from the component manager list, and removes any port connections to or from the component by calling disconnectComponent(). More...
|
| |
| virtual DtSimComponent * | lookupComponent (const DtString &name) const |
| | Lookup a particular component by its DtReaderWriter name. More...
|
| |
virtual std::list
< DtSimComponent * > | lookupComponentsByType (const DtString &typeString) |
| | Returns a list of all components of the given type in this component network. More...
|
| |
| virtual DtComponentSystem * | lookupComponentSystem (const DtString &name) const |
| | Lookup a particular system by name. More...
|
| |
virtual const
DtComponentSystemList * | componentSystemList () const |
| |
| virtual DtSimComponentList * | sensorComponentList () const |
| |
| virtual DtControllerComponentList * | controllerComponentList () const |
| |
| virtual DtSimComponentList * | actuatorComponentList () const |
| |
| virtual int | createComponentsFromList (const DtComponentDescriptorList &descList, DtSimComponentList *destination, int &priority, bool remoteOnly) |
| |
| virtual int | createSystemsFromList (const DtComponentSystemDescriptorList &descList, int &priority, bool remoteOnly) |
| | Populates mySystemList by creating the systems described in the provided system descriptor list. More...
|
| |
| virtual bool | createComponentConnection (const DtString &source, const DtString &destination, int warningLevel=1) |
| | Adds a new port connection between two components within the component manager. More...
|
| |
| virtual void | createConnectionsFromList (const DtConnectionDescriptorList &descList, bool suppressErrorMsgs=false) |
| | Takes the connection descriptor list from the OPD file and creates all the port connection and port group connections for this entity. More...
|
| |
| virtual void | disconnectComponent (DtSimComponent *component) |
| | Removes and deletes all connections (both port and port group) to and from this component. More...
|
| |
| virtual void | removeConnection (DtPortConnection *conn) |
| | Removes and deletes a single connection. More...
|
| |
| virtual void | removeConnection (DtPortGroupConnection *conn) |
| | Removes and deletes a group connection and any sub-connections that are part of the group. More...
|
| |
|
| virtual void | enable () |
| | Enables/disables components/systems in the network. More...
|
| |
| virtual void | disable () |
| |
A set of DtSimComponent and DtComponentSystem instances that are connected with a set of connections.
This class manages the instantiation of these components and systems from the descriptors and connecting them based on the connection list provided.
| virtual bool DtSimComponentNetwork::createComponentConnection |
( |
const DtString & |
source, |
|
|
const DtString & |
destination, |
|
|
int |
warningLevel = 1 |
|
) |
| |
|
virtual |
Adds a new port connection between two components within the component manager.
Source and Destination strings are specified in any of the formats: component-name:port-name component-name:port-group-name component-name:port-group-name:port-name A connection between two port groups will create connections between all members of the two groups which have matching names and types.
Warning level is 0 produce no warning, 1 produce error level, 2 produce verbose level. 2 will be set for auto-connections