軟件靜態架構 軟件組件圖
什么是組件圖? (What is Component Diagram?)
A Component Diagram breaks down the real system under development into different heights of working. Every component is reactive for the main aim in the entire system and only reacts with other particular elements on a need to know basis. The interfaces on the right are defined as required interfaces, which shows the services the component wants to carry out its duty.
組件圖將正在開發的實際系統分解為不同的工作高度。 每個組件對于整個系統的主要目標都是React性的,并且僅在需要了解的基礎上與其他特定元素React。 右側的接口定義為必需的接口,該接口顯示了組件要執行其職責的服務。
組件圖的基礎概念 (Basis Concept of Component Diagram)
A component represents a modular part of a system of the diagram that encapsulates its contents and tells whose manifestation is replaceable the states within its environment of the world. In the UML diagram, a component is drawn as four sides as breadth and length known as a rectangle with optional compartments stacked straightly as vertical. A high-level, abstracted view of a component in UML 2 can be modeled as:
組件表示圖的系統的模塊化部分,該模塊封裝了其內容并告訴其表現形式可以替換其環境中的狀態。 在UML圖中 ,將組件繪制為寬度和長度的四個側面(稱為矩形),并帶有可選的分隔室,這些分隔室垂直筆直地堆疊。 UML 2中組件的高級抽象視圖可以建模為:
A rectangle with the component's name
帶有組件名稱的矩形
A rectangle with the component icon
帶有組件圖標的矩形
A rectangle with the stereotype text and/or icon
具有構造型文本和/或圖標的矩形
組件圖 (Component Diagram)
Take stock of everything or anything needed or wanted to implement or run the planned system. For example, for a simple e-commerce system, we will need components or parts of the component that describe products, orders, objective, server account, and customer accounts.
盤點實施或運行計劃的系統所需或想要的一切。 例如,對于簡單的電子商務系統,我們將需要描述產品,訂單,目標,服務器帳戶和客戶帳戶的組件或組件的各個部分。
Form a visual or imaginary for each of the components of the system.
為系統的每個組件形成視覺或想象。
Defines the organization and relationships between components having the parts using interfaces, ports, and dependencies together to form components.
使用接口,端口和相關性一起定義組件,從而定義具有零件的組件之間的組織和關系。
組件圖的各部分 (Parts of Component Diagram)
Component:
組成部分 :
A component is a logical unit block of the system of the objects, a little large flow abstraction than classes. It is shown as a length and breadth rectangle with a smaller rectangle in the upside of right corner or site with tabs or the word written or shows above the name of the component to help differentiate it from a class.
組件是對象系統的邏輯單元塊,抽象度比類大。 它顯示為長度和寬度的矩形,在右上角或站點的上方帶有一個較小的矩形,并帶有制表符或單詞,或在組件名稱的上方顯示以幫助區分其與類。
Interface:
介面
An interface (small circle or semi-circle on a stick) differentiate a group of operations required or something provided by components. A full circle represents an interface provided by the component and uses for the interface between the two systems. A semi-circle represents a required interface, like a person's input as the objects of the system.
界面(桿上的小圓圈或半圓圈)區分一組所需的操作或組件提供的某些操作。 實心圓圈表示組件提供的接口,并用于兩個系統之間的接口。 半圓表示所需的界面,例如作為系統對象的人的輸入。
Dependencies:
依存關系 :
Draw dependencies among al the components using dashed arrows.
使用虛線箭頭在所有組件之間繪制依賴關系。
Port:
港口 :
Ports are represented using four equal sites as square along the edge of the system or a component. A port is used to input the system object into it. A port is often used to help to expose required and provided and interfaces of a component of the system.
端口沿著系統或組件的邊緣使用四個相等的正方形表示為端口。 端口用于將系統對象輸入其中。 端口通常用于幫助公開系統組件的必需和提供的接口。
組件圖的使用 (Use of Component Diagram)
Design the components of a system.
設計系統的組件。
Program the database schema.
編程數據庫模式。
Make the executables of an application.
制作應用程序的可執行文件。
Draw the system's source code.
繪制系統的源代碼。
翻譯自: https://www.includehelp.com/basics/component-diagram-software-engineering.aspx
軟件靜態架構 軟件組件圖