当前位置:网站首页>UML-idea
UML-idea
2022-07-20 17:42:00 【@@Laohu】
UML-idea
UML Classes and classes in 、 Classes and interfaces 、 The relationship between interfaces is : generalization 、 relation 、 rely on 、 Realize these
generalization
- It refers to that one class inherits the functions of another class , And you can add your own new functions , stay java Keyword in extends To express
- Symbol : arrow + Real triangle , as follows
Realization
- It is worth noting that a class implements one or more interfaces , stay java Keyword in implements To express
- Symbol : Use dotted lines and real triangles to represent , as follows :
rely on
- Dependency represents a weak connection between classes , Indicates that a class depends on the definition of another class , Dependencies are one-way . stay java in , Dependency manifests itself as : local variable , Method 、 Calls to static methods .
- Symbol : Dotted line + arrow
relation
Associations represent strong connections between classes , It makes one class know the properties and methods of another class . The association has two endpoints , Each endpoint can have a cardinality , The class representing this association can have several instances .
0…1 Indicates that there can be 0 A or 1 An example
0…* Indicates that there is no limit on the number of instances
1 Indicates that there can only be one instance
1…* Indicates that there is at least one instancestay Java in , Association is implemented using instance variables
Symbol : Solid line + arrow
polymerization
Aggregation is a special case of association , It's a strong correlation , Aggregation is the relationship between the whole and the individual , Now the whole and the part can be separated , They have their own life cycle , Parts can belong to multiple objects , It can also be shared by multiple objects ; Like computers and CPU, The relationship between the company and its employees ; Aggregation and association are consistent at the code level , It can only be distinguished semantically .
Aggregation relationships are also implemented using instance variables , stay java There is no grammatical distinction between association and aggregation , The class in the association relationship comes from one level , And aggregation is obviously at two different levels .
Symbol : arrow + Solid line + Real diamond
Combine
Combination is a special case of association , It embodies a kind of contain-a Relationship , Better than aggregation , It's a strong aggregation relationship . It also embodies the relationship between the whole and the part , But at this time, the whole and the part are inseparable , The end of the whole life cycle also means the end of part of the life cycle , vice versa . Like the brain and humans .
Combination and aggregation are almost identical , The only difference is for the combination ,“ part ” Different from “ whole ” Exist alone , Its life cycle should be consistent .
Symbol : Solid line + arrow + The diamond
example :
边栏推荐
- Examples of requests module usage
- 多线程 ---线程池使用
- PS high efficiency repair diagram
- Shadow Detection
- Prevent the processing of post requests in AJAX in page URL cache
- LambdaQueryWrapper、LambdaUpdateWrapper、LambdaQueryChainWrapper的使用
- 基于JSP+Servlet+MySQL+Bootstrap的学生信息管理系统
- Formula editing==
- BERT 详解
- Multithreading - thread pool usage
猜你喜欢
spuer和this关键字
tensorRT
Paper reading - temporary fusion transformers for interpretable multi horizon time series forecasting
D1-从零理解神经网络
青花瓷Charles使用
Dahua Haikang camera video streaming
OpenGAN: Open-Set Recognition via Open Data Generation
Opensmax: unknown domain generation algorithm detection ecai2020 open set identification paper interpretation
二叉树的深度优先和广度优先遍历方式的实现
设置默认为0但是添加为null
随机推荐
怎么通过vip低佣金开户,网上开户安全吗
requests模块用法举例
序列化和反序列化
lc marathon 7.19
miRNA几大常用的数据库
220617,数据仓库dwd,
枚举创建
在GIS当侦探:通过ArcGIS Pro查找罪犯同伙
220617, data warehouse DWD,
review第2遍,220614,视频,Day03_数据仓库设计,
Several commonly used databases of miRNA
Unreal Engine01:环境配置
Multithreading - thread pool usage
拥抱资本加速前行,中微半导体已提交IPO辅导备案
Text walking lantern
DevOps失败了!
MaskTextSpotterv3测试及训练
防止页面url缓存中 ajax中post 请求的处理方式
idea启动项目很慢
数仓ods,dwd层,220616,hm,