To create a composite component, first select more than one component. Then select Create Composite Component from the context menu.
№ | Dialog name | Description |
① | Manager | Select a manager from those displayed in the name service view. The composite component will be created in that manager. |
② | Name | Instance name of the composite component. |
③ | Type | Set the type of the component. The following types are available: PeriodicECShared All RTCs will only share the execution context. The individual RTCs will have separate state, allowing multiple states to exist within a single composite component. PeriodicStateShared As well as sharing an execution context, the components will also share state. Grouping Nothing will be shared betweeen child components. |
④ | Path | Path setting for the composite component. |
⑤ | Port | Select which ports of the child components will be proxied to the composite component, making them accessible from outside the composite component. |
⑥ | - | Select or deselect all ports. |
When creating a composite component, the child components that were selected in the system editor will disappear and a new composite component will take their place. Double-click on this new component, or right-click on it and select Open with System Diagram Editor to open the component's internals in a new system editor.
Open the composite component in a system editor and drag components from the name server view into it to add them as child components. Newly-added components start with all their ports private.
Open the composite component in a system editor and delete the unwanted child component. The child component will be removed from the composite component and displayed in the system diagram in which the composite component itself is displayed.
Right-click on the composite component and select Delete to remove the composite component from the diagram. If the component is open in another system diagram, a warning dialog will be displayed.
Right-click on the composite component and select Decompose Composite Component. exit() will be sent to the component and the component will terminate. If the component is open in another system diagram, a warning will be displayed. The child components will be displayed in the system diagram in which the composite component was displayed.
When editing the internals of a composite component, the public ports of child components will be displayed using the following symbols.
name | image |
InPort | |
OutPort | |
ServicePort |
To make a port private, right-click on it and select Unexport. To make a port public, right-click on it and select Export.
If a port is connected to another component, it cannot be made private until it is disconnected.