After completing the previous system logic design, the next step we need to define the physical implementation of the design, such as executable files, libraries, tables, files, and documents. The UML implementation diagram is divided into two parts: component diagram and deployment diagram
One, component diagram
1. Component diagram:
Used to describe the software components and the relationship between the components, the component itself is the physical module of the code, and the component diagram shows the structure of the code
2. Type of component:
A component is a well-defined interface implementation unit, which can be of the following types:
- Source code component: source code file .h (library file)/.cpp
- Binary components: object code files, static link library .lib, dynamic link library .dll
- Executable component: executable program.exe
- Data file or document
3. The relationship between components
achieve | The relationship between the component and its corresponding interface | |
rely | The relationship between components and their components |
4. Examples:
Two, deployment diagram
1. Deployment diagram:
Can the software products that meet the requirements be used when the software is developed according to the requirements? no! Software developers also need to ensure that the software products they develop can run on appropriate hardware systems. The role of the deployment diagram is how to display the physical hardware running the software system and how to deploy the software to the hardware . For example, computers and devices, and how they are connected
2. Elements:
Node : It is a physical element that exists at runtime, represents a computable resource, usually takes up some memory and has processing power. A component set is generally located at one node, but it may be transferred from one node to another
Nodes are divided into two types: Processor and Device
- processor
It is a node that can execute software and has computing power. Servers, workstations and other machines with processing power are all processors.
- equipment
It is a node without computing power, and usually provides some service for the outside through its interface. Dumb terminals, printers and scanners are all equipment.
3. Association
rely |
Component and component | |
Related | Model communication paths or connections between nodes |
4. Examples
Application in computer room charging system
Component diagram
Deployment diagram