当前位置:网站首页>UML project example -- UML diagram description of tiktok

UML project example -- UML diagram description of tiktok

2022-04-23 14:39:00 InfoQ

[](()1  Application Introduction



Tiktok , Is a music creative short video social software , Hatched from today's headlines , The software is available in 2016 year 9 Monthly online , It's a short video community platform focusing on young people's music . Users can choose songs through the software , Take a short video of music , Form your own works .

Tiktok , Record a good life .

[](()2  Use case diagram —— Tiktok business mode

----------------------------------------- 
《 A big factory Java Analysis of interview questions + Back end development learning notes + The latest architecture explanation video + Practical project source code handout 》 Free open source Prestige search official account 【 Advanced programming 】
 ------------------------------------------

Meaning of use case diagram
: By participants 、 The dynamic view composed of use cases and the relationship between them to describe the system function is called use case diagram . The correspondence between use cases and participants is also called communication association , He indicated which use cases in the system were used by the participants . Use case diagram is the first step from software requirement analysis to final implementation , It shows the users of the system and the functions they want to provide , It is conducive to the communication between users and software developers .

The use case diagram functions
: Use case diagram is the product of requirement analysis , The main role is to describe the relationship between actors and use cases , Help developers visually understand the functions of the system . With the help of use case diagrams , System users 、 System Analyst 、 System designers 、 Domain experts can explore problems in a visual way , Reduced a lot of communication barriers , To reach a consensus on the issue .

Use case diagram , It is a diagram used to represent the interaction between system roles and system functions . Through use case diagrams , It can clearly represent the main functions of the system .

Tiktok APP The research of , Get it
Demand analysis
by :

1)
  user —— Like the current video —— Intelligent recommendation algorithm —— Get videos of interest to users

2)
  user —— Share current video —— Forward to other platforms

3)
  user —— Shoot and upload videos —— Intelligent recommendation system —— Distribute to other users

4)
  Intelligent recommendation system —— Distribute videos and advertisements to different users

5)
  user —— Praise / powder —— Intelligent recommendation system —— Tiktok account is reduced or processed.

6)
  user —— Recharge (DOU+)/ Be focus on / Be liked —— Intelligent recommendation system —— Popular

The business use case diagram obtained from the above user requirements is :

null
[](()3  Class diagram —— Explore the relationship between classes of the system



3.1  Tiktok interface

null
The main interface of the jitter software is shown in the tiktok. , The functions of relevant components are :

1)
  Live button : User live broadcast .

2)
  Like button : Users like videos of interest .

3)
  Comment button : Users comment on videos .

4)
  Share button : Users share the video to various platforms .

5)
  New video button : Users take videos .

6)
  My home button : User's own home page .

7)
  Message key : User chat and reply messages .

3.2  Class diagram

According to the above interface analysis , The class diagram of the system is :

null
Class description in the figure above :

|  Class name  |  explain  |

| --- | --- |

| TikTok |  Tiktok software  |

| User |  Abstract user class , Superclass of all user classes  |

| OrdinaryUser |  Ordinary user class  |

| GarbageUser |  Garbage user class  |

| AuthenticatedUser |  Authentication user class  |

| Administrator |  Administrators ( Intelligent recommendation system ) class  |

| Component |  Class abstract classes on shaking interface tiktok , Superclasses for all components  |

| ike |  Like function class  |

| Comment |  Comment function class  |

| Share |  Shared function class  |

| NewVideo |  Shoot and upload videos  |

| HomePage |  My home class  |

Method description in the figure above :

|  Method name  |  explain  |

| --- | --- |

| OrdinaryUser Medium ike() Method  |  Like button  |

| OrdinaryUser Medium comment() Method  |  Comment button  |

| OrdinaryUser Medium share() Method  |  Share button  |

| OrdinaryUser Medium newVideo() Method  |  New video button  |

| OrdinaryUser Medium homePage() Method  |  My home button  |

| Administrator Medium auditVideo() Method  |  Administrator review video  |

| Administrator Medium deleteVideo() Method  |  Administrator delete video  |

| Administrator Medium deleteUser() Method  |  Administrator delete user  |

| Administrator Medium weightUser() Method  |  Administrator privilege reduction user  |

| Administrator Medium distributeUser() Method  |  Administrator weighted user  |

[](()4  Sequence diagram —— Describes the runtime of the system



版权声明
本文为[InfoQ]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231429071646.html