Component diagrams Elements of a component diagram Component diagrams contain the following elements: Љ Components Љ Files Љ Folders Љ Dependencies Љ Component interfaces and realizations Љ Flows The following sections describe these elements in detail. Components When you create a component, you specify all the software code that it comprises: libraries, header files, and any other source files. Component diagrams generate code for components that are labeled with the «Executable» or «Library» stereotype. Creating a component To create a component: 1. Click the Component icon in the Diagram Tools . 2. Do one of the following actions: a.
Click once in the diagram to create a component with the default dimensions. b. Click to begin the upper, left corner of the component, drag to the lower right corner, and release. 3. Edit the default name, then press Enter . The new component is displayed in the diagram and in the browser, either in the Components folder under the main project node, or nested under another component associated with this diagram. Note: You can draw a component within another component; the browser will display the nested component accordingly. 850 User Guide